]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/b6/c0a32b7b460200121424e2083ec3deca
Salome HOME
*** empty log message ***
[tools/siman.git] / Workspace / .metadata / .plugins / org.eclipse.core.resources / .history / b6 / c0a32b7b460200121424e2083ec3deca
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
12                 <!--
13                         pop3.jar
14         slf4j-api-1.6.1.jar
15         slf4j-log4j12-1.6.1.jar
16         smtp.jar
17         xmlpublic.jar
18
19                 
20                 <pathelement location="${splat.lib.dir}/activation.jar" />
21                 <pathelement location="${splat.lib.dir}/antlr-2.7.6.jar" />
22                 <pathelement location="${splat.lib.dir}/commons-collections-3.1.jar" />
23                 <pathelement location="${splat.lib.dir}/dom4j-1.6.1.jar" />
24                 <pathelement location="${splat.lib.dir}/hibernate-3.5.jar" />
25                 <pathelement location="${splat.lib.dir}/javassist-3.9.0.GA.jar" />
26                 <pathelement location="${splat.lib.dir}/jta-1.1.jar" />
27                 <pathelement location="${splat.lib.dir}/log4j-1.2.15.jar" />
28                 <pathelement location="${splat.lib.dir}/lucene-core-2.9.2.jar" />
29                 <pathelement location="${splat.lib.dir}/lucene-queries-2.9.2.jar" />
30                 <pathelement location="${splat.lib.dir}/mailapi.jar" />
31                 <pathelement location="${splat.lib.dir}/mysql-connector-java-5.1.5-bin.jar" />
32                 <pathelement location="${splat.lib.dir}/" />
33                 <pathelement location="${splat.lib.dir}/poi-3.7-20101029.jar" />
34                         <pathelement location="${splat.lib.dir}/poi-ooxml-3.7-20101029.jar" />
35                         <pathelement location="${splat.lib.dir}/poi-ooxml-schemas-3.7-20101029.jar" />
36                         <pathelement location="${splat.lib.dir}/poi-scratchpad-3.7-20101029.jar" />
37                         <pathelement location="${splat.lib.dir}/" />
38                         <pathelement location="${splat.lib.dir}/" />
39                         <pathelement location="${splat.lib.dir}/" />
40                         <pathelement location="${splat.lib.dir}/" />
41                         <pathelement location="${splat.lib.dir}/" />
42                         <pathelement location="${splat.lib.dir}/" />-->
43         </path>
44
45         <path id="test.libs.classpath">
46                 <pathelement location="${splat.lib.dir}/testng/testng-5.8-jdk15.jar" />
47                 <pathelement location="${splat.lib.dir}/spring/spring-test.jar" />
48         </path>
49
50         
51         <property name="time.simple.pattern" value="dd/MM/yyyy" />
52         <tstamp>
53                 <format property="timesimple" pattern="${time.simple.pattern}" />
54         </tstamp>
55
56         <!-- ================================================= -->
57         <!--    Compile                                                                            -->
58         <!--    Compile the sources file in build/classes          -->
59         <!-- ================================================= -->
60         <target name="compile" description="compile source code">
61                 <echo message="compiling SIMAN SALOME Platform" />
62                 <echo message="compiler.max.memory : ${compiler.max.memory}" />
63                 <echo message="build repository : ${splat.build.dir}" />
64                 <echo message="splat.lib.dir : ${splat.lib.dir}" />
65
66                 <mkdir dir="${splat.build.dir}" />
67                 <mkdir dir="${splat.build.dir}/classes" />
68                 <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}">
69                         <src path="${splat.src.dir}" />
70                         <classpath>
71                                 <path refid="dependencies.classpath" />
72                         </classpath>
73                         <exclude name="test/**" />
74                 </javac>
75                 <copy todir="${splat.build.dir}/classes">
76                         <fileset dir="${splat.src.dir}/conf">
77                         </fileset>
78                         <fileset dir="${splat.src.dir}/java">
79                                 <include name="com/**/*.xsd"/>
80                         </fileset>
81                 </copy>
82                 <mkdir dir="${splat.build.dir}/classes/META-INF" />
83         </target>
84
85
86         
87         <!-- ================================================= -->
88         <!--    Compile tests                                                                      -->
89         <!--    Compile the tests sources file in build/tests      -->
90         <!-- ================================================= -->
91         <target name="compile-tests" description="compile source code">
92                 <echo message="compiling splat tests classes" />
93                 <echo message="compiler.max.memory : ${compiler.max.memory}" />
94                 <echo message="build repository : ${splat.build.dir}" />
95                 <echo message="splat.lib.dir : ${splat.lib.dir}" />
96
97                 <mkdir dir="${splat.build.dir}" />
98                 <mkdir dir="${splat.build.dir}/classes" />
99                 <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}">
100                         <src path="${splat.dir}/test" />
101                         <classpath>
102                                 <path refid="dependencies.classpath" />
103                                 <path refid="test.libs.classpath" />
104                         </classpath>
105                         <include name="test/**" />
106                         <exclude name="com/**" />
107                         <exclude name="org/**" />
108                 </javac>
109         </target>
110
111         
112         
113         <!-- ================================================= -->
114         <!--    Jar                                                                                        -->
115         <!--    Create the jar file in the dist directory          -->
116         <!-- ================================================= -->
117         <target name="jar" description="create jar file in dist directory">
118                 <mkdir dir="${splat.dist.dir}" />
119                 <jar destfile="${splat.dist.dir}/${splat.jar.name}">
120                         <zipfileset dir="${splat.build.dir}/classes">
121                                 <include name="**" />
122                                 <exclude name="test" />
123                         </zipfileset>
124                         <manifest>
125                                 <attribute name="Built-By" value="EURIWARE" />
126                                 <attribute name="Version" value="${app.version}" />
127                                 <attribute name="Built-Date" value="${timesimple}" />
128                         </manifest>
129                 </jar>
130         </target>
131
132         <!-- ================================================= -->
133         <!--    Jar                                                                                        -->
134         <!--    Create the jar file in the dist directory          -->
135         <!-- ================================================= -->
136         <target name="splat-manox-jar" description="create jar file in dist directory">
137                 <mkdir dir="${splat.dist.dir}" />
138                 <jar destfile="${splat.dist.dir}/${splat.manox.jar.name}" >
139                         <zipfileset dir="${splat.bin.dir}/">
140                                 <include name="${source.splat-manox.jar}/**" />
141                         </zipfileset>
142                         <manifest>
143                                 <attribute name="Built-By" value="${app.author}" />
144                                 <attribute name="Version" value="${app.version}" />
145                                 <attribute name="Built-Date" value="${timesimple}" />
146                         </manifest>
147                 </jar>
148         </target>
149
150         <!-- ================================================= -->
151         <!--    Build                                                                              -->
152         <!--    Compile and create the dist target                         -->
153         <!-- ================================================= -->
154         <target name="build" depends="compile,jar" description="compile and create the jar file in dist directory">
155         </target>
156
157
158         <!-- ================================================= -->
159         <!--    rebuild                                                                            -->
160         <!--    Compile and create the dist target                         -->
161         <!-- ================================================= -->
162         <target name="rebuild" depends="clean,compile,jar" description="clean, compile and create the jar file in dist directory">
163         </target>
164
165         <!-- ================================================= -->
166         <!--    Clean                                                                              -->
167         <!--    Clean the build directory                                          -->
168         <!-- ================================================= -->
169         <target name="clean" description="clean the build directory">
170                 <echo message="deleting files in ${splat.dist.dir}" />
171                 <delete includeemptydirs="true" failonerror="false">
172                         <fileset dir="${splat.dist.dir}" includes="**/*" />
173                 </delete>
174                 <echo message="deleting files in ${splat.build.dir}" />
175                 <delete includeemptydirs="true" failonerror="false">
176                         <fileset dir="${splat.build.dir}" includes="**/*" />
177                 </delete>
178         </target>
179
180         <!-- ============================================================================ -->
181         <!-- help : display the help page                                                 -->
182         <!-- ============================================================================ -->
183         <target name="help">
184                 <java fork="no" classname="org.apache.tools.ant.Main">
185                         <arg line="-projecthelp" />
186                 </java>
187         </target>
188
189 </project>