]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
df7dadf0573d3e28a3b0c7108a6247cdeb9d371d
[tools/siman.git] /
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" />
8         
9         <!-- ================================================= -->
10         <!--    Build-Stub                                                                         -->
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}" />
21                 </ant>-->
22         </target>
23         
24         <!-- ================================================= -->
25         <!--    Build-Dist                                                                         -->
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"/>
30
31         <!--    <antcall target="compile-java">
32                 </antcall>-->
33                 
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}">
37                                 <include name="**" />
38                                 <exclude name="test" />
39                                 <exclude name="**/datasourceContextTomcat.xml" />
40                         </zipfileset>
41                         <manifest>
42                                 <attribute name="Built-By" value="${app.author}" />
43                                 <attribute name="Version" value="${app.version}" />
44                                 <attribute name="Built-Date" value="${timesimple}" />
45                         </manifest>
46                 </jar>
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" />
55                         </zipfileset>
56                         <manifest>
57                                 <attribute name="Built-By" value="EURIWARE" />
58                                 <attribute name="Version" value="${app.version}" />
59                                 <attribute name="Built-Date" value="${timesimple}" />
60                         </manifest>
61                 </jar>-->
62         </target>
63
64         <target name="create_run_jar">
65                 <mkdir dir="${converter.dist.dir}" />
66         <jar destfile="${converter.dist.dir}/converter.jar">
67             <manifest>
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"/>
72             </manifest>
73             <zipfileset src="${converter.src.dir}/jar-in-jar-loader.zip"/>
74             <fileset dir="../SPlat/bin">
75                 <include name="*"/>
76             </fileset>
77             <zipfileset dir="../SPlat/${splat.lib.dir}">
78                 <include name="*.jar"/>
79             </zipfileset>
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"/>-->
99         </jar>
100     </target>
101         
102         <!-- ================================================= -->
103         <!--    Clean                                                                              -->
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="**/*" />
110                 </delete>
111 <!--            <echo message="deleting files in ${splat.build.dir}" />
112                 <delete includeemptydirs="true" failonerror="false">
113                         <fileset dir="${splat.build.dir}" includes="**/*" />
114                 </delete>-->
115         </target>
116 </project>