]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/30/c0d592a0460200121424e2083ec3deca
Salome HOME
*** empty log message ***
[tools/siman.git] / Workspace / .metadata / .plugins / org.eclipse.core.resources / .history / 30 / c0d592a0460200121424e2083ec3deca
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         <!--    Jar                                                                                        -->
26         <!--    Create the jar file in the dist directory          -->
27         <!-- ================================================= -->
28         <target name="splat-manox-jar" description="create jar file in dist directory">
29                 <mkdir dir="${splat.dist.dir}" />
30                 <jar destfile="${splat.dist.dir}/${splat.manox.jar.name}" >
31                         <zipfileset dir="${splat.bin.dir}/">
32                                 <include name="${source.splat-manox.jar}/**" />
33                         </zipfileset>
34                         <manifest>
35                                 <attribute name="Built-By" value="${app.author}" />
36                                 <attribute name="Version" value="${app.version}" />
37                                 <attribute name="Built-Date" value="${timesimple}" />
38                         </manifest>
39                 </jar>
40         </target>
41
42         <!-- ================================================= -->
43         <!--    Jar                                                                                        -->
44         <!--    Create the jar file in the dist directory          -->
45         <!-- ================================================= -->
46         <target name="splat-kernel-jar" description="create jar file in dist directory">
47                 <mkdir dir="${splat.dist.dir}" />
48                 <jar destfile="${splat.dist.dir}/${splat.kernel.jar.name}" >
49                         <zipfileset dir="${splat.bin.dir}/">
50                                 <include name="${source.splat-kernel.jar}/**" />
51                         </zipfileset>
52                         <manifest>
53                                 <attribute name="Built-By" value="${app.author}" />
54                                 <attribute name="Version" value="${app.version}" />
55                                 <attribute name="Built-Date" value="${timesimple}" />
56                         </manifest>
57                 </jar>
58         </target>
59
60         <!-- ================================================= -->
61         <!--    Build                                                                              -->
62         <!--    Compile and create the dist target                         -->
63         <!-- ================================================= -->
64         <target name="build" depends="compile,jar" description="compile and create the jar file in dist directory">
65         </target>
66
67
68         <!-- ================================================= -->
69         <!--    rebuild                                                                            -->
70         <!--    Compile and create the dist target                         -->
71         <!-- ================================================= -->
72         <target name="rebuild" depends="clean,compile,jar" description="clean, compile and create the jar file in dist directory">
73         </target>
74
75         <!-- ================================================= -->
76         <!--    Clean                                                                              -->
77         <!--    Clean the build directory                                          -->
78         <!-- ================================================= -->
79         <target name="clean" description="clean the build directory">
80                 <echo message="deleting files in ${splat.dist.dir}" />
81                 <delete includeemptydirs="true" failonerror="false">
82                         <fileset dir="${splat.dist.dir}" includes="**/*" />
83                 </delete>
84                 <echo message="deleting files in ${splat.build.dir}" />
85                 <delete includeemptydirs="true" failonerror="false">
86                         <fileset dir="${splat.build.dir}" includes="**/*" />
87                 </delete>
88         </target>
89
90         <!-- ============================================================================ -->
91         <!-- help : display the help page                                                 -->
92         <!-- ============================================================================ -->
93         <target name="help">
94                 <java fork="no" classname="org.apache.tools.ant.Main">
95                         <arg line="-projecthelp" />
96                 </java>
97         </target>
98
99         <!-- ================================================= -->
100         <!--    Compile                                                                            -->
101         <!--    Compile the sources file in build/classes          -->
102         <!-- ================================================= -->
103         <target name="compile" description="compile source code">
104                 <echo message="compiling SIMAN SALOME Platform" />
105                 <echo message="compiler.max.memory : ${compiler.max.memory}" />
106                 <echo message="build repository : ${splat.build.dir}" />
107                 <echo message="splat.lib.dir : ${splat.lib.dir}" />
108
109                 <mkdir dir="${splat.build.dir}" />
110                 <mkdir dir="${splat.build.dir}/classes" />
111                 <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}">
112                         <src path="${splat.src.dir}" />
113                         <classpath>
114                                 <path refid="dependencies.classpath" />
115                         </classpath>
116                         <exclude name="test/**" />
117                 </javac>
118                 <copy todir="${splat.build.dir}/classes">
119                         <fileset dir="${splat.src.dir}/conf">
120                         </fileset>
121                         <fileset dir="${splat.src.dir}/java">
122                                 <include name="com/**/*.xsd"/>
123                         </fileset>
124                 </copy>
125                 <mkdir dir="${splat.build.dir}/classes/META-INF" />
126         </target>
127
128
129         
130         <!-- ================================================= -->
131         <!--    Compile tests                                                                      -->
132         <!--    Compile the tests sources file in build/tests      -->
133         <!-- ================================================= -->
134         <target name="compile-tests" description="compile source code">
135                 <echo message="compiling splat tests classes" />
136                 <echo message="compiler.max.memory : ${compiler.max.memory}" />
137                 <echo message="build repository : ${splat.build.dir}" />
138                 <echo message="splat.lib.dir : ${splat.lib.dir}" />
139
140                 <mkdir dir="${splat.build.dir}" />
141                 <mkdir dir="${splat.build.dir}/classes" />
142                 <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}">
143                         <src path="${splat.dir}/test" />
144                         <classpath>
145                                 <path refid="dependencies.classpath" />
146                                 <path refid="test.libs.classpath" />
147                         </classpath>
148                         <include name="test/**" />
149                         <exclude name="com/**" />
150                         <exclude name="org/**" />
151                 </javac>
152         </target>
153
154 </project>