-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
87 lines (74 loc) · 3.25 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
<project name="sesame" default="swing-java" basedir=".">
<property name="src" location="src"/>
<property name="build" location="build"/>
<target name="swing-init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="swing-java" depends="swing-init" description="compile the source ">
<javac srcdir="${src}" excludes="**/gwt/*" destdir="${build}" classpath="libs/jlatexmath.jar"
includeantruntime="false" debug="true">
<compilerarg value="-Xlint:unchecked"/>
<compilerarg value="-Xdiags:verbose"/>
</javac>
</target>
<target name="swing-jar" depends="swing-java" description="create the jar">
<jar destfile="sesame.jar" basedir="${build}" excludes="**/gwt/*">
<zipfileset excludes="META_INF/**" src="libs/jlatexmath.jar"/>
<manifest>
<attribute name="Main-Class" value="fr.irit.sesame.swing.Main"/>
</manifest>
</jar>
</target>
<!-- Arguments to gwtc and devmode targets -->
<property name="gwt.args" value="-strict" />
<property name="gwt.sdk" location="libs/gwt" />
<path id="project.class.path">
<pathelement location="war/WEB-INF/classes"/>
<pathelement location="${gwt.sdk}/gwt-user.jar"/>
<pathelement location="${gwt.sdk}/gwt-dev.jar"/>
<pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar"/>
<pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar"/>
<fileset dir="war/WEB-INF/lib" includes="**/*.jar"/>
<!-- Add any additional non-server libs (such as JUnit) here -->
</path>
<target name="gwt-libs" description="Copy libs to WEB-INF/lib">
<mkdir dir="war/WEB-INF/lib" />
<copy todir="war/WEB-INF/lib" file="${gwt.sdk}/gwt-servlet.jar" />
<copy todir="war/WEB-INF/lib" file="${gwt.sdk}/gwt-servlet-deps.jar" />
<!-- Add any additional server libs that need to be copied -->
</target>
<target name="gwt-java" depends="gwt-libs" description="Compile java source to bytecode">
<mkdir dir="war/WEB-INF/classes"/>
<javac srcdir="src" excludes="**/swing/*" encoding="utf-8"
destdir="war/WEB-INF/classes"
source="1.7" target="1.7" nowarn="true"
debug="true" debuglevel="lines,vars,source">
<classpath refid="project.class.path"/>
<compilerarg value="-Xlint:unchecked"/>
</javac>
<copy todir="war/WEB-INF/classes">
<fileset dir="src" excludes="**/*.java"/>
</copy>
</target>
<target name="gwt-js" depends="gwt-java" description="GWT compile to JavaScript (production mode)">
<java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler" maxmemory="512m">
<classpath>
<pathelement location="src"/>
<path refid="project.class.path"/>
</classpath>
<arg line="-war"/>
<arg value="war"/>
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
<arg line="${gwt.args}"/>
<arg value="fr.irit.sesame.Main"/>
</java>
</target>
<target name="doc" description="Documentation">
<javadoc sourcepath="${src}" destdir="doc" access="package" version="yes" author="yes" use="yes">
<classpath refid="project.class.path"/>
<link href="http://www.gwtproject.org/javadoc/latest/" />
<link href="https://docs.oracle.com/javase/7/docs/api/"/>
</javadoc>
</target>
</project>