|
8 | 8 | </description>
|
9 | 9 |
|
10 | 10 | <!-- set global properties for this build -->
|
11 |
| - <property name="srcNS" location="src" /> |
12 |
| - <property name="buildNS" location="build" /> |
13 |
| - <property name="libNS" location="lib" /> |
14 |
| - <property name="release_dir" value="release" /> |
| 11 | + <property name="NSdir" location="../nested-sampling/" /> |
| 12 | + <property name="srcNS" location="${NSdir}/src" /> |
| 13 | + <property name="buildNS" location="${NSdir}/build" /> |
| 14 | + <property name="libNS" location="${NSdir}/lib" /> |
| 15 | + <property name="release_dir" value="${NSdir}/release" /> |
15 | 16 | <property name="distNS" location="${buildNS}/dist" />
|
16 | 17 | <property name="beast2path" location="../beast2" />
|
17 | 18 | <property name="libBeast2" location="${beast2path}/lib" />
|
18 | 19 | <property name="srcBeast2" location="${beast2path}/src" />
|
19 | 20 | <property name="beast2classpath" location="${beast2path}/build" />
|
| 21 | + <property name="beastappclasspath" location="../BeastFX/build" /> |
| 22 | + <property name="buildMODEL_SELECTION" location="../model-selection/build" /> |
| 23 | + |
20 | 24 | <property name="Add_on_dir" value="${release_dir}/add-on" />
|
21 |
| - <property name="version" value="1.1.0" /> |
22 | 25 |
|
23 |
| - <property name="buildMODEL_SELECTION" location="../model-selection/build"/> |
24 |
| - <property name="buildBEAST_LABS" location="../BEASTLabs/build"/> |
25 |
| - |
26 | 26 |
|
27 | 27 | <import file="${beast2path}/build.xml" />
|
28 | 28 |
|
|
31 | 31 |
|
32 | 32 | <path id="classpath">
|
33 | 33 | <pathelement path="${buildNS}"/>
|
34 |
| - <fileset dir="${libBeast2}" includes="antlr-runtime-4.7.jar"/> |
35 |
| - <fileset dir="${libBeast2}" includes="junit-4.8.2.jar"/> |
| 34 | + <fileset dir="${libBeast2}" includes="antlr-runtime-4.10.1.jar"/> |
36 | 35 | <fileset dir="${libBeast2}" includes="beagle.jar"/>
|
37 |
| - <fileset dir="${libBeast2}" includes="jam.jar"/> |
38 |
| - <fileset dir="${libBeast2}" includes="ntlr-runtime-4.5.jar"/> |
39 |
| - <fileset dir="${libBeast2}" includes="commons-math3-3.1.1.jar"/> |
| 36 | + <fileset dir="${libBeast2}" includes="commons-math3-3.6.1.jar"/> |
40 | 37 | <fileset dir="${libBeast2}" includes="colt.jar"/>
|
41 |
| - <fileset dir="${libBeast2}" includes="debug-1.0.jar"/> |
| 38 | + <fileset dir="${libBeast2}/junit/" includes="junit-platform-console-standalone-1.8.2.jar"/> |
42 | 39 | <pathelement path="${buildMODEL_SELECTION}"/>
|
43 |
| - <pathelement path="${buildBEAST_LABS}"/> |
| 40 | + <pathelement path="${beastappclasspath}"/> |
44 | 41 | <pathelement path="${beast2classpath}"/>
|
45 |
| - </path> |
| 42 | + </path> |
46 | 43 |
|
47 | 44 | <!-- start -->
|
48 | 45 | <target name="initNS">
|
49 | 46 | <echo message="${ant.project.name}: ${ant.file}" />
|
| 47 | + <available file="${NSdir}/version.xml" property="versionAvailable"/> |
| 48 | + <fail unless="versionAvailable"> |
| 49 | + ** Required file version.xml does not exist. ** |
| 50 | + </fail> |
| 51 | + |
| 52 | + <!-- Read package name and version from xml file --> |
| 53 | + <xmlproperty file="${NSdir}/version.xml" prefix="fromVersionFile" /> |
| 54 | + <property name="NSversion" value="${fromVersionFile.package(version)}" /> |
50 | 55 | </target>
|
51 | 56 |
|
52 | 57 | <target name="cleanNS">
|
|
85 | 90 | fork="true"
|
86 | 91 | memoryinitialsize="256m"
|
87 | 92 | memorymaximumsize="256m">
|
88 |
| - <!--source="1.6" |
89 |
| - target="1.6"--> |
90 |
| - <include name="beast/**/**" /> |
| 93 | + <include name="nestedsampling/**/**" /> |
91 | 94 | <!-- compile JUnit test classes -->
|
92 | 95 | <include name="test/beast/**" />
|
93 | 96 | </javac>
|
|
99 | 102 | <!-- Create the distribution directory -->
|
100 | 103 | <mkdir dir="${distNS}" />
|
101 | 104 |
|
102 |
| - <!-- Put everything in ${buildNS} into the beast.jar file --> |
103 |
| - <jar jarfile="${distNS}/NS.jar"> |
104 |
| - <manifest> |
105 |
| - <attribute name="Built-By" value="${user.name}" /> |
106 |
| - <attribute name="Main-Class" value="${main_class_BEAST}" /> |
107 |
| - </manifest> |
108 |
| - <fileset dir="${buildNS}"> |
109 |
| - <include name="**/*.class" /> |
110 |
| - </fileset> |
111 |
| - <fileset dir="${buildMODEL_SELECTION}"> |
112 |
| - <include name="**/*.class" /> |
113 |
| - </fileset> |
114 |
| - <fileset dir="${buildBEAST_LABS}"> |
115 |
| - <include name="**/*.class" /> |
116 |
| - </fileset> |
117 |
| - <fileset dir="${beast2classpath}"> |
118 |
| - <include name="**/*.class" /> |
119 |
| - <include name="**/*.properties" /> |
120 |
| - <include name="**/*.png" /> |
121 |
| - </fileset> |
122 |
| - <zipgroupfileset dir="${lib}" includes="jam.jar" /> |
123 |
| - <zipgroupfileset dir="${lib}" includes="beagle.jar" /> |
124 |
| - <zipgroupfileset dir="${lib}" includes="colt.jar" /> |
125 |
| - <zipgroupfileset dir="${lib}" includes="commons-math3-3.1.1.jar" /> |
126 |
| - <zipgroupfileset dir="${lib}" includes="antlr-runtime-4.7.jar"/> |
127 |
| - </jar> |
128 | 105 | <jar jarfile="${distNS}/NS.src.jar">
|
129 | 106 | <fileset dir="${srcNS}">
|
130 |
| - <include name="beast/**/*.java" /> |
131 |
| - <include name="beast/**/*.png" /> |
132 |
| - <include name="beast/**/*.xsl" /> |
| 107 | + <include name="nestedsampling/**/*.java" /> |
| 108 | + <include name="nestedsampling/**/*.png" /> |
| 109 | + <include name="nestedsampling/**/*.xsl" /> |
133 | 110 | </fileset>
|
134 | 111 | </jar>
|
135 | 112 | <jar jarfile="${distNS}/NS.addon.jar">
|
136 | 113 | <manifest>
|
137 | 114 | <attribute name="Built-By" value="${user.name}" />
|
138 | 115 | </manifest>
|
139 | 116 | <fileset dir="${buildNS}">
|
140 |
| - <include name="beast/**/*.class" /> |
| 117 | + <include name="nestedsampling/**/*.class" /> |
141 | 118 | <include name="util/**/*.class" />
|
142 | 119 | <include name="**/*.properties" />
|
143 | 120 | </fileset>
|
|
193 | 170 | <mkdir dir="${Add_on_dir}" />
|
194 | 171 | <mkdir dir="${Add_on_dir}/lib" />
|
195 | 172 | <mkdir dir="${Add_on_dir}/examples" />
|
196 |
| - <mkdir dir="${Add_on_dir}/templates" /> |
| 173 | + <mkdir dir="${Add_on_dir}/fxtemplates" /> |
197 | 174 |
|
198 | 175 | <copy todir="${Add_on_dir}">
|
199 | 176 | <fileset file="version.xml"/>
|
|
207 | 184 | <copy todir="${Add_on_dir}">
|
208 | 185 | <fileset dir="${distNS}" includes="NS.src.jar" />
|
209 | 186 | </copy>
|
210 |
| - <copy todir="${Add_on_dir}/templates"> |
211 |
| - <fileset file="templates/NS.xml" /> |
212 |
| - <fileset file="templates/AutoPartition.xml" /> |
| 187 | + <copy todir="${Add_on_dir}/fxtemplates"> |
| 188 | + <fileset file="fxtemplates/NS.xml" /> |
213 | 189 | </copy>
|
214 | 190 |
|
215 |
| - <jar jarfile="${distNS}/NS.addon.v${version}.zip"> |
| 191 | + <jar jarfile="${distNS}/NS.addon.v${NSversion}.zip"> |
216 | 192 | <fileset dir="${Add_on_dir}">
|
217 | 193 | <include name="**/*" />
|
218 | 194 | </fileset>
|
219 | 195 | </jar>
|
220 |
| - <echo message="Add-on version v${version} release is finished." /> |
| 196 | + <echo message="Add-on version v${NSversion} release is finished." /> |
221 | 197 | </target>
|
222 | 198 |
|
223 | 199 | </project>
|
0 commit comments