-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
184 lines (148 loc) · 6.83 KB
/
build.xml
File metadata and controls
184 lines (148 loc) · 6.83 KB
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<project name="TASSEL" default="dist" basedir=".">
<description>
TASSEL: Trait Analysis by a SSociation, Evolution and Linkage
The TASSEL project (http://www.maizegenetics.net) may be distributed
under the terms of the GNU Lesser General Public License
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="lib" location="lib"/>
<property name="lib_deploy" location="..\lib_deploy"/>
<property name="images_plugins" value="net\maizegenetics\baseplugins\images"/>
<property name="images" value="net\maizegenetics\tassel\images"/>
<property name="tassel" location="${dist}\sTASSEL.jar"/>
<property name="tasselGBS" location="${dist}\sTASSELGBS.jar"/>
<property name="test" location="test"/>
<property name="pal_src" value="${basedir}/src/net/maizegenetics/pal"/>
<property name="keystore_dir" value="${basedir}/common"/>
<property name="javadoc" value="${basedir}/javadoc"/>
<path id="build.class.path">
<fileset dir="${lib}">
<include name="*.jar"/>
<include name="*.zip"/>
</fileset>
</path>
<pathconvert property="manifest.classpath" pathsep=" ">
<path refid="build.class.path"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>
<target name="init">
<!-- Create the time stamp -->
<tstamp>
<format property="" pattern=""/>
</tstamp>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
</target>
<target name="genome" depends="init" description="compile the source">
<javac compiler="javac1.8" target="1.8" includeantruntime="false" srcdir="${src}" destdir="${build}" debug="true">
<include name="net/maizegenetics/genome/**"/>
<include name="net/maizegenetics/gbs/**"/>
<include name="net/maizegenetics/gwas/**"/>
<classpath>
<pathelement path="${lib}"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="compile" depends="init" description="compile the source">
<!-- Compile the java code from ${src} into ${build} -->
<javac compiler="javac1.8" target="1.8" includeantruntime="false" srcdir="${src}" destdir="${build}" debug="true">
<exclude name="**/Test*"/>
<exclude name="net/maizegenetics/genome/**"/>
<exclude name="net/maizegenetics/gbs/**"/>
<exclude name="net/maizegenetics/gwas/**"/>
<classpath>
<pathelement path="${lib}"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</classpath>
</javac>
</target>
<target name="dist" depends="clean, compile" description="distribution">
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<copy todir="${build}" description="copy images">
<fileset dir="${src}">
<include name="**/*.gif"/>
<include name="**/*.GIF"/>
<include name="**/*.html"/>
</fileset>
</copy>
<jar jarfile="${tassel}" basedir="${build}">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="net.maizegenetics.tassel.TASSELMainApp"/>
<attribute name="Class-Path" value="${manifest.classpath}"/>
</manifest>
</jar>
<signjar jar="${tassel}" alias="http://www.maizegenetics.net/tassel" storepass="EdBuckler" keystore="${keystore_dir}/keystore"/>
</target>
<target name="distGBS" depends="clean, compile, genome" description="distribution">
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<copy todir="${build}" description="copy images">
<fileset dir="${src}">
<include name="**/*.gif"/>
<include name="**/*.GIF"/>
<include name="**/*.html"/>
</fileset>
</copy>
<jar jarfile="${tasselGBS}" basedir="${build}">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="net.maizegenetics.tassel.TASSELMainApp"/>
<attribute name="Class-Path" value="${manifest.classpath}"/>
</manifest>
</jar>
<signjar jar="${tasselGBS}" alias="http://www.maizegenetics.net/tassel" storepass="EdBuckler" keystore="${keystore_dir}/keystore"/>
</target>
<target name="javadoc">
<delete dir="${javadoc}"/>
<mkdir dir="${javadoc}"/>
<javadoc packagenames="net.*"
source="1.8"
destdir="${javadoc}"
author="true"
use="true"
windowtitle="net.maizegenetics API"
doctitle="TASSEL: Trait Analysis by aSSociation, Evolution and Linkage">
<classpath refid="build.class.path"/>
<sourcepath>
<pathelement path="${basedir}/src"/>
</sourcepath>
</javadoc>
</target>
<target name="run" description="Run the program">
<copy file="${tassel}" todir="${test}"/>
<copy file="${lib}\gdpc.jar" todir="${test}" />
<copy file="${lib_deploy}\tasselLib.zip" todir="${test}" />
<!-- run the class -->
<java classname="net.maizegenetics.tassel.TASSELMainApp" fork="true" spawn="true">
<arg value="-h"/>
<jvmarg value="-Xms128m"/>
<jvmarg value="-Xmx256m"/>
<classpath>
<!-- include all jar files -->
<pathelement location="${test}/tasselLib.zip"/>
<pathelement location="${test}/sTASSEL.jar"/>
<pathelement location="${test}/browser.jar"/>
</classpath>
</java>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
</target>
</project>