forked from loicbarrault/MANY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
142 lines (112 loc) · 4.7 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?xml version="1.0" ?>
<project default="main" basedir=".">
<!-- ===================================== -->
<!-- Global properties -->
<!-- ===================================== -->
<property name="name" value="MANY" />
<property name="build" value="${basedir}/build" />
<property name="src" value="${basedir}/src" />
<property name="lib" value="${basedir}/lib" />
<tstamp>
<!-- <format property="jarTimeStamp" pattern="yyMMdd-HH'h'mm" locale="fr" /> -->
<format property="jarTimeStamp" pattern="yyMMdd" locale="fr" />
</tstamp>
<!-- <zip zipfile="MyZip${zipTimeStamp}.zip" /> -->
<property name="je" value="${lib}/je-4.0.92.jar" />
<property name="wordnet" value="${lib}/jaws-bin.jar" />
<property name="junit" value="${lib}/junit.jar" />
<!-- <property name="json" value="${lib}/JSON-java.jar" /> -->
<property name="json" value="${lib}/gson-2.2.4.jar" />
<property name="xstream" value="${lib}/xstream-1.4.4.jar" />
<property name="xstream-hibernate" value="${lib}/xstream-hibernate-1.4.4.jar" />
<property name="jettison" value="${lib}/jettison-1.3.3.jar" />
<path id="javac.classpath">
<pathelement location="${je}"/>
<pathelement location="${wordnet}"/>
<pathelement location="${junit}"/>
<pathelement location="${json}"/>
<pathelement location="${xstream}"/>
<pathelement location="${xstream-hibernate-1.4.4.jar}"/>
<pathelement location="${jettison}"/>
</path>
<!-- <exec executable="svn" output="lib/svn.properties">
<arg value="info" />
</exec>
<property prefix="svn" file="lib/svn.properties"/>
<echo>Sandbox Revision: ${svn.Revision}</echo>
<property name="release" value="/lium/buster1/barrault/RELEASE/bin/${name}_${jarTimeStamp}.jar" />
<property name="release" value="/lium/buster1/barrault/RELEASE/bin/${name}_${svn.Revision}.jar" /> -->
<target name="main" depends="info, compile, jar" description="Main target">
<echo>
Construction du fichier ${name}.jar ...
</echo>
<echo> basedir = ${basedir} </echo>
</target>
<!-- Info -->
<target name="info" depends="init" description="Display configuration">
<echo message="******************** " />
<echo message="* MANY *" />
<echo message="******************** " />
<echo message="Author : Loïc BARRAULT" />
<echo message="Ant version : ${ant.version}" />
<echo message="Java version : ${ant.java.version}" />
<echo message="Java home directory : ${java.home}" />
<echo message="Java classpath : ${java.class.path}" />
</target>
<!-- ===================================== -->
<!-- Init -->
<!-- ===================================== -->
<target name="init" >
<tstamp />
<mkdir dir="${build}" />
<mkdir dir="${lib}" />
</target>
<!-- ===================================== -->
<!-- Compile -->
<!-- ===================================== -->
<target name="compile" depends="init" >
<!-- <javac srcdir="${source}" destdir="${build}" target="1.5" source="1.5" nowarn="off" /> -->
<javac srcdir="${src}" destdir="${build}" nowarn="off" debug="on" optimize="on">
<classpath refid="javac.classpath"/>
<compilerarg value="-Xlint"/>
</javac>
</target>
<!-- ===================================== -->
<!-- JavaDoc -->
<!-- ===================================== -->
<!-- <target name="javadoc" depends="compile" >
<javadoc sourcepath="${src}" destdir="${api}"
packagenames="com.aag.*"/>
</target> -->
<!-- ===================================== -->
<!-- Jar and Copy -->
<!-- ===================================== -->
<target name="jar" depends="compile" >
<jar jarfile="${lib}/${name}.jar" >
<fileset dir="${build}" />
<zipfileset src="${je}" />
<zipfileset src="${wordnet}" />
<zipfileset src="${json}" />
<zipfileset src="${xstream}" />
<zipfileset src="${xstream-hibernate}" />
<zipfileset src="${jettison}" />
</jar>
<!-- <copy tofile="${release}" file="${lib}/${name}.jar" /> -->
</target>
<!-- ===================================== -->
<!-- Encrypt -->
<!-- ===================================== -->
<!-- <target name="encrypt" depends="jar">
<crypto keyFile="key.ser"
inputFile="${dist}/${name}.jar"
outputFile="${dist}/${name}.secret.jar" />
<copy todir="${ftp}" file="${dist}/${name}secret.jar" />
</target> -->
<!-- ===================================== -->
<!-- Remove build directories -->
<!-- ===================================== -->
<target name="clean" >
<delete dir="${build}" />
<delete file="${lib}/${name}.jar" />
</target>
</project>