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 siman-stub.jar -->
12 <!-- ================================================= -->
13 <target name="build-stub" description="Build the hewis-stub.jar">
14 <!--<ant antfile="${hewis-stub.dir}/build.xml" target="build-stub-dist" inheritall="false">
15 <property name="project.dir" value="${project.dir}" />
16 <property name="compiler.debug" value="${compiler.debug}" />
17 <property name="compiler.generate.no.warnings" value="${compiler.generate.no.warnings}" />
18 <property name="compiler.max.memory" value="${compiler.max.memory}" />
19 <property name="compiler.optimize" value="${compiler.optimize}" />
20 <property name="compiler.deprecation" value="${compiler.deprecation}" />
24 <!-- ================================================= -->
26 <!-- Create the JAR distribution -->
27 <!-- ================================================= -->
28 <target name="build-dist" depends="clean, build-stub" description="Builds the JAR distribution">
29 <echo message="build ${common-jar.name}.jar"/>
31 <!-- <antcall target="compile-java">
34 <mkdir dir="${siman-common.dist.dir}" />
35 <jar destfile="${siman-common.dist.dir}/${siman-common.jar.name}">
36 <zipfileset dir="${siman-common.bin.dir}">
38 <exclude name="test" />
39 <exclude name="**/datasourceContextTomcat.xml" />
42 <attribute name="Built-By" value="${app.author}" />
43 <attribute name="Version" value="${app.version}" />
44 <attribute name="Built-Date" value="${timesimple}" />
47 <!-- <jar destfile="${hewis-lib-common.dist.dir}/${hewis-lib-common.itf.jar.name}">
48 <zipfileset dir="${build.classes.dir}">
49 <include name="**/*.properties" />
50 <include name="**/*Enum.class" />
51 <include name="**/*Utils.class" />
52 <include name="**/*Props.class" />
53 <include name="**/wsclient/dto/*DTO.class" />
54 <exclude name="test" />
57 <attribute name="Built-By" value="EURIWARE" />
58 <attribute name="Version" value="${app.version}" />
59 <attribute name="Built-Date" value="${timesimple}" />
64 <target name="create_run_jar">
65 <mkdir dir="${converter.dist.dir}" />
66 <jar destfile="${converter.dist.dir}/converter.jar">
68 <attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/>
69 <attribute name="Rsrc-Main-Class" value="Test"/>
70 <attribute name="Class-Path" value="."/>
71 <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"/>
73 <zipfileset src="${converter.src.dir}/jar-in-jar-loader.zip"/>
74 <fileset dir="../SPlat/bin">
77 <zipfileset dir="../SPlat/${splat.lib.dir}">
78 <include name="*.jar"/>
80 <!--<zipfileset dir="../SPlat/${splat.lib.dir}" includes="mysql-connector-java-5.1.5-bin.jar"/>
81 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="hibernate-3.5.jar"/>
82 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="dom4j-1.6.1.jar"/>
83 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="log4j-1.2.15.jar"/>
84 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="splat-kernel.jar"/>
85 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="commons-collections-3.1.jar"/>
86 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="antlr-2.7.6.jar"/>
87 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="javassist-3.9.0.GA.jar"/>
88 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="jta-1.1.jar"/>
89 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="slf4j-api-1.6.1.jar"/>
90 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="slf4j-log4j12-1.6.1.jar"/>
91 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="splat-som.jar"/>
92 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="lucene-core-2.9.2.jar"/>
93 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="lucene-queries-2.9.2.jar"/>
94 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="splat-manox.jar"/>
95 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="poi-3.7-20101029.jar"/>
96 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="poi-ooxml-3.7-20101029.jar"/>
97 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="xmlpublic.jar"/>
98 <zipfileset dir="../SPlat/${splat.lib.dir}" includes="poi-ooxml-schemas-3.7-20101029.jar"/>-->
102 <!-- ================================================= -->
104 <!-- Clean the build directory -->
105 <!-- ================================================= -->
106 <target name="clean" description="clean the build directory">
107 <echo message="deleting files in ${splat.dist.dir}" />
108 <delete includeemptydirs="true" failonerror="false">
109 <fileset dir="${splat.dist.dir}" includes="**/*" />
111 <!-- <echo message="deleting files in ${splat.build.dir}" />
112 <delete includeemptydirs="true" failonerror="false">
113 <fileset dir="${splat.build.dir}" includes="**/*" />