forked from skeptical/jumpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
86 lines (74 loc) · 3.03 KB
/
build.xml
File metadata and controls
86 lines (74 loc) · 3.03 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<project name="jumpy" default="jar" basedir=".">
<loadfile srcfile="src/jumpy.java" property="ver">
<filterchain>
<linecontains> <contains value="String version"/> </linecontains>
<striplinebreaks/>
<tokenfilter>
<replaceregex pattern=".+=.*"([0-9\.]+.*)".*" replace="\1"/>
</tokenfilter>
</filterchain>
</loadfile>
<property name="jumpy" value="jumpy-${ver}" />
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="py4j.jar" value="py4j0.9.jar"/>
<property environment="env"/>
<path id="lib.path.ref">
<fileset id="libs.ref" dir="lib" includes="*.jar"/>
</path>
<target name="init" >
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" >
<!-- note: Java 6 compatibility *may* be compromised when compiling under java 7
if bootclasspath (e.g. /path/to/jdk1.6.0_21/jre/lib/rt.jar) is unspecified -->
<javac srcdir="${src}" destdir="${build}" classpathref="lib.path.ref" excludes="ignore/**"
source="1.6" target="1.6" bootclasspath="${env.JAVA6_BOOTCLASSPATH}"
debug="true"
includeantruntime="false">
</javac>
</target>
<target name="jar" depends="clean, compile, util" >
<copy file="${src}/plugin" todir="${build}"/>
<copy todir="${build}/resources">
<fileset dir="resources" excludes="**/*.pyc **/*log* **/*test* **/*.0 **/ignore/**"/>
</copy>
<jar jarfile="${jumpy}.jar" basedir="${build}">
<manifest>
<!--<attribute name="Main-Class" value="net.pms.external.infidel.jumpy"/>-->
<attribute name="Class-Path" value="jumpy/lib/${py4j.jar} jumpy/lib/py4j0.8.1.jar jumpy/lib/ini4j-0.5.2.jar jumpy/lib/commons-exec-1.1.jar jumpy/lib/winp-1.14.jar"/>
<attribute name="Implementation-Version" value="${ver}"/>
</manifest>
</jar>
</target>
<target name="util">
<ant dir="util" useNativeBasedir="true" inheritAll="false"/>
</target>
<target name="dist" depends="jar" >
<mkdir dir="${dist}/jumpy/lib"/>
<copy file="${jumpy}.jar" todir="${dist}"/>
<copy file="readme.html" todir="${dist}/jumpy"/>
<copy file="scripts.html" todir="${dist}/jumpy"/>
<copy todir="${dist}/jumpy">
<fileset dir="script" excludes="**/*.pyc **/*log* **/*test* **/*.0 **/ignore/**"/>
</copy>
<copy file="${src}/lib/jumpy.py" todir="${dist}/jumpy/lib"/>
<copy file="${src}/lib/vmsg.py" todir="${dist}/jumpy/lib"/>
<copy file="${src}/lib/imgfx.py" todir="${dist}/jumpy/lib"/>
<copy file="${src}/lib/resolver.py" todir="${dist}/jumpy/lib"/>
<copy file="${src}/lib/pageScanner.py" todir="${dist}/jumpy/lib"/>
<copy file="lib/${py4j.jar}" todir="${dist}/jumpy/lib"/>
<copy file="lib/ini4j-0.5.2.jar" todir="${dist}/jumpy/lib"/>
<copy file="lib/commons-exec-1.1.jar" todir="${dist}/jumpy/lib"/>
<copy file="lib/winp-1.14.jar" todir="${dist}/jumpy/lib"/>
<zip destfile="${jumpy}.zip" basedir="${dist}"/>
</target>
<target name="clean" >
<delete dir="${build}"/>
<delete file="${jumpy}.jar" />
<delete file="${jumpy}.zip" />
<delete dir="${dist}"/>
</target>
</project>