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 <!-- ================================================= -->
11 <!-- Build web services stubs project -->
12 <!-- ================================================= -->
13 <target name="build-stub"></target>
15 <!-- ================================================= -->
17 <!-- Create the JAR distribution -->
18 <!-- ================================================= -->
19 <target name="build-dist" depends="clean, build-stub" description="Builds the JAR distribution">
20 <echo message="build ${common-jar.name}.jar"/>
22 <!-- <antcall target="compile-java">
25 <mkdir dir="${siman-common.dist.dir}" />
26 <jar destfile="${siman-common.dist.dir}/${siman-common.jar.name}">
27 <zipfileset dir="${siman-common.bin.dir}">
29 <exclude name="test" />
30 <exclude name="**/datasourceContextTomcat.xml" />
33 <attribute name="Built-By" value="${app.author}" />
34 <attribute name="Version" value="${app.version}" />
35 <attribute name="Built-Date" value="${timesimple}" />
38 <!-- <jar destfile="${hewis-lib-common.dist.dir}/${hewis-lib-common.itf.jar.name}">
39 <zipfileset dir="${build.classes.dir}">
40 <include name="**/*.properties" />
41 <include name="**/*Enum.class" />
42 <include name="**/*Utils.class" />
43 <include name="**/*Props.class" />
44 <include name="**/wsclient/dto/*DTO.class" />
45 <exclude name="test" />
48 <attribute name="Built-By" value="EURIWARE" />
49 <attribute name="Version" value="${app.version}" />
50 <attribute name="Built-Date" value="${timesimple}" />
55 <target name="create_run_jar">
56 <mkdir dir="${converter.dist.dir}" />
57 <jar destfile="${converter.dist.dir}/converter.jar">
59 <attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/>
60 <attribute name="Rsrc-Main-Class" value="Test"/>
61 <attribute name="Class-Path" value="."/>
62 <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"/>
64 <zipfileset src="${converter.src.dir}/jar-in-jar-loader.zip"/>
65 <fileset dir="../SPlat/bin">
68 <zipfileset dir="../SPlat/${splat.lib.dir}">
69 <include name="*.jar"/>
71 <!--<zipfileset dir="../SPlat/${splat.lib.dir}" includes="mysql-connector-java-5.1.5-bin.jar"/>
72 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="hibernate-3.5.jar"/>
73 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="dom4j-1.6.1.jar"/>
74 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="log4j-1.2.15.jar"/>
75 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="splat-kernel.jar"/>
76 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="commons-collections-3.1.jar"/>
77 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="antlr-2.7.6.jar"/>
78 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="javassist-3.9.0.GA.jar"/>
79 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="jta-1.1.jar"/>
80 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="slf4j-api-1.6.1.jar"/>
81 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="slf4j-log4j12-1.6.1.jar"/>
82 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="splat-som.jar"/>
83 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="lucene-core-2.9.2.jar"/>
84 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="lucene-queries-2.9.2.jar"/>
85 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="splat-manox.jar"/>
86 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="poi-3.7-20101029.jar"/>
87 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="poi-ooxml-3.7-20101029.jar"/>
88 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="xmlpublic.jar"/>
89 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="poi-ooxml-schemas-3.7-20101029.jar"/>-->
93 <!-- ================================================= -->
95 <!-- Clean the build directory -->
96 <!-- ================================================= -->
97 <target name="clean" description="clean the build directory">
98 <echo message="deleting files in ${splat.dist.dir}" />
99 <delete includeemptydirs="true" failonerror="false">
100 <fileset dir="${splat.dist.dir}" includes="**/*" />
102 <!-- <echo message="deleting files in ${splat.build.dir}" />
103 <delete includeemptydirs="true" failonerror="false">
104 <fileset dir="${splat.build.dir}" includes="**/*" />