-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
70 lines (58 loc) · 2.71 KB
/
build.xml
File metadata and controls
70 lines (58 loc) · 2.71 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="XBuild" default="main" basedir=".">
<!-- Netbeans build -->
<import file="nbproject/build-impl.xml"/>
<description>Create XB2 Java app for DSSAT</description>
<!-- Version -->
<property name="version" value="v1.7.0.0" />
<target name="-pre-compile">
<mkdir dir="build/mock-classes"/>
<javac srcdir="mock-src"
destdir="build/mock-classes"
source="1.8"
target="1.8"
includeantruntime="false">
<include name="org/jdesktop/swingx/JXTable.java"/>
</javac>
<mkdir dir="${build.classes.dir}/org/jdesktop/swingx"/>
<copy file="build/mock-classes/org/jdesktop/swingx/JXTable$CellEditorRemover.class"
tofile="${build.classes.dir}/org/jdesktop/swingx/JXTable$CellEditorRemover.class"/>
<delete dir="build/mock-classes"/>
</target>
<target name="-post-jar" depends="compile" description="package, output to JAR">
<property name="store.jar.name" value="XB2" />
<!-- Java sources -->
<property name="src.dir" location="src" />
<!-- Java classes -->
<property name="store.dir" location="build" />
<!-- Output, Jar -->
<tstamp/>
<property name="store.jar" location="${build.dir}/${store.jar.name}-${version}-64-bit.jar" />
<jar destfile="${build.dir}/tmp_build.jar" filesetmanifest="skip">
<zipgroupfileset dir="dist" includes="*.jar"/>
<zipgroupfileset dir="dist/lib" includes="*.jar"/>
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
</jar>
<zip destfile="${store.jar}">
<zipfileset src="${build.dir}/tmp_build.jar"
excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/>
</zip>
<delete file="${store.dir}/tmp_build.jar"/>
</target>
<target name="clean" description="clean up">
<delete dir="${store.dir}" />
<delete dir="${sotre.jar}" />
</target>
<!-- Default, run this -->
<target name="main" depends="clean, compile, jar" />
</project>