]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/3/70f5b09b490200121424e2083ec3deca
Salome HOME
SIMAN Eclipse workspace first version
[tools/siman.git] / Workspace / .metadata / .plugins / org.eclipse.core.resources / .history / 3 / 70f5b09b490200121424e2083ec3deca
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <project name="SIMAN SALOME Platform builder" default="help">
3
4         <property environment="env" />
5         <property file="build.properties" description="set the build parameters" />
6         
7         <path id="dependencies.classpath">
8                 <fileset dir="${tomcat.war.build.dir}">    
9                         <include name="${splat.lib.dir}/*.*"/>
10                 </fileset>
11         </path>
12
13         <path id="test.libs.classpath">
14                 <pathelement location="${splat.lib.dir}/testng/testng-5.8-jdk15.jar" />
15                 <pathelement location="${splat.lib.dir}/spring/spring-test.jar" />
16         </path>
17
18         
19         <property name="time.simple.pattern" value="dd/MM/yyyy" />
20         <tstamp>
21                 <format property="timesimple" pattern="${time.simple.pattern}" />
22         </tstamp>
23
24         <!-- ================================================= -->
25         <!--    Build-Splat-Jar                                                            -->
26         <!--    Create the jar file in the dist directory          -->
27         <!-- ================================================= -->
28         <target name="build-splat-jar" description="create jar file in dist directory">
29                 <echo message="build splat-${jar.name}.jar"/>
30                 <mkdir dir="${splat.dist.dir}" />
31                 <jar destfile="${splat.dist.dir}/splat-${jar.name}.jar" >
32                         <zipfileset dir="${splat.bin.dir}/">
33                                 <include name="org/splat/${jar.name}/**" />
34                         </zipfileset>
35                         <manifest>
36                                 <attribute name="Built-By" value="${app.author}" />
37                                 <attribute name="Version" value="${app.version}" />
38                                 <attribute name="Built-Date" value="${timesimple}" />
39                         </manifest>
40                 </jar>
41         </target>
42
43         <!-- ================================================= -->
44         <!--    Manox-Jar                                                                                          -->
45         <!--    Create the jar file in the dist directory          -->
46         <!-- ================================================= -->
47         <target name="manox-jar" description="create jar file in dist directory">
48                 <antcall target="build-splat-jar">
49                         <param name="jar.name" value="manox"/>
50                 </antcall>
51         </target>
52         
53         <!-- ================================================= -->
54         <!--    Kernel-Jar                                                                                         -->
55         <!--    Create the jar file in the dist directory          -->
56         <!-- ================================================= -->
57         <target name="kernel-jar" description="create jar file in dist directory">
58                 <antcall target="build-splat-jar">
59                         <param name="jar.name" value="kernel"/>
60                 </antcall>
61         </target>
62         
63         <!-- ================================================= -->
64         <!--    Som-Jar                                                                                    -->
65         <!--    Create the jar file in the dist directory          -->
66         <!-- ================================================= -->
67         <target name="som-jar" description="create jar file in dist directory">
68                 <antcall target="build-splat-jar">
69                         <param name="jar.name" value="som"/>
70                 </antcall>
71         </target>
72
73         <!-- ================================================= -->
74         <!--    Jar                                                                                -->
75         <!--    Build jars                                                 -->
76         <!-- ================================================= -->
77         <target name="jar" depends="kernel-jar,som-jar,manox-jar" description="compile and create the jar file in dist directory">
78         </target>
79
80         <!-- Targets below are not yet used. -->
81         <!-- ================================================= -->
82         <!--    Build                                                                              -->
83         <!--    Compile and create the dist target                         -->
84         <!-- ================================================= -->
85         <target name="build" depends="compile,jar" description="compile and create the jar file in dist directory">
86         </target>
87
88
89         <!-- ================================================= -->
90         <!--    rebuild                                                                            -->
91         <!--    Compile and create the dist target                         -->
92         <!-- ================================================= -->
93         <target name="rebuild" depends="clean,compile,jar" description="clean, compile and create the jar file in dist directory">
94         </target>
95
96         <!-- ================================================= -->
97         <!--    Clean                                                                              -->
98         <!--    Clean the build directory                                          -->
99         <!-- ================================================= -->
100         <target name="clean" description="clean the build directory">
101                 <echo message="deleting files in ${splat.dist.dir}" />
102                 <delete includeemptydirs="true" failonerror="false">
103                         <fileset dir="${splat.dist.dir}" includes="**/*" />
104                 </delete>
105                 <echo message="deleting files in ${splat.build.dir}" />
106                 <delete includeemptydirs="true" failonerror="false">
107                         <fileset dir="${splat.build.dir}" includes="**/*" />
108                 </delete>
109         </target>
110
111         <!-- ============================================================================ -->
112         <!-- help : display the help page                                                 -->
113         <!-- ============================================================================ -->
114         <target name="help">
115                 <java fork="no" classname="org.apache.tools.ant.Main">
116                         <arg line="-projecthelp" />
117                 </java>
118         </target>
119
120         <!-- ================================================= -->
121         <!--    Compile                                                                            -->
122         <!--    Compile the sources file in build/classes          -->
123         <!-- ================================================= -->
124         <target name="compile" description="compile source code">
125                 <echo message="compiling SIMAN SALOME Platform" />
126                 <echo message="compiler.max.memory : ${compiler.max.memory}" />
127                 <echo message="build repository : ${splat.build.dir}" />
128                 <echo message="splat.lib.dir : ${splat.lib.dir}" />
129
130                 <mkdir dir="${splat.build.dir}" />
131                 <mkdir dir="${splat.build.dir}/classes" />
132                 <javac target="1.5" destdir="${splat.build.dir}/classes" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memoryMaximumSize="${compiler.max.memory}" fork="true" optimize="${compiler.optimize}" deprecation="${compiler.deprecation}">
133                         <src path="${splat.src.dir}" />
134                         <classpath>
135                                 <path refid="dependencies.classpath" />
136                         </classpath>
137                         <exclude name="test/**" />
138                 </javac>
139                 <copy todir="${splat.build.dir}/classes">
140                         <fileset dir="${splat.src.dir}/conf">
141                         </fileset>
142                         <fileset dir="${splat.src.dir}/java">
143                                 <include name="com/**/*.xsd"/>
144                         </fileset>
145                 </copy>
146                 <mkdir dir="${splat.build.dir}/classes/META-INF" />
147         </target>
148
149
150         
151         <!-- ================================================= -->
152         <!--    Compile tests                                                                      -->
153         <!--    Compile the tests sources file in build/tests      -->
154         <!-- ================================================= -->
155         <target name="compile-tests" description="compile source code">
156                 <echo message="compiling splat tests classes" />
157                 <echo message="compiler.max.memory : ${compiler.max.memory}" />
158                 <echo message="build repository : ${splat.build.dir}" />
159                 <echo message="splat.lib.dir : ${splat.lib.dir}" />
160
161                 <mkdir dir="${splat.build.dir}" />
162                 <mkdir dir="${splat.build.dir}/classes" />
163                 <javac destdir="${splat.build.dir}/classes" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memoryMaximumSize="${compiler.max.memory}" fork="true" optimize="${compiler.optimize}" deprecation="${compiler.deprecation}">
164                         <src path="${splat.dir}/test" />
165                         <classpath>
166                                 <path refid="dependencies.classpath" />
167                                 <path refid="test.libs.classpath" />
168                         </classpath>
169                         <include name="test/**" />
170                         <exclude name="com/**" />
171                         <exclude name="org/**" />
172                 </javac>
173         </target>
174
175 </project>