forked from kohsuke/com4j
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
81 lines (70 loc) · 2.75 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
<?xml version="1.0"?>
<project name="com4j" default="dist">
<!--
if the dist target fails with "Unable to load com4j.dll",
make sure to run Ant with -lib dir
where 'dir' is a directory that contains com4j.jar
-->
<target name="clean">
<delete dir="build" />
<antcall target="-exec-target">
<param name="target" value="clean"/>
</antcall>
</target>
<target name="jar">
<antcall target="-exec-target">
<param name="target" value="jar"/>
</antcall>
</target>
<target name="deploy">
<antcall target="-exec-target">
<param name="target" value="deploy"/>
</antcall>
</target>
<target name="javadoc"
description="creates javadoc from the publicly visible runtime classes">
<javadoc
locale="en"
destdir="build/javadoc"
windowtitle="com4j"
public="true">
<fileset dir="runtime/src" includes="**/*.java"/>
<link href="http://java.sun.com/j2se/1.5.0/docs/api/" />
</javadoc>
</target>
<target name="src-zip">
<zip file="build/src.zip">
<fileset dir="." includes="native/**/*" excludes="native/Debug/**, native/Release/**, native/driver/**, native/*.ncb, native/*.suo, native/x64/**" />
<fileset dir="." includes="jnitl/**/*" excludes="jnitl/build/**, jnitl/lib/**, jnitl/*.ncb, jnitl/*.suo" />
<fileset dir="." includes="libffi/**/*" excludes="libffi/build/**, libffi/Debug/**, libffi/Release/**, libffi/x64/**, libffi/*.ncb, libffi/*.suo" />
<fileset dir="." includes="runtime/**/*" excludes="runtime/build/**" />
<fileset dir="." includes="tlbimp/**/*" excludes="tlbimp/build/**" />
<fileset dir="." includes="build.xml, com4j.*" />
</zip>
</target>
<target name="dist" depends="jar,javadoc,src-zip">
<tstamp/>
<mkdir dir="build/dist/dll"/>
<copy todir="build/dist">
<fileset dir="." includes="samples/**/*" excludes="**/CVS, samples/*/test/**, **/*.log"/>
<fileset dir="runtime/build" includes="com4j.jar, com4j-src.zip"/>
<fileset dir="tlbimp/build" includes="tlbimp.jar, tlbimp-src.zip"/>
<fileset dir="tlbimp/lib" includes="args4j-*.jar"/>
</copy>
<copy todir="build/dist/dll">
<fileset dir="native" includes="**/*.dll, **/*.pdb" />
</copy>
<ant dir="build/dist/samples" target="compile"/>
<zip file="build/com4j-${DSTAMP}.zip">
<fileset dir="." includes="LICENSE.txt" />
<fileset dir="build" includes="javadoc/**/*"/>
<fileset dir="build" includes="src.zip"/>
<fileset dir="build/dist" includes="**/*"/>
</zip>
</target>
<target name="-exec-target">
<!--ant dir="native" target="${target}"/-->
<ant dir="runtime" target="${target}"/>
<ant dir="tlbimp" target="${target}"/>
</target>
</project>