1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <project default="create_run_jar" name="Runnable Jar for Project SPlat with Jar-in-Jar Loader builder">
3 <!--this file was created by Eclipse Runnable JAR Export Wizard-->
4 <!--ANT 1.7 is required -->
5 <property environment="env" />
6 <property file="../SPlat/build.properties" description="set the SPlat build parameters" />
7 <property file="build.properties" description="set the build parameters" />
9 <!-- ================================================= -->
10 <!-- Build-Splat-Jar -->
11 <!-- Create the jar file in the dist directory -->
12 <!-- ================================================= -->
13 <target name="jar" description="create jar file in dist directory">
14 <echo message="build ${common-jar.name}.jar"/>
15 <mkdir dir="${splat.dist.dir}" />
16 <jar destfile="${splat.dist.dir}/splat-${jar.name}.jar" >
17 <zipfileset dir="${splat.bin.dir}/">
18 <include name="org/splat/${jar.name}/**" />
21 <attribute name="Built-By" value="${app.author}" />
22 <attribute name="Version" value="${app.version}" />
23 <attribute name="Built-Date" value="${timesimple}" />
30 <target name="create_run_jar">
31 <mkdir dir="${converter.dist.dir}" />
32 <jar destfile="${converter.dist.dir}/converter.jar">
34 <attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/>
35 <attribute name="Rsrc-Main-Class" value="Test"/>
36 <attribute name="Class-Path" value="."/>
37 <attribute name="Rsrc-Class-Path" value="./ mysql-connector-java-5.1.5-bin.jar hibernate-3.5.jar dom4j-1.6.1.jar log4j-1.2.15.jar splat-kernel.jar commons-collections-3.1.jar antlr-2.7.6.jar javassist-3.9.0.GA.jar jta-1.1.jar slf4j-api-1.6.1.jar slf4j-log4j12-1.6.1.jar splat-som.jar lucene-core-2.9.2.jar lucene-queries-2.9.2.jar splat-manox.jar poi-3.7-20101029.jar poi-ooxml-3.7-20101029.jar xmlpublic.jar poi-ooxml-schemas-3.7-20101029.jar"/>
39 <zipfileset src="${converter.src.dir}/jar-in-jar-loader.zip"/>
40 <fileset dir="../SPlat/bin">
43 <zipfileset dir="../SPlat/${splat.lib.dir}">
44 <include name="*.jar"/>
46 <!--<zipfileset dir="../SPlat/${splat.lib.dir}" includes="mysql-connector-java-5.1.5-bin.jar"/>
47 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="hibernate-3.5.jar"/>
48 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="dom4j-1.6.1.jar"/>
49 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="log4j-1.2.15.jar"/>
50 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="splat-kernel.jar"/>
51 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="commons-collections-3.1.jar"/>
52 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="antlr-2.7.6.jar"/>
53 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="javassist-3.9.0.GA.jar"/>
54 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="jta-1.1.jar"/>
55 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="slf4j-api-1.6.1.jar"/>
56 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="slf4j-log4j12-1.6.1.jar"/>
57 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="splat-som.jar"/>
58 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="lucene-core-2.9.2.jar"/>
59 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="lucene-queries-2.9.2.jar"/>
60 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="splat-manox.jar"/>
61 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="poi-3.7-20101029.jar"/>
62 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="poi-ooxml-3.7-20101029.jar"/>
63 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="xmlpublic.jar"/>
64 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="poi-ooxml-schemas-3.7-20101029.jar"/>-->
68 <!-- ================================================= -->
70 <!-- Clean the build directory -->
71 <!-- ================================================= -->
72 <target name="clean" description="clean the build directory">
73 <echo message="deleting files in ${splat.dist.dir}" />
74 <delete includeemptydirs="true" failonerror="false">
75 <fileset dir="${splat.dist.dir}" includes="**/*" />
77 <!-- <echo message="deleting files in ${splat.build.dir}" />
78 <delete includeemptydirs="true" failonerror="false">
79 <fileset dir="${splat.build.dir}" includes="**/*" />