Changeset 460
- Timestamp:
- 06/01/11 17:10:53 (2 years ago)
- File:
-
- 1 edited
-
trunk/ontoCAT/build.xml (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ontoCAT/build.xml
r458 r460 35 35 36 36 <target name="compile"> 37 <javac srcdir="src:test" destdir="bin" nowarn="on">37 <javac srcdir="src:test" excludes="**/OntologyParser.java" destdir="bin" nowarn="on"> 38 38 <classpath refid="test.classpath" /> 39 39 </javac> 40 40 <!-- deliver config files --> 41 <copy todir="bin">42 <fileset dir="src" excludes="**/*.java"/>43 </copy>41 <copy todir="bin"> 42 <fileset dir="src" excludes="**/*.java" /> 43 </copy> 44 44 </target> 45 45 46 46 <target name="clean-dist"> 47 <delete>48 <fileset dir="dist" includes="*.jar"/>49 <fileset dir="dist" includes="*.zip"/>50 </delete>51 </target> 52 47 <delete> 48 <fileset dir="dist" includes="*.jar" /> 49 <fileset dir="dist" includes="*.zip" /> 50 </delete> 51 </target> 52 53 53 <target name="dist" depends="clean-dist, compile, test-html, jar, jar-with-deps, jar-with-deps-small, javadoc, dist-no-test"> 54 54 </target> … … 69 69 </zip> 70 70 </target> 71 71 72 72 <target name="jar-with-deps"> 73 73 <jar destfile="dist/${ant.project.name}-${version}-with-deps.jar" filesetmanifest="mergewithoutmain"> … … 102 102 </jar> 103 103 </target> 104 104 105 105 <!-- This uses the custom xstream-gae.jar that works on google app engine--> 106 106 <target name="jar-with-deps-gae"> … … 135 135 </jar> 136 136 </target> 137 137 138 138 <target name="jar-with-deps-small"> 139 <jar destfile="dist/${ant.project.name}-${version}-with-deps-small.jar" filesetmanifest="mergewithoutmain">140 <manifest>141 <attribute name="Main-Class" value="uk.ac.ebi.ontocat.examples.Example3" />142 <attribute name="Class-Path" value="." />143 </manifest>144 <fileset dir="bin" />145 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/jargs.jar" />146 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/log4j-1.2.15.jar" />147 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/xpp3_min-1.1.4c.jar" />148 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/opencsv-1.8.jar" />149 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/owlapi-3.2.2/owlapi-bin.jar" />150 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ols-client.jar" />151 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/axis.jar" />152 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/jaxrpc.jar" />153 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-logging-1.1.1.jar" />154 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-discovery-0.2.jar" />155 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/wsdl4j-1.6.2.jar" />156 <!--139 <jar destfile="dist/${ant.project.name}-${version}-with-deps-small.jar" filesetmanifest="mergewithoutmain"> 140 <manifest> 141 <attribute name="Main-Class" value="uk.ac.ebi.ontocat.examples.Example3" /> 142 <attribute name="Class-Path" value="." /> 143 </manifest> 144 <fileset dir="bin" /> 145 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/jargs.jar" /> 146 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/log4j-1.2.15.jar" /> 147 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/xpp3_min-1.1.4c.jar" /> 148 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/opencsv-1.8.jar" /> 149 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/owlapi-3.2.2/owlapi-bin.jar" /> 150 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ols-client.jar" /> 151 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/axis.jar" /> 152 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/jaxrpc.jar" /> 153 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-logging-1.1.1.jar" /> 154 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-discovery-0.2.jar" /> 155 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/wsdl4j-1.6.2.jar" /> 156 <!-- 157 157 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ehcache-core-1.7.2/ehcache-core-1.7.2.jar" /> 158 158 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ehcache-core-1.7.2/lib/slf4j-log4j12-1.5.11.jar" /> 159 159 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ehcache-core-1.7.2/lib/slf4j-api-1.5.11.jar" /> 160 160 --> 161 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-lang-2.4.jar" />162 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/xstream-1.3.1.jar" />163 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-validator-1.3.1/commons-validator-1.3.1.jar" />164 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/HermiT/org.semanticweb.HermiT.jar" />165 </jar>166 </target>161 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-lang-2.4.jar" /> 162 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/xstream-1.3.1.jar" /> 163 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-validator-1.3.1/commons-validator-1.3.1.jar" /> 164 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/HermiT/org.semanticweb.HermiT.jar" /> 165 </jar> 166 </target> 167 167 168 168 <target name="jar"> … … 172 172 </target> 173 173 174 <target name="test" >174 <target name="test"> 175 175 <delete dir="${test.reports}" /> 176 176 <mkdir dir="${test.reports}" /> … … 196 196 </junitreport> 197 197 </target> 198 198 199 199 <target name="update-sf"> 200 <input message="Please enter your username in ontocat@SF" 201 addproperty="tc.user" 202 defaultvalue="tadamusiak" /> 203 <input message="Please enter your password for ontocat@SF:" 204 addproperty="tc.pass" /> 205 200 <input message="Please enter your username in ontocat@SF" addproperty="tc.user" defaultvalue="tadamusiak" /> 201 <input message="Please enter your password for ontocat@SF:" addproperty="tc.pass" /> 202 206 203 <!-- request interactive shell --> 207 <sshexec host="shell.sourceforge.net" 208 trust="true" 209 verbose="true" 210 username="${tc.user},ontocat" 211 password="${tc.pass}" 212 command="create" /> 204 <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${tc.user},ontocat" password="${tc.pass}" command="create" /> 213 205 <!-- archive the old files --> 214 <sshexec host="shell.sourceforge.net" 215 trust="true" 216 verbose="true" 217 username="${tc.user},ontocat" 218 password="${tc.pass}" 219 command="mv /home/frs/project/o/on/ontocat/ontoCAT/release/*.zip /home/frs/project/o/on/ontocat/ontoCAT/archive/." /> 220 206 <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${tc.user},ontocat" password="${tc.pass}" command="mv /home/frs/project/o/on/ontocat/ontoCAT/release/*.zip /home/frs/project/o/on/ontocat/ontoCAT/archive/." /> 207 221 208 <!-- update the README --> 222 <scp file="dist/release_notes.txt" 223 trust="true" 224 verbose="true" 225 todir="${tc.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/release/README" 226 password="${tc.pass}"> 227 </scp> 228 209 <scp file="dist/release_notes.txt" trust="true" verbose="true" todir="${tc.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/release/README" password="${tc.pass}"> 210 </scp> 211 229 212 <!-- copy new release --> 230 <scp file="dist/${ant.project.name}-${version}.zip" 231 trust="true" 232 verbose="true" 233 todir="${tc.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/release/." 234 password="${tc.pass}"> 235 </scp> 236 237 213 <scp file="dist/${ant.project.name}-${version}.zip" trust="true" verbose="true" todir="${tc.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/release/." password="${tc.pass}"> 214 </scp> 215 216 238 217 <!-- shutdown interactive shell --> 239 <sshexec host="shell.sourceforge.net" 240 trust="true" 241 verbose="true" 242 username="${tc.user},ontocat" 243 password="${tc.pass}" 244 command="shutdown" /> 245 </target> 246 247 248 <property environment="env"/> 218 <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${tc.user},ontocat" password="${tc.pass}" command="shutdown" /> 219 </target> 220 221 222 <property environment="env" /> 249 223 <property name="hudson.user" value="${env.SFUSER}" /> 250 224 <property name="hudson.pass" value="${env.SFPASS}" /> 251 225 <target name="hudson-to-sf"> 252 <!-- request interactive shell --> 253 <sshexec host="shell.sourceforge.net" 254 trust="true" 255 verbose="true" 256 username="${hudson.user},ontocat" 257 password="${hudson.pass}" 258 command="create" /> 259 <!-- archive the old files 226 <!-- request interactive shell --> 227 <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${hudson.user},ontocat" password="${hudson.pass}" command="create" /> 228 <!-- archive the old files 260 229 <sshexec host="shell.sourceforge.net" 261 230 trust="true" … … 265 234 command="mv /home/frs/project/o/on/ontocat/ontoCAT/release/*.zip /home/frs/project/o/on/ontocat/ontoCAT/archive/." /> 266 235 --> 267 <!-- update the README --> 268 <scp file="dist/release_notes.txt" 269 trust="true" 270 verbose="true" 271 todir="${hudson.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/nightly_build/README" 272 password="${hudson.pass}"> 273 </scp> 274 275 <!-- copy new release --> 276 <scp file="dist/${ant.project.name}-${version}.zip" 277 trust="true" 278 verbose="true" 279 todir="${hudson.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/nightly_build/ontocat-snapshot.zip" 280 password="${hudson.pass}"> 281 </scp> 282 283 284 <!-- shutdown interactive shell --> 285 <sshexec host="shell.sourceforge.net" 286 trust="true" 287 verbose="true" 288 username="${hudson.user},ontocat" 289 password="${hudson.pass}" 290 command="shutdown" /> 291 </target> 236 <!-- update the README --> 237 <scp file="dist/release_notes.txt" trust="true" verbose="true" todir="${hudson.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/nightly_build/README" password="${hudson.pass}"> 238 </scp> 239 240 <!-- copy new release --> 241 <scp file="dist/${ant.project.name}-${version}.zip" trust="true" verbose="true" todir="${hudson.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/nightly_build/ontocat-snapshot.zip" password="${hudson.pass}"> 242 </scp> 243 244 245 <!-- shutdown interactive shell --> 246 <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${hudson.user},ontocat" password="${hudson.pass}" command="shutdown" /> 247 </target> 292 248 293 249 </project>
Note: See TracChangeset
for help on using the changeset viewer.