<project name="CaTIES_5_0" default="zipHub" basedir="." xmlns:jw="org.unintelligible.antjnlpwar">
<description>
Build file for networked CaTIES implementation.
</description>
<!-- set global properties for this build -->
<property name="src" location="src/prod/java"/>
<property name="bin" location="bin"/>
<property name="build" location="build"/>
<!-- Hub locations
<property name="hubWebapps" location="Y:/caties_5_0/spirit/tomcat5/webapps"/>
<property name="hubLocation" location="Y:/caties_5_0/spirit/tomcat5/webapps/wsrf/WEB-INF"/>
<property name="caties.spirit.ip" value="caties.cabig.upmc.edu" />
<property name="caties.spirit.port" value="80" />
<property name="hubWebapps" location="E:/caties_5_0/spirit/tomcat5/webapps"/>
<property name="hubLocation" location="E:/caties_5_0/spirit/tomcat5/webapps/wsrf/WEB-INF"/>
<property name="caties.spirit.ip" value="cds-crl01" />
<property name="caties.spirit.port" value="80" />
-->
<property name="newlibs" location="E:/dev/workspace/ws-caties-net/caTIES_net/newlib"/>
<property name="hubWebapps" location="E:/caties_5_0/spirit/tomcat5/webapps"/>
<property name="hubLocation" location="E:/caties_5_0/spirit/tomcat5/webapps/wsrf/WEB-INF"/>
<property name="nwuPubLocation" location="E:/caties_5_0/nwu/tomcatPub/webapps/wsrf/WEB-INF"/>
<property name="nwuPvtLocation" location="E:/caties_5_0/nwu/tomcatPvt/webapps/wsrf/WEB-INF"/>
<property name="scccPubLocation" location="Z:/caties_5_0/sccc/tomcatPub/webapps/wsrf/WEB-INF"/>
<property name="scccPvtLocation" location="Z:/caties_5_0/sccc/tomcatPvt/webapps/wsrf/WEB-INF"/>
<property name="mdaPubLocation" location="Z:/caties_5_0/mda/tomcatPub/webapps/wsrf/WEB-INF"/>
<property name="mdaPvtLocation" location="Z:/caties_5_0/mda/tomcatPvt/webapps/wsrf/WEB-INF"/>
<property name="uchicagoPubLocation" location="U:/caties_5_0/uchicago/tomcatPub/webapps/wsrf/WEB-INF"/>
<property name="uchicagoPvtLocation" location="U:/caties_5_0/uchicago/tomcatPvt/webapps/wsrf/WEB-INF"/>
<property name="mayoPubLocation" location="E:/caties_5_0/mayo-template/tomcatPub/webapps/wsrf/WEB-INF"/>
<property name="mayoPvtLocation" location="E:/caties_5_0/mayo-template/tomcatPvt/webapps/wsrf/WEB-INF"/>
<property name="caTIESStorePassword" value="caTIES" />
<property name="caties.spirit.ip" value="cds-crl01" />
<property name="caties.spirit.port" value="5080" />
<target name="init" depends="clean">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${hubLocation} directory trees -->
<delete dir="${build}"/>
<delete dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</delete>
<delete dir="${mayoPvtLocation}/lib">
<include name="caties-*.jar"/>
</delete>
<delete dir="${mayoPubLocation}/lib">
<include name="caties-*.jar"/>
</delete>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build}
source="1.6"
target="1.6"
debug="true"
deprecation="false"
optimize="false"
failonerror="true"
-->
<javac nowarn="true" srcdir="${src}" destdir="${build}">
<exclude name="edu/upmc/opi/caBIG/caTIES/gate/**"/>
<exclude name="edu/upmc/opi/caBIG/caTIES/status/**"/>
<exclude name="edu/upmc/opi/caBIG/caTIES/server/ties/CaTIES_TiesPipeServlet.java"/>
<classpath>
<fileset dir="E:/spirit-test-harness/jdk1.6.0_24">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${newlibs}">
<include name="**/*.jar"/>
<exclude name="caties*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="jar" depends="compile"
description="generate the distribution" >
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file
<jar jarfile="E:/caties_5_0/spirit2/tomcat5/webapps/wsrf/WEB-INF/lib/caties-${DSTAMP}.jar" basedir="${build}"/>
-->
<copy todir="${build}">
<fileset dir="${src}">
<include name="**/*.xml"/>
<include name="**/*.properties"/>
<include name="**/*.png"/>
<include name="**/*.gif"/>
<include name="**/*.db"/>
</fileset>
</copy>
<jar jarfile="${hubLocation}/lib/caties-${DSTAMP}.jar" basedir="${build}"/>
</target>
<target name="copyJars" depends="jar"
description="Copy the latest jar to select directories" >
<copy todir="${build}">
<fileset dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</fileset>
</copy>
<copy todir="E:/spirit-test-harness/lib">
<fileset dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</fileset>
</copy>
<copy todir="${mayoPvtLocation}/lib">
<fileset dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</fileset>
</copy>
<copy todir="${mayoPubLocation}/lib">
<fileset dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</fileset>
</copy>
</target>
<target name="stage" depends="copyJars">
<delete dir="stage"/>
<mkdir dir="stage"/>
<copy todir="stage" flatten="true">
<fileset dir="${build}/">
<include name="caties-*.jar"/>
<exclude name="lib"/>
</fileset>
<fileset dir="${newlibs}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="C:/PROGRA~1/Java/jdk1.6.0_22/lib">
<include name="**/tools.jar"/>
</fileset>
</copy>
</target>
<!-- Declare the Ant Web Start task -->
<typedef resource="org/unintelligible/antjnlpwar/antjnlpwar.xml" format="xml" uri="org.unintelligible.antjnlpwar"/>
<target name="establishLocalKeystore">
<copy file="J:/mitchellkj/CaTIES_KeyStore" toFile="C:\DOCUME~1\mitchellkj\.keystore" overwrite="true" />
</target>
<target name="cleanTempDirectory">
<delete dir="C:\DOCUME~1\MITCHE~1\LOCALS~1\Temp\1\jnlpWarTmp_1293049210444"/>
</target>
<target name="distributeTestHarness" depends="stage">
<!-- Create a distributable WAR archive of the application using the following attributes:
* tofile: the destination WAR file
* codebase: where the application will be deployed to
* title: the application name
* vendor: your company name
* pack200: create pack200 archives for quicker client downloads
* signStorePass: the password to your Java certificate store (used to sign the jars)
* signAlias: the name of the certificate to use (used to sign the jars)
-->
<delete dir="${hubWebapps}/installer"/>
<jw:jnlpwar
tofile="${hubWebapps}/installer.war"
codebase="http://${caties.spirit.ip}:${caties.spirit.port}/installer"
title="CaTIES Node Installer"
vendor="University of Pittsburgh DBMI"
signStorepass="${caTIESStorePassword}"
signAlias="caTIES"
pack200="false"
>
<!-- Add a normal and a short description -->
<jw:description>CaTIES 5 0 Installer</jw:description>
<jw:description kind="short">CaTIES 5 0 Installer</jw:description>
<!-- Add an icon for the application
<jw:icon file="path/to/icon.jpg"/> -->
<!-- Show a splash screen when the application launches
<jw:icon kind="splash" file="path/to/splash.jpg"/> -->
<!-- Specify the minimal version of Java required by the app, along with
some command-line arguments
<jw:j2seProperty name="webstart" value="false"/>
<jw:j2seProperty name="installationStepEmulations" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14"/>
<jw:j2seProperty name="installationStepEmulations" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/>
<jw:j2seProperty name="installationStepEmulations" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"/>
-->
<jw:j2se minVersion="1.4" args="-Xmx900M">
<jw:j2seProperty name="sun.awt.disableMixing" value="true"/>
<jw:j2seProperty name="java.security.gsi.signing.policy" value="true"/>
<jw:j2seProperty name="caties.spirit.ip" value="${caties.spirit.ip}"/>
<jw:j2seProperty name="caties.spirit.port" value="${caties.spirit.port}"/>
<jw:j2seProperty name="installationStepEmulations" value="19"/>
</jw:j2se>
<!-- Add the libraries used by the application -->
<lib dir="stage">
<include name="**/*.jar"/>
<exclude name="**/evsclient.jar"/>
<exclude name="caties-*.jar"/>
</lib>
<!-- Specify the main class for the application,
and the jar it is located in (can be duplicate from the lib element) -->
<jw:application mainclass="edu.upmc.opi.caBIG.caTIES.installer.InstallationUI"
jar="${hubLocation}/lib/caties-${DSTAMP}.jar"/>
</jw:jnlpwar>
</target>
<target name="distributeTiesClient" depends="stage">
<delete dir="${hubWebapps}/ties">
</delete>
<jw:jnlpwar
tofile="${hubWebapps}/ties.war"
codebase="http://${caties.spirit.ip}:${caties.spirit.port}/ties"
title="CaTIES Client"
vendor="University of Pittsburgh DBMI"
signStorepass="${caTIESStorePassword}"
signAlias="caTIES"
pack200="false"
>
<jw:description>CaTIES 5 0 Client</jw:description>
<jw:description kind="short">CaTIES 5 0 Client</jw:description>
<!-- Add an icon for the application -->
<jw:icon file="${src}/images/catiesjnlpico.gif"/>
<!-- Show a splash screen when the application launches
<jw:icon kind="splash" file="path/to/splash.jpg"/> -->
<jw:j2se minVersion="1.5" args="-Xmx512M">
<jw:j2seProperty name="sun.awt.disableMixing" value="true"/>
<jw:j2seProperty name="java.security.gsi.signing.policy" value="true"/>
<jw:j2seProperty name="caties.spirit.ip" value="${caties.spirit.ip}"/>
<jw:j2seProperty name="caties.spirit.port" value="${caties.spirit.port}"/>
<jw:j2seProperty name="caties.spirit.ip" value="${caties.spirit.ip}"/>
<jw:j2seProperty name="caties.spirit.port" value="${caties.spirit.port}"/>
<jw:j2seProperty name="caties.hub.ip" value="${caties.spirit.ip}"/>
<jw:j2seProperty name="caties.hub.port" value="${caties.spirit.port}"/>
</jw:j2se>
<!-- Add the libraries used by the application -->
<lib dir="stage">
<include name="**/*.jar"/>
<exclude name="**/evsclient.jar"/>
<exclude name="caties-*.jar"/>
</lib>
<!-- Specify the main class for the application,
and the jar it is located in (can be duplicate from the lib element) -->
<jw:application mainclass="edu.upmc.opi.caBIG.caTIES.client.ApplicationLauncher"
jar="${hubLocation}/lib/caties-${DSTAMP}.jar"/>
</jw:jnlpwar>
</target>
<target name="zipHub" depends="distributeTestHarness,distributeTiesClient">
<unzip src="${hubWebapps}/installer.war" dest="${hubWebapps}/installer"/>
<delete dir="${hubWebapps}/installer">
<include name="installer.war"/>
</delete>
<copy file="${hubLocation}/etc/grid-security/hub-cert.pem"
tofile="${hubWebapps}/installer/spirit.0"/>
<zip destfile="${hubWebapps}/installer/nodeTemplate.zip"
basedir="E:/caties_5_0/mayo-template"
update="true">
<exclude name="**/spoke-cert.pem"/>
<exclude name="**/spoke-key.pem"/>
</zip>
</target>
<target name="zipHub_NoDepends" depends="">
<zip destfile="${hubWebapps}/nodeTemplate.zip"
basedir="E:/caties_5_0/mayo-template"
update="true">
<exclude name="**/hub-key.pem"/>
<exclude name="**/spoke-cert.pem"/>
<exclude name="**/spoke-key.pem"/>
</zip>
</target>
<!--
<target name="testRun" depends="stage">
-->
<target name="testRun">
<java classname="edu.upmc.opi.caBIG.caTIES.installer.InstallationUI"
jvm="E:\caties_5_0\node\caties\jdk1.6.0_24\bin\java"
fork="true"
taskname="java1.6">
<sysproperty key="caties.application.name" value="CaTIES 5.0"/>
<sysproperty key="java.security.gsi.signing.policy" value="true"/>
<sysproperty key="installationStepEmulations" value="19"/>
<classpath>
<pathelement path="${bin}"/>
<fileset dir="E:/spirit-test-harness/lib">
<include name="*.jar"/>
<exclude name="caties-*.jar"/>
</fileset>
</classpath>
</java>
</target>
<property name="djnative.libs" location="e:/dev/Software/DJNativeSwing-SWT-1-0-2-20110706/alljars/"/>
<path id="djnative.loc">
<pathelement location="${djnative.libs}/DJNativeSwing.jar"/>
<pathelement location="${djnative.libs}/DJNativeSwing-SWT.jar"/>
<pathelement location="${djnative.libs}/swt-3.7M5-win32-win32-x86.jar"/>
</path>
<property name="hibernate4x.libs" location="E:/dev/Software/hibernate-release-4.0.0.Alpha2/alljars"/>
<path id="hibernate4x.loc">
<pathelement location="${hibernate4x.libs}/hibernate-c3p0-4.0.0.Alpha2.jar"/>
<pathelement location="${hibernate4x.libs}/hibernate-commons-annotations-3.2.0.Final.jar"/>
<pathelement location="${hibernate4x.libs}/hibernate-core-4.0.0.Alpha2.jar"/>
<pathelement location="${hibernate4x.libs}/hibernate-entitymanager-4.0.0.Alpha2.jar"/>
<pathelement location="${hibernate4x.libs}/hibernate-envers-4.0.0.Alpha2.jar"/>
<pathelement location="${hibernate4x.libs}/hibernate-jpa-2.0-api-1.0.0.Final.jar"/>
<pathelement location="${hibernate4x.libs}/hibernate-tools-3.2.0.ga.jar"/>
<pathelement location="${hibernate4x.libs}/ant-1.6.5.jar"/>
<pathelement location="${hibernate4x.libs}/antlr-2.7.7.jar"/>
<pathelement location="${hibernate4x.libs}/bsh-2.0b4.jar"/>
<pathelement location="${hibernate4x.libs}/c3p0-0.9.1.jar"/>
<pathelement location="${hibernate4x.libs}/commons-collections-3.1.jar"/>
<pathelement location="${hibernate4x.libs}/dom4j-1.6.1.jar"/>
<pathelement location="${hibernate4x.libs}/freemarker-2.3.8.jar"/>
<pathelement location="${hibernate4x.libs}/gradle-wrapper.jar"/>
<pathelement location="${hibernate4x.libs}/i18nlog-1.0.10.jar"/>
<pathelement location="${hibernate4x.libs}/javassist-3.12.0.GA.jar"/>
<pathelement location="${hibernate4x.libs}/jboss-common-core-2.2.14.GA.jar"/>
<pathelement location="${hibernate4x.libs}/jboss-logging-3.0.0.Beta5.jar"/>
<pathelement location="${hibernate4x.libs}/jboss-transaction-api-1.0.1.GA.jar"/>
<pathelement location="${hibernate4x.libs}/jgroups-2.11.0.GA.jar"/>
<pathelement location="${hibernate4x.libs}/jta-1.1.jar"/>
<pathelement location="${hibernate4x.libs}/jtidy-r8-20060801.jar"/>
<pathelement location="${hibernate4x.libs}/marshalling-api-1.2.3.GA.jar"/>
<pathelement location="${hibernate4x.libs}/rhq-pluginAnnotations-3.0.1.jar"/>
<pathelement location="${hibernate4x.libs}/river-1.2.3.GA.jar"/>
<pathelement location="${hibernate4x.libs}/slf4j-api-1.5.8.jar"/>
</path>
<target name="copyTiesClientDirectories">
<copy todir="${hubWebapps}/ties">
<fileset dir="x:/tomcat/tomcat55/webapps/caties">
<include name="conf/**"/>
<include name="ctrms/**"/>
<include name="image/**"/>
</fileset>
</copy>
</target>
<target name="copyToEssentials" depends="stage">
<copy todir="E:/spirit-test-harness/lib">
<fileset dir="stage">
<include name="activation-1.1.jar"/>
<include name="addressing-1.0.jar"/>
<include name="ant-1.6.5.jar"/>
<include name="antlr-2.7.6.jar"/>
<include name="axis.jar"/>
<include name="caGrid-1.0-gridca.jar"/>
<include name="cog-axis.jar"/>
<include name="cog-jglobus-1.4.1.jar"/>
<include name="commons-codec-1.3.jar"/>
<include name="commons-collections-3.1.jar"/>
<include name="commons-discovery-0.2.jar"/>
<include name="commons-httpclient-3.0.jar"/>
<include name="commons-logging-1.1.jar"/>
<include name="cryptix32.jar"/>
<include name="cryptix-asn1.jar"/>
<include name="DJNativeSwing.jar"/>
<include name="DJNativeSwing-SWT.jar"/>
<include name="dom4j-1.6.1.jar"/>
<include name="gate.jar"/>
<include name="gdata-core-1.0.jar"/>
<include name="globus_java_authz_framework.jar"/>
<include name="globus-addressing-1.0.jar"/>
<include name="hibernate3_6.jar"/>
<include name="hibernate-jpa-2.0-api-1.0.0.Final.jar"/>
<include name="icu4j-4_2_1.jar"/>
<include name="jasper-compiler-jdt.jar"/>
<include name="javassist-3.12.0.GA.jar"/>
<include name="jaxen-core.jar"/>
<include name="jaxen-jdom.jar"/>
<include name="jaxrpc.jar"/>
<include name="jce-jdk13-131.jar"/>
<include name="jdom-1.0.jar"/>
<include name="jta-1.1.jar"/>
<include name="jug.jar"/>
<include name="log4j-1.2.15.jar"/>
<include name="lucene-analyzers-2.9.3.jar"/>
<include name="lucene-core-2.9.3.jar"/>
<include name="lucene-snowball-2.9.3.jar"/>
<include name="mysql-connector-java-5.1.7-bin.jar"/>
<include name="nekohtml-0.9.5.jar"/>
<include name="ogsadai-4.1-client-1.0.jar"/>
<include name="ogsadai-4.1-clientserver-1.0.jar"/>
<include name="ogsadai-4.1-common-1.0.jar"/>
<include name="ogsadai-4.1-gt4.2-client-1.0.jar"/>
<include name="ogsadai-4.1-gt4.2-client-config-1.0.jar"/>
<include name="ogsadai-4.1-gt4.2-stubs-1.0.jar"/>
<include name="ojdbc5.jar"/>
<include name="ontotext.jar"/>
<include name="opensaml-1.1.jar"/>
<include name="puretls.jar"/>
<include name="saxpath.jar"/>
<include name="servlet-api.jar"/>
<include name="slf4j-api-1.6.1.jar"/>
<include name="slf4j-log4j12-1.6.1.jar"/>
<include name="swt-3.7M5-win32-win32-x86.jar"/>
<include name="saaj.jar"/>
<include name="stax-api-1.0-2.jar"/>
<include name="wsdl4j-1.5.1.jar"/>
<include name="wsrf_common.jar"/>
<include name="wsrf_core.jar"/>
<include name="wsrf_core_stubs.jar"/>
<include name="wsrf_provider_jce.jar"/>
<include name="wsrf_tools.jar"/>
<include name="wss4j.jar"/>
<include name="wstx-lgpl-3.2.3.jar"/>
<include name="xalan-2.6.jar"/>
<include name="xercesImpl-2.7.1.jar"/>
<include name="xml-apis.jar"/>
<include name="xmlsec-1.2.1.jar"/>
</fileset>
</copy>
</target>
<target name="clean4tests" depends="">
<delete dir="E:/caties_5_0/nwu/tomcat5/webapps/wsrf/WEB-INF/etc/grid-security">
<include name="*.pem"/>
</delete>
<delete dir="E:/caties_5_0/spirit/tomcat5/webapps/wsrf/WEB-INF/etc/grid-security">
<include name="nwu-cert.pem"/>
</delete>
</target>
<target name="copyToUpitt" depends=""
description="Copy the latest jar to UPITT instance" >
<delete dir="u:/caties_5_0/upitt/tomcatPub/webapps/wsrf/WEB-INF/lib">
<include name="caties-*.jar"/>
</delete>
<copy todir="u:/caties_5_0/upitt/tomcatPub/webapps/wsrf/WEB-INF/lib">
<fileset dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</fileset>
</copy>
<delete dir="u:/caties_5_0/upitt/tomcatPvt/webapps/wsrf/WEB-INF/lib">
<include name="caties-*.jar"/>
</delete>
<copy todir="u:/caties_5_0/upitt/tomcatPvt/webapps/wsrf/WEB-INF/lib">
<fileset dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</fileset>
</copy>
</target>
<target name="copyToUchicago" depends="jar"
description="Copy the latest jar to UChicago instance" >
<delete dir="E:/caties_5_0/uchicago/tomcatPub/webapps/wsrf/WEB-INF/lib">
<include name="caties-*.jar"/>
</delete>
<copy todir="E:/caties_5_0/uchicago/tomcatPub/webapps/wsrf/WEB-INF/lib">
<fileset dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</fileset>
</copy>
<delete dir="E:/caties_5_0/uchicago/tomcatPvt/webapps/wsrf/WEB-INF/lib">
<include name="caties-*.jar"/>
</delete>
<copy todir="E:/caties_5_0/uchicago/tomcatPvt/webapps/wsrf/WEB-INF/lib">
<fileset dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</fileset>
</copy>
</target>
<target name="jar-hub-only" depends="compile"
description="generate the distribution" >
<delete dir="${hubLocation}/lib">
<include name="caties-*.jar"/>
</delete>
<jar jarfile="${hubLocation}/lib/caties-${DSTAMP}.jar" basedir="${build}"/>
</target>
</project>