-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
100 lines (88 loc) · 3.45 KB
/
Copy pathbuild.xml
File metadata and controls
100 lines (88 loc) · 3.45 KB
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
<!-- Ant script for NormeticValidator -->
<!-- Author: Frederic Bergeron -->
<project name="NormeticValidator" default="build" basedir=".">
<!-- Directories -->
<property name="classes" value="classes"/>
<property name="doc" value="doc"/>
<property name="javadoc" value="${doc}/javadoc"/>
<property name="lib" value="lib"/>
<property name="src" value="src"/>
<property name="properties" value="properties"/>
<property name="resources" value="resources"/>
<property name="etc" value="etc"/>
<property name="build" value="build"/>
<!-- Custom properties -->
<property file="build.properties"/>
<path id="classpath">
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${classes}"/>
</path>
<target name="compile">
<mkdir dir="${classes}"/>
<javac srcdir="${src}" destdir="${classes}"
includeantruntime="false"
source="${build.compiler.source}" target="${build.compiler.target}"
debug="${build.compiler.debug}"
nowarn="${build.compiler.nowarn}" deprecation="${build.compiler.deprecation}">
<classpath refid="classpath"/>
</javac>
</target>
<target name="build" depends="compile">
<mkdir dir="${build}"/>
<jar jarfile="${build}/${ant.project.name}.jar">
<fileset dir="${classes}"/>
<fileset dir="${properties}"/>
<fileset dir="${resources}"/>
<fileset dir="${etc}"/>
</jar>
</target>
<target name="deploy" depends="build">
<copy file="${build}/${ant.project.name}.jar" todir="../../NormeticValidator/trunk/web/WEB-INF/lib"/>
</target>
<target name="run" depends="build">
<java classname="ca.licef.validator.NormeticValidator">
<classpath>
<pathelement location="${build}/${ant.project.name}.jar"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
<arg value="-Dfile.encoding=UTF-8"/>
<arg value="-lang"/>
<arg path="fr"/>
<arg value="-location"/>
<arg path="../LOM/specimens/4.xml"/>
</java>
</target>
<target name="test" depends="build">
<java classname="ca.licef.validator.GraphicalNormeticValidator" spawn="false" fork="true">
<classpath>
<pathelement location="${build}/${ant.project.name}.jar"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
<arg value="-Dfile.encoding=UTF-8"/>
<arg value="-lang fr"/>
</java>
</target>
<target name="javadoc" depends="compile">
<javadoc
destdir="${javadoc}"
windowtitle="${ant.project.name}'s API"
doctitle="${ant.project.name}"
public="true"
classpathref="classpath">
<packageset dir="${src}"/>
</javadoc>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${classes}"/>
</target>
<target name="cleanAll" depends="clean">
<delete dir="${javadoc}"/>
</target>
</project>