forked from unsound/hfsexplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
204 lines (177 loc) · 7.9 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="HFSExplorer">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="java.target.level" value="1.5"/>
<property name="java.source.level" value="1.5"/>
<property name="java.source.dir" value="src/java"/>
<property name="manifest.source.dir" value="src/META-INF"/>
<!--<property name="builddir" value=".build~"/>-->
<property name="builddir" value=".antbuild~"/>
<!--<property name="java.build.library.dir" value="lib"/>-->
<property name="java.runtime.library.dir" value="dist/lib"/>
<!--<property name="manifest.filename" value="${manifest.source.dir}/MANIFEST.MF"/>-->
<!--<property name="outjar.filename" value="${libdir}/torrenttoolbox.jar"/>-->
<property name="resources.srcdir" value="resource"/>
<property name="resources.destdir" value="${builddir}/res"/>
<property name="target.all.jarmanifest" value="${manifest.source.dir}/MANIFEST.MF"/>
<property name="target.all.outjarname" value="hfsx.jar"/>
<property name="target.all.outjar" value="${java.runtime.library.dir}/${target.all.outjarname}"/>
<property name="target.jparted.jarmanifest" value="${manifest.source.dir}/jparted/MANIFEST.MF"/>
<property name="target.jparted.outjar" value="targets/jparted/lib/jparted.jar"/>
<property name="target.hfs-jfuse_libhfs.jarmanifest" value="${manifest.source.dir}/hfs-jfuse_libhfs/MANIFEST.MF"/>
<property name="target.hfs-jfuse_libhfs.outjar" value="targets/hfs-jfuse_libhfs/hfs-jfuse_libhfs.jar"/>
<property name="target.mkapm.outjar" value="targets/mkapm/mkapm.jar"/>
<property name="target.mkapm.jarmanifest" value="${manifest.source.dir}/mkapm/MANIFEST.MF"/>
<path id="java.build.classpath">
<fileset dir="${java.runtime.library.dir}">
<include name="**/*.jar"/>
<exclude name="**/${target.all.outjarname}"/>
</fileset>
<!--
<fileset dir="${java.build.library.dir}">
<include name="**/*.jar"/>
</fileset>
-->
</path>
<path id="javadoc.classpath">
<path refid="java.build.classpath"/>
</path>
<target name="all">
<echo message="Current well defined targets:"/>
<echo message=" build-all - Compiles all files in all packages and puts the"/>
<echo message=" result in dist/lib/hfsx.jar."/>
<echo message=" build-jparted - Compiles the org.catacombae.jparted package, "/>
<echo message=" subpackages and dependencies and puts the result"/>
<echo message=" in targets/jparted/lib/jparted.jar."/>
<echo message=" build-hfs-jfuse_libhfs -"/>
<echo message=" Builds hfs-jfuse_libhfs, which is used by"/>
<echo message=" hfs-jfuse."/>
<echo message=" build-mkapm - Builds mkapm, a utility for creating Apple"/>
<echo message=" Partition Map layouts."/>
<echo message=" javadoc - Creates the javadoc documentation for the"/>
<echo message=" project."/>
</target>
<target name="init">
<mkdir dir="${builddir}"/>
</target>
<target name="clean">
<mkdir dir="${builddir}"/>
<delete dir="${builddir}"/>
</target>
<target name="build-all" depends="clean,jar-all"/>
<target name="copyresources-all" depends="init">
<copy todir="${resources.destdir}">
<fileset dir="${resources.srcdir}" includes="*.png"/>
</copy>
</target>
<target name="compile-all" depends="init">
<javac srcdir="${java.source.dir}"
destdir="${builddir}"
includes="**"
debug="true"
debuglevel="${debuglevel}"
encoding="utf-8"
source="${java.source.level}"
target="${java.target.level}"
deprecation="on">
<compilerarg value="-Xlint:unchecked"/>
<classpath refid="java.build.classpath"/>
</javac>
</target>
<target name="jar-all" depends="copyresources-all,compile-all">
<jar destfile="${target.all.outjar}" basedir="${builddir}" manifest="${target.all.jarmanifest}"/>
</target>
<target name="compile-hfsexplorer" depends="init">
<javac srcdir="${java.source.dir}"
destdir="${builddir}"
includes="org/catacombae/hfsexplorer/**"
debug="true"
debuglevel="${debuglevel}"
encoding="utf-8"
source="${java.source.level}"
target="${java.target.level}">
<classpath refid="java.build.classpath"/>
</javac>
</target>
<target name="build-jparted" depends="clean,jar-jparted"/>
<target name="compile-jparted" depends="init">
<javac srcdir="${java.source.dir}"
destdir="${builddir}"
includes="org/catacombae/jparted/**"
debug="true"
debuglevel="${debuglevel}"
encoding="utf-8"
source="${java.source.level}"
target="${java.target.level}">
<classpath refid="java.build.classpath"/>
</javac>
</target>
<target name="jar-jparted" depends="compile-jparted">
<jar destfile="${target.jparted.outjar}" basedir="${builddir}" manifest="${target.jparted.jarmanifest}"/>
</target>
<target name="build-hfs-jfuse_libhfs" depends="clean,jar-hfs-jfuse_libhfs"/>
<target name="compile-hfs-jfuse_libhfs" depends="init">
<javac srcdir="${java.source.dir}"
destdir="${builddir}"
debug="true"
debuglevel="${debuglevel}"
encoding="utf-8"
source="${java.source.level}"
target="${java.target.level}">
<!-- All entry points to the HFSExplorer libraries from hfs-jfuse should be listed here. -->
<include name="org/catacombae/storage/fs/FSAttributes.java"/>
<include name="org/catacombae/storage/fs/FSEntry.java"/>
<include name="org/catacombae/storage/fs/FSFile.java"/>
<include name="org/catacombae/storage/fs/FSFolder.java"/>
<include name="org/catacombae/storage/fs/FSFork.java"/>
<include name="org/catacombae/storage/fs/FSLink.java"/>
<include name="org/catacombae/storage/fs/FileSystemHandler.java"/>
<include name="org/catacombae/storage/io/DataLocator.java.java"/>
<include name="org/catacombae/storage/io/RandomAccessFileDataLocator.java"/>
<include name="org/catacombae/storage/fs/FileSystemCapability.java"/>
<include name="org/catacombae/storage/fs/FileSystemHandler.java"/>
<include name="org/catacombae/storage/fs/FileSystemHandlerFactory.java"/>
<include name="org/catacombae/storage/fs/hfs/HFSFileSystemHandlerFactory.java"/>
<include name="org/catacombae/storage/fs/hfsplus/HFSPlusFileSystemHandlerFactory.java"/>
<include name="org/catacombae/storage/fs/hfsx/HFSXFileSystemHandlerFactory.java"/>
<classpath refid="java.build.classpath"/>
</javac>
</target>
<target name="jar-hfs-jfuse_libhfs" depends="compile-hfs-jfuse_libhfs">
<jar destfile="${target.hfs-jfuse_libhfs.outjar}" basedir="${builddir}" manifest="${target.hfs-jfuse_libhfs.jarmanifest}"/>
</target>
<target name="build-mkapm" depends="clean,jar-mkapm"/>
<target name="compile-mkapm" depends="init">
<javac destdir="${builddir}"
includes="org/catacombae/hfsexplorer/tools/MkAPM.java"
debug="true"
debuglevel="${debuglevel}"
encoding="utf-8"
source="${java.source.level}"
target="${java.target.level}">
<src path="${java.source.dir}"/>
<classpath refid="java.build.classpath"/>
</javac>
</target>
<target name="jar-mkapm" depends="compile-mkapm">
<jar destfile="${target.mkapm.outjar}" basedir="${builddir}" manifest="${target.mkapm.jarmanifest}"/>
</target>
<target name="javadoc">
<javadoc destdir="javadoc.~"
packagenames="org.catacombae.*"
sourcepath="${java.source.dir}"
access="protected"
author="true"
version="true"
use="true"
encoding="utf-8"
windowtitle="HFSExplorer API">
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
<link href="../../catacombaeframework/javadoc.~/"/>
<classpath>
<path refid="javadoc.classpath"/>
</classpath>
</javadoc>
</target>
</project>