-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
134 lines (113 loc) · 4.15 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
<?xml version="1.0" encoding="Windows-31J"?>
<!-- ////////////////////////////////////////////////////////////////////// -->
<!-- Copyright (c) 2008 by Naohide Sano, All rights reserved. -->
<!-- -->
<!-- Written by Naohide Sano -->
<!-- -->
<!-- BD-J Tetris -->
<!-- -->
<!-- @author Naohide Sano -->
<!-- @version 0.00 080827 nsano initial version -->
<!-- -->
<!-- ////////////////////////////////////////////////////////////////////// -->
<project name="bdj tetris" 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"/>
<!-- classpath -->
<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>
<!-- clean -->
<delete file="${jar.name}" failonerror="false" />
<delete dir="META-INF" failonerror="false" />
<target name="clean" description="clear build env">
<delete dir="${dir.build}" failonerror="false" />
</target>
<!-- prepare -->
<target name="prepare" description="ビルド環境の準備">
<mkdir dir="${dir.build}" />
<mkdir dir="${dir.dist}/" />
</target>
<!-- javac -->
<target name="compile" depends="prepare" description="コンパイル">
<javac debug="on"
destdir="${dir.build}"
source="1.3"
target="1.3"
encoding="UTF-8"
deprecation="true">
<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/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">
<jvmarg value="-Dfile.encoding=${encoding}" />
<classpath refid="sign.class.path" />
<arg line="-keystore ${dir.sign}/sig.ks" />
<arg value="${jar.name}" />
</java>
</target>
<path id="audio.class.path">
<fileset dir="${dir.fmj}">
<include name="fmj.jar" />
<include name="lib/*.jar" />
</fileset>
<fileset dir="${dir.vavi}/lib">
<include name="tritonus_remaining-0.3.6.jar" />
</fileset>
</path>
<!-- 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>
<java jar="${dir.bdj}/common/xletview.jar" fork="yes">
<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.games.tetris.TetrisApp" />
</java>
</target>
</project>
<!-- -->