1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <project default="build-dist" name="SIMAN Common Jar 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 <!-- Build SPlat project -->
27 <!-- ================================================= -->
28 <target name="splat" description="Builds SPlat project">
29 <ant dir="../${splat.project.name}"/>
32 <!-- ================================================= -->
34 <!-- Create the JAR distribution -->
35 <!-- ================================================= -->
36 <target name="build-dist" depends="clean, build-stub" description="Builds the JAR distribution">
37 <echo message="build ${siman-common.jar.name}.jar"/>
39 <!-- <antcall target="compile-java">
42 <mkdir dir="${siman-common.dist.dir}" />
43 <jar destfile="${siman-common.dist.dir}/${siman-common.jar.name}">
44 <zipfileset dir="${siman-common.bin.dir}">
46 <exclude name="test" />
47 <exclude name="**/datasourceContextTomcat.xml" />
50 <attribute name="Built-By" value="${app.author}" />
51 <attribute name="Version" value="${app.version}" />
52 <attribute name="Built-Date" value="${timesimple}" />
55 <!-- <jar destfile="${hewis-lib-common.dist.dir}/${hewis-lib-common.itf.jar.name}">
56 <zipfileset dir="${build.classes.dir}">
57 <include name="**/*.properties" />
58 <include name="**/*Enum.class" />
59 <include name="**/*Utils.class" />
60 <include name="**/*Props.class" />
61 <include name="**/wsclient/dto/*DTO.class" />
62 <exclude name="test" />
65 <attribute name="Built-By" value="EURIWARE" />
66 <attribute name="Version" value="${app.version}" />
67 <attribute name="Built-Date" value="${timesimple}" />
72 <!-- ================================================= -->
74 <!-- Clean the dist directory -->
75 <!-- ================================================= -->
76 <target name="clean" description="clean the build directory">
77 <echo message="deleting files in ${splat.dist.dir}" />
78 <delete includeemptydirs="true" failonerror="false">
79 <fileset dir="${splat.dist.dir}" includes="**/*" />