-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
144 lines (121 loc) · 4.32 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?xml version="1.0" encoding="UTf-8"?>
<!-- ////////////////////////////////////////////////////////////////////// -->
<!-- Copyright (c) 2008 by umjammer, All rights reserved. -->
<!-- -->
<!-- Written by umjammer -->
<!-- -->
<!-- BD-J Apple II -->
<!-- -->
<!-- @author umjammer -->
<!-- @version 0.00 080912 umjammer initial version -->
<!-- -->
<!-- ////////////////////////////////////////////////////////////////////// -->
<project name="bdj Apple II" default="run" basedir=".">
<property environment="env"/>
<property file="local.properties" />
<property name="dir.build" value="build"/>
<property name="app.name" value="00000"/>
<property name="jar.name" value="${app.name}.jar"/>
<!-- class path definitions -->
<path id="project.class.path">
<fileset dir="${dir.bdj}/common">
<include name="*.jar" />
<include name="jmf/jmf.jar" />
<exclude name="javassist.jar" />
<exclude name="metouia.jar" />
<exclude name="nanoxml-2.2.3.jar" />
</fileset>
</path>
<path id="sign.class.path">
<fileset dir="${dir.sign}">
<include name="*.jar" />
</fileset>
</path>
<!-- target definitions -->
<!-- clean -->
<target name="clean" description="clear build enviroment">
<delete file="${jar.name}" failonerror="false" />
<delete dir="META-INF" failonerror="false" />
<delete dir="${dir.build}" failonerror="false" />
</target>
<!-- prepare -->
<target name="prepare" description="prepare build enviroment">
<mkdir dir="${dir.build}" />
</target>
<!-- javac -->
<target name="compile" depends="prepare" description="compile">
<javac debug="on"
destdir="${dir.build}"
source="1.3"
target="1.3"
deprecation="true">
<!--
<bootclasspath>
<pathelement location="${dir.bdj}/lib/basis.jar" />
</bootclasspath>
-->
<classpath refid="project.class.path" />
<src path="src/main/java" />
</javac>
</target>
<!-- jar -->
<target name="packaging" depends="compile" description="packaging">
<copy file="etc/bluray.MyXlet.perm" toFile="${dir.build}/${paem.file}" />
<copy toDir="${dir.build}">
<fileset dir="src/main/java">
<include name="**/*.properties" />
</fileset>
</copy>
<copy toDir="${dir.build}">
<fileset dir="src/main/resources" />
</copy>
<jar jarfile="${jar.name}">
<fileset dir="${dir.build}">
<exclude name="config" />
<exclude name="config/**/*" />
</fileset>
</jar>
</target>
<!-- sign -->
<target name="sign" depends="packaging" description="sign">
<java classname="net.java.bd.tools.security.BDSigner" fork="yes">
<classpath refid="sign.class.path" />
<arg line="-keystore ${dir.sign}/sig.ks" />
<arg value="${jar.name}" />
</java>
</target>
<!-- dist -->
<target name="dist" depends="sign" description="distribution">
<java jar="${dir.bdj}/common/hdcookbook/bdjo.jar" fork="yes">
<arg value="etc/bdjo.xml" />
<arg value="00000.bdjo" />
</java>
</target>
<!-- run -->
<target name="run" depends="" description="test">
<copy todir="${dir.build}">
<fileset dir="etc" >
<include name="config/**/*" />
</fileset>
</copy>
<copy toDir="${dir.bdj}/common">
<fileset dir="src/main/resources" />
<fileset dir="${dir.build}">
<include name="**/*.properties" />
</fileset>
</copy>
<java jar="${dir.bdj}/common/xletview.jar" fork="yes">
<!--
<jvmarg value="-Xprof"/>
-->
<jvmarg value="-Djava.ext.dirs=${dir.bdj}/common"/>
<classpath>
<pathelement location="${dir.build}" />
<path refid="project.class.path" />
</classpath>
<arg line="-xletPath ${dir.build}" />
<arg line="-xletClass vavi.apps.appleii.AppleIIApp" />
</java>
</target>
</project>
<!-- -->