forked from molgenis/molgenis-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
standalone.xml
155 lines (147 loc) · 8.35 KB
/
standalone.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<project name="Standalone" default="package" basedir=".">
<description>
ANT file to build a standalone molgenis + XGAP
</description>
<!-- set global properties for this build -->
<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="libraries" location="lib" />
<property name="myname" value="Danny Arends" />
<property name="version" value="3.3.0" />
<property environment="env"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<echo message="Number of Processors = ${env.NUMBER_OF_PROCESSORS}"/>
<echo message="ANT_HOME is set to = ${env.ANT_HOME}"/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the Standalone source " >
<!-- Compile the java code from ${src} into ${build} -->
<!-- Used by Molgenis: -->
<unjar src="lib/ant-1.8.1.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/ant-apache-log4j.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/antlr-2.7.7.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/commons-codec-1.3.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/commons-collections-3.2.1.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/commons-dbcp-1.2.1.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/commons-fileupload-1.1.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/commons-io-2.4.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/commons-logging-1.1.1.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/commons-lang-2.5.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/commons-pool-1.5.2.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/cxf-2.3.3.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/concurrent.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/d2r-server-0.7.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/eclipselink.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/freemarker.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/hsqldb.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/javax.persistence_2.0.1.v201006031150.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/javax.servlet.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/json.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/junit-4.8.2.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/jxl.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/log4j-1.2.15.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/mail.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/serializer-2.7.1.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/tar.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/testng-5.14.10.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/xalan-2.7.1.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/xercesImpl.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/xmlrpc-client-3.1.3.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/xmlrpc-common-3.1.3.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/xmlbeans-2.4.0.jar" dest="${build}" overwrite="false"/>
<!-- NOT USED / UNKNOWN -->
<!--
<unjar src="lib/abdera-core-0.4.0-incubating.jar" dest="${build}"/>
<unjar src="lib/abdera-extensions-json-0.4.0-incubating.jar" dest="${build}"/>
<unjar src="lib/abdera-extensions-main-0.4.0-incubating.jar" dest="${build}"/>
<unjar src="lib/abdera-i18n-0.4.0-incubating.jar" dest="${build}"/>
<unjar src="lib/abdera-parser-0.4.0-incubating.jar" dest="${build}"/>
<unjar src="lib/aopalliance-1.0.jar" dest="${build}"/>
<unjar src="lib/arq.jar" dest="${build}"/>
<unjar src="lib/asm-2.2.3.jar" dest="${build}"/>
<unjar src="lib/axiom-api-1.2.7.jar" dest="${build}"/>
<unjar src="lib/axiom-impl-1.2.7.jar" dest="${build}"/>
<unjar src="lib/bcprov-jdk15-1.43.jar" dest="${build}"/>
<unjar src="lib/dom4j-1.6.1.jar" dest="${build}"/>
<unjar src="lib/FastInfoset-1.2.7.jar" dest="${build}"/>
<unjar src="lib/geronimo-activation_1.1_spec-1.0.2.jar" dest="${build}"/>
<unjar src="lib/geronimo-annotation_1.0_spec-1.1.1.jar" dest="${build}"/>
<unjar src="lib/geronimo-javamail_1.4_spec-1.6.jar" dest="${build}"/>
<unjar src="lib/geronimo-jaxws_2.1_spec-1.0.jar" dest="${build}"/>
<unjar src="lib/geronimo-jms_1.1_spec-1.1.1.jar" dest="${build}"/>
<unjar src="lib/geronimo-servlet_2.5_spec-1.2.jar" dest="${build}"/>
<unjar src="lib/geronimo-stax-api_1.0_spec-1.0.1.jar" dest="${build}"/>
<unjar src="lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar" dest="${build}"/>
<unjar src="lib/iri.jar" dest="${build}"/>
<unjar src="lib/javax.mail.jar" dest="${build}"/>
<unjar src="lib/jaxb-api-2.1.jar" dest="${build}"/>
<unjar src="lib/jaxb-impl-2.1.12.jar" dest="${build}"/>
<unjar src="lib/jaxb-xjc-2.1.12.jar" dest="${build}"/>
<unjar src="lib/jaxen-1.1.jar" dest="${build}"/>
<unjar src="lib/jdom-1.0.jar" dest="${build}"/>
<unjar src="lib/jersey-json-1.1.5.jar" dest="${build}"/>
<unjar src="lib/jettison-1.1.jar" dest="${build}"/>
<unjar src="lib/jetty-6.1.21.jar" dest="${build}"/>
<unjar src="lib/jetty-html-6.1.21.jar" dest="${build}"/>
<unjar src="lib/jetty-plus-6.1.21.jar" dest="${build}"/>
<unjar src="lib/jetty-util-6.1.21.jar" dest="${build}"/>
<unjar src="lib/joseki.jar" dest="${build}"/>
<unjar src="lib/jra-1.0-alpha-4.jar" dest="${build}"/>
<unjar src="lib/js-1.7R1.jar" dest="${build}"/>
<unjar src="lib/jta-1.1.jar" dest="${build}"/>
<unjar src="lib/neethi-2.0.4.jar" dest="${build}"/>
<unjar src="lib/oro-2.0.8.jar" dest="${build}"/>
<unjar src="lib/postgresql-8.3-603.jdbc4.jar" dest="${build}"/>
<unjar src="lib/saaj-api-1.3.jar" dest="${build}"/>
<unjar src="lib/saaj-impl-1.3.2.jar" dest="${build}"/>
<unjar src="lib/slf4j-api-1.5.8.jar" dest="${build}"/>
<unjar src="lib/slf4j-jdk14-1.5.8.jar" dest="${build}"/>
<unjar src="lib/slf4j-log4j12-1.5.6.jar" dest="${build}"/>
<unjar src="lib/smtp.jar" dest="${build}"/>
<unjar src="lib/stax-utils-20060502.jar" dest="${build}"/>
<unjar src="lib/velocity-1.5.jar" dest="${build}"/>
<unjar src="lib/velocity-1.6.2.jar" dest="${build}"/>
<unjar src="lib/wss4j-1.5.8.jar" dest="${build}"/>
<unjar src="lib/wstx-asl-3.2.8.jar" dest="${build}"/>
<unjar src="lib/xml-resolver-1.2.jar" dest="${build}"/>
<unjar src="lib/XmlSchema-1.4.5.jar" dest="${build}"/>
<unjar src="lib/xmlsec-1.4.3.jar" dest="${build}"/>
-->
<!-- Used By applications: -->
<unjar src="lib/arq.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/jena.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/jsr311-api-1.1.1.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/jakarta-oro-2.0.8.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/icu4j_3_4.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/d2rq-0.7.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/jopenid-1.07.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/mysql-connector-java-5.1.2-beta-bin.jar" dest="${build}" overwrite="false"/>
<unjar src="lib/wsdl4j-1.6.2.jar" dest="${build}" overwrite="false"/>
<javac srcdir="${src}" destdir="${build}" classpath="${build}/" />
</target>
<target name="package" depends="compile" description="Package the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<copy todir="${build}">
<fileset dir="${src}">
<include name="**/*.*"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/molgenis-4.0.0.jar" basedir="${build}">
<manifest>
<attribute name="Built-By" value="${myname}"/>
</manifest>
</jar>
</target>
<target name="clean" description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>