]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/d6/f0c4d0dc430200121424e2083ec3deca
Salome HOME
*** empty log message ***
[tools/siman.git] / Workspace / .metadata / .plugins / org.eclipse.core.resources / .history / d6 / f0c4d0dc430200121424e2083ec3deca
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}/java" />
70                         <classpath>
71                                 <path refid="server.classpath" />
72                                 <path refid="dependencies.classpath" />
73                         </classpath>
74                         <exclude name="test/**" />
75                 </javac>
76                 <copy todir="${splat.build.dir}/classes">
77                         <fileset dir="${splat.src.dir}/conf">
78                         </fileset>
79                         <fileset dir="${splat.src.dir}/java">
80                                 <include name="com/**/*.xsd"/>
81                         </fileset>
82                 </copy>
83                 <mkdir dir="${splat.build.dir}/classes/META-INF" />
84         </target>
85
86
87         
88         <!-- ================================================= -->
89         <!--    Compile tests                                                                      -->
90         <!--    Compile the tests sources file in build/tests      -->
91         <!-- ================================================= -->
92         <target name="compile-tests" description="compile source code">
93                 <echo message="compiling splat tests classes" />
94                 <echo message="compiler.max.memory : ${compiler.max.memory}" />
95                 <echo message="build repository : ${splat.build.dir}" />
96                 <echo message="splat.lib.dir : ${splat.lib.dir}" />
97
98                 <mkdir dir="${splat.build.dir}" />
99                 <mkdir dir="${splat.build.dir}/classes" />
100                 <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}">
101                         <src path="${splat.dir}/test" />
102                         <classpath>
103                                 <path refid="server.classpath" />
104                                 <path refid="dependencies.classpath" />
105                                 <path refid="test.libs.classpath" />
106                         </classpath>
107                         <include name="test/**" />
108                         <exclude name="com/**" />
109                         <exclude name="org/**" />
110                 </javac>
111         </target>
112
113         
114         
115         <!-- ================================================= -->
116         <!--    Jar                                                                                        -->
117         <!--    Create the jar file in the dist directory          -->
118         <!-- ================================================= -->
119         <target name="jar" description="create jar file in dist directory">
120                 <mkdir dir="${splat.dist.dir}" />
121                 <jar destfile="${splat.dist.dir}/${splat.jar.name}">
122                         <zipfileset dir="${splat.build.dir}/classes">
123                                 <include name="**" />
124                                 <exclude name="test" />
125                         </zipfileset>
126                         <manifest>
127                                 <attribute name="Built-By" value="EURIWARE" />
128                                 <attribute name="Version" value="${app.version}" />
129                                 <attribute name="Built-Date" value="${timesimple}" />
130                         </manifest>
131                 </jar>
132         </target>
133
134         <!-- ================================================= -->
135         <!--    Build                                                                              -->
136         <!--    Compile and create the dist target                         -->
137         <!-- ================================================= -->
138         <target name="build" depends="compile,jar" description="compile and create the jar file in dist directory">
139         </target>
140
141
142         <!-- ================================================= -->
143         <!--    rebuild                                                                            -->
144         <!--    Compile and create the dist target                         -->
145         <!-- ================================================= -->
146         <target name="rebuild" depends="clean,compile,jar" description="clean, compile and create the jar file in dist directory">
147         </target>
148
149         <!-- ================================================= -->
150         <!--    Clean                                                                              -->
151         <!--    Clean the build directory                                          -->
152         <!-- ================================================= -->
153         <target name="clean" description="clean the build directory">
154                 <echo message="deleting files in ${splat.dist.dir}" />
155                 <delete includeemptydirs="true" failonerror="false">
156                         <fileset dir="${splat.dist.dir}" includes="**/*" />
157                 </delete>
158                 <echo message="deleting files in ${splat.build.dir}" />
159                 <delete includeemptydirs="true" failonerror="false">
160                         <fileset dir="${splat.build.dir}" includes="**/*" />
161                 </delete>
162         </target>
163
164         <!-- ============================================================================ -->
165         <!-- help : display the help page                                                 -->
166         <!-- ============================================================================ -->
167         <target name="help">
168                 <java fork="no" classname="org.apache.tools.ant.Main">
169                         <arg line="-projecthelp" />
170                 </java>
171         </target>
172
173 </project>