forked from Joaquin6/vlc-skin-designer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
125 lines (110 loc) · 4.28 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?xml version="1.0" encoding="UTF-8"?>
<project name="skin-designer" default="jar" basedir=".">
<property name="src" value="src" />
<property name="build" value="build" />
<property name="dist" value="dist" />
<property name="lang" value="lang" />
<property name="share" value="share" />
<property file="build.properties" />
<condition property="isWindows">
<os family="windows"/>
</condition>
<target name="bootstrap">
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="bootstrap">
<mkdir dir="${build}/classes" />
<javac srcdir="${src}"
destdir="${build}/classes"
target="1.7"
source="1.7"
debug="on" debuglevel="lines,vars,source"
fork="true" />
</target>
<target name="copy-resources" depends="bootstrap">
<mkdir dir="${build}/resources/vlcskineditor/icons" />
<copy todir="${build}/resources/vlcskineditor/icons">
<fileset dir="${src}/vlcskineditor/icons" />
</copy>
</target>
<target name="jar" depends="compile, copy-resources">
<jar destfile="VLCSkinEditor.jar">
<fileset dir="${build}/classes" />
<fileset dir="${build}/resources" />
<manifest>
<attribute name="Main-Class"
value="vlcskineditor.Main" />
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
<target name="package-update" depends="jar">
<echo file=".updated" />
<zip destfile="${dist}/VLCSkinEditor_update.zip">
<fileset dir="${share}/" includes="VLCSkinEditor.exe
ICE_JNIRegistry.dll" />
<fileset dir="." includes=".updated
VLCSkinEditor.jar
README.TXT
LICENSE.TXT
skin.dtd
${lang}/*.txt
${lang}/*/*.txt" />
</zip>
<delete file=".updated" />
</target>
<target name="package-win32" depends="jar">
<zip destfile="${dist}/VLCSkinEditor_w32.zip">
<fileset dir="${share}/" includes="VLCSkinEditor.exe
ICE_JNIRegistry.dll" />
<fileset dir="." includes="README.TXT
LICENSE.TXT
VLCSkinEditor.jar
skin.dtd
${lang}/*.txt
${lang}/*/*.txt"/>
</zip>
</target>
<target name="get-is-dir" unless="is.dir" if="isWindows">
<input
message="Please enter the directory where InnoSetup is installed:"
addproperty="is.dir.read"
/>
<available property="is.exists" file="${is.dir.read}/iscc.exe"/>
<fail unless="is.exists"/>
<propertyfile
file="build.properties"
comment="Build configuration">
<entry key="is.dir" value="${is.dir.read}"/>
</propertyfile>
</target>
<target name="installer-win32" depends="jar,get-is-dir" if="isWindows">
<exec executable="${is.dir}/iscc.exe">
<arg line="SkinEditorInstaller.iss"/>
</exec>
</target>
<target name="package-unix" depends="jar">
<tar destfile="${dist}/VLCSkinEditor_unix.tar">
<fileset dir="${share}/" includes="VLCSkinEditor" />
<fileset dir="." includes="README.TXT
LICENSE.TXT
VLCSkinEditor.jar
skin.dtd
${lang}/*.txt
${lang}/*/*.txt" />
</tar>
<gzip destfile="${dist}/VLCSkinEditor_unix.tar.gz" src="${dist}/VLCSkinEditor_unix.tar" />
<delete file="${dist}/VLCSkinEditor_unix.tar" />
</target>
<target name="package-all" depends="package-update,
package-win32,
package-unix,
installer-win32" />
<target name="run" depends="jar">
<java jar="VLCSkinEditor.jar"/>
</target>
</project>