-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
58 lines (50 loc) · 1.57 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build_no_src" name="Appian Plugin Deployer">
<xmlproperty file="./appian-plugin.xml"/>
<target name="prepare">
<mkdir dir="${target_dir}"/>
<delete file="${target_dir}/${appian-plugin(key)}-${appian-plugin.plugin-info.version}.jar" />
<mkdir dir="./tmp"/>
</target>
<target name="cleanup">
<delete dir="./tmp"/>
</target>
<target name="create_jar">
<!--<copy todir="./tmp/META-INF/lib">
<fileset dir="./lib">
<include name="**/*.jar"/>
</fileset>
</copy>-->
<jar destfile="${target_dir}/${appian-plugin(key)}-${appian-plugin.plugin-info.version}.jar">
<fileset dir="./bin">
<include name="**/*.class"/>
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</fileset>
<fileset dir=".">
<include name="appian-plugin.xml"/>
</fileset>
<!--<fileset dir="./src/main/resources">
<include name="**/*.gif"/>
</fileset>-->
<fileset dir="./tmp">
<include name="**/*.java"/>
<include name="**/*.jar"/>
</fileset>
</jar>
</target>
<target name="build_no_src" depends="prepare">
<antcall target="create_jar"/>
<antcall target="cleanup"/>
</target>
<target name="build_with_src" depends="prepare">
<mkdir dir="./tmp/src"/>
<copy todir="./tmp/src">
<fileset dir="./src/main/java">
<include name="**/*.java"/>
</fileset>
</copy>
<antcall target="create_jar"/>
<antcall target="cleanup"/>
</target>
</project>