Salome HOME
VPV fix for the following case:
[tools/siman.git] / Workspace / SPlat / pre_build.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!-- Build java classes and copy other files from src -->
3 <project basedir="." default="build" name="SPlat">
4     <property environment="env"/>
5     <property name="Siman.location" value="../Siman"/>
6     <property name="Siman-Common.location" value="../Siman-Common"/>
7     <property name="debuglevel" value="source,lines,vars"/>
8     <property name="target" value="1.6"/>
9     <property name="source" value="1.6"/>
10     <path id="EAR Libraries.libraryclasspath"/>
11     <path id="SPlat.classpath">
12         <pathelement location="bin"/>
13         <pathelement location="lib/activation.jar"/>
14         <pathelement location="lib/antlr-2.7.6.jar"/>
15         <pathelement location="lib/commons-collections-3.1.jar"/>
16         <pathelement location="lib/dom4j-1.6.1.jar"/>
17         <pathelement location="lib/jta-1.1.jar"/>
18         <pathelement location="lib/log4j-1.2.15.jar"/>
19         <pathelement location="lib/lucene-core-2.9.2.jar"/>
20         <pathelement location="lib/lucene-queries-2.9.2.jar"/>
21         <pathelement location="lib/mailapi.jar"/>
22         <pathelement location="lib/poi-3.7-20101029.jar"/>
23         <pathelement location="lib/poi-ooxml-3.7-20101029.jar"/>
24         <pathelement location="lib/poi-ooxml-schemas-3.7-20101029.jar"/>
25         <pathelement location="lib/poi-scratchpad-3.7-20101029.jar"/>
26         <pathelement location="lib/pop3.jar"/>
27         <pathelement location="lib/slf4j-api-1.6.1.jar"/>
28         <pathelement location="lib/slf4j-log4j12-1.6.1.jar"/>
29         <pathelement location="lib/smtp.jar"/>
30         <pathelement location="lib/xmlpublic.jar"/>
31         <pathelement location="lib/javassist-3.11.0.GA.jar"/>
32         <path refid="EAR Libraries.libraryclasspath"/>
33     </path>
34     <target name="init">
35         <mkdir dir="bin"/>
36         <copy includeemptydirs="false" todir="bin">
37             <fileset dir="src" excludes="**/*.launch, **/*.java"/>
38         </copy>
39     </target>
40     <target name="clean">
41         <delete dir="bin"/>
42     </target>
43     <target depends="clean" name="cleanall"/>
44     <target depends="build-subprojects,build-project" name="build"/>
45     <target name="build-subprojects"/>
46     <target depends="init" name="build-project">
47         <echo message="${ant.project.name}: ${ant.file}"/>
48         <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
49             <src path="src"/>
50             <exclude name="**/CVS/*"/>
51             <classpath refid="SPlat.classpath"/>
52         </javac>
53     </target>
54     <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects">
55         <ant antfile="${Siman.location}/pre_build.xml" inheritAll="false" target="clean"/>
56         <ant antfile="${Siman.location}/pre_build.xml" inheritAll="false" target="build"/>
57         <ant antfile="${Siman-Common.location}/pre_build.xml" inheritAll="false" target="clean"/>
58         <ant antfile="${Siman-Common.location}/pre_build.xml" inheritAll="false" target="build"/>
59     </target>
60 </project>