| Line 1... |
Line 1... |
| 1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
| 2 |
<project basedir="." default="jar" name="Common">
|
2 |
<project basedir="." default="dist" name="Common">
|
| 3 |
<property environment="env"/>
|
3 |
<property environment="env"/>
|
| 4 |
<property name="thirdparty.location" value="../lib"/>
|
4 |
<property name="thirdparty.location" value="../lib"/>
|
| 5 |
<property name="ThriftConfig.location" value="../ThriftConfig"/>
|
- |
|
| 6 |
<property name="debuglevel" value="source,lines,vars"/>
|
5 |
<property name="debuglevel" value="source,lines,vars"/>
|
| 7 |
<property name="target" value="1.6"/>
|
6 |
<property name="target" value="1.6"/>
|
| 8 |
<property name="source" value="1.6"/>
|
7 |
<property name="source" value="1.6"/>
|
| 9 |
<path id="EAR Libraries.libraryclasspath"/>
|
- |
|
| 10 |
|
8 |
|
| 11 |
<path id="Common.classpath">
|
9 |
<path id="Common.classpath">
|
| 12 |
<pathelement location="${thirdparty.location}/readonly/apache/thrift-0.2.0/libthrift.jar"/>
|
10 |
<pathelement location="${basedir}/${thirdparty.location}/readonly/apache/thrift-0.2.0/libthrift.jar"/>
|
| 13 |
<pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-api-1.5.8.jar"/>
|
11 |
<pathelement location="${basedir}/${thirdparty.location}/readonly/slf4j/slf4j-api-1.5.8.jar"/>
|
| 14 |
<pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
|
12 |
<pathelement location="${basedir}/${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
|
| 15 |
<pathelement location="${thirdparty.location}/ThriftConfig.jar"/>
|
13 |
<pathelement location="${basedir}/${thirdparty.location}/ThriftConfig.jar"/>
|
| 16 |
</path>
|
14 |
</path>
|
| - |
|
15 |
|
| 17 |
<target name="init">
|
16 |
<target name="init">
|
| 18 |
<mkdir dir="bin"/>
|
17 |
<mkdir dir="bin"/>
|
| 19 |
<copy includeemptydirs="false" todir="bin">
|
- |
|
| 20 |
<fileset dir="src">
|
- |
|
| 21 |
<exclude name="**/*.launch"/>
|
- |
|
| 22 |
<exclude name="**/*.java"/>
|
- |
|
| 23 |
</fileset>
|
- |
|
| 24 |
</copy>
|
- |
|
| 25 |
</target>
|
18 |
</target>
|
| - |
|
19 |
|
| 26 |
<target name="clean">
|
20 |
<target name="clean">
|
| 27 |
<delete dir="bin"/>
|
21 |
<delete dir="bin"/>
|
| 28 |
</target>
|
22 |
</target>
|
| 29 |
<target depends="clean" name="cleanall">
|
- |
|
| 30 |
|
- |
|
| 31 |
</target>
|
- |
|
| 32 |
<target depends="build-project" name="build"/>
|
- |
|
| 33 |
|
23 |
|
| 34 |
<target depends="init" name="build-project">
|
24 |
<target name="build" depends="init">
|
| 35 |
<echo message="${ant.project.name}: ${ant.file}"/>
|
25 |
<echo message="${ant.project.name}: ${ant.file}"/>
|
| 36 |
<javac destdir="bin" source="${source}" target="${target}">
|
26 |
<javac destdir="bin" source="${source}" target="${target}">
|
| 37 |
<src path="src"/>
|
27 |
<src path="src/main/java"/>
|
| 38 |
<classpath refid="Common.classpath"/>
|
28 |
<classpath refid="Common.classpath"/>
|
| 39 |
</javac>
|
29 |
</javac>
|
| 40 |
</target>
|
30 |
</target>
|
| - |
|
31 |
|
| 41 |
<target name="jar" depends="build">
|
32 |
<target name="jar" depends="build">
|
| 42 |
<jar
|
- |
|
| 43 |
destfile="${ant.project.name}.jar"
|
33 |
<jar destfile="${ant.project.name}.jar" basedir="bin"/>
|
| 44 |
basedir="bin"/>
|
34 |
</target>
|
| - |
|
35 |
|
| 45 |
<copy file="${ant.project.name}.jar"
|
36 |
<target name="dist" depends="jar">
|
| 46 |
tofile="../lib/${ant.project.name}.jar"/>
|
37 |
<copy file="${ant.project.name}.jar" tofile="../lib/${ant.project.name}.jar"/>
|
| 47 |
</target>
|
38 |
</target>
|
| 48 |
</project>
|
39 |
</project>
|