-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
53 lines (46 loc) · 1.76 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
<project name="kukkuniiaat" default="all" basedir=".">
<property name="project.src" location="src" />
<property name="project.build" location="bin" />
<target name="all" depends="init, dist" />
<target name="init">
<tstamp />
<mkdir dir="${project.build}" />
</target>
<path id="classpath.libs">
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</path>
<target name="dist" depends="ooo-build" description="Builds one ZIP for both OpenOffice.org and stand-alone use">
<zip compress="yes" destfile="Kukkuniiaat.oxt" basedir="." includes="kukkuniiaat.jar,lib/*,lib/foma/*,lib/foma/*/*,description.xml,resources/*.png,META-INF/manifest.xml,description.txt" />
</target>
<target name="ooo-build" depends="compile">
<jar jarfile="kukkuniiaat.jar" basedir="bin">
<manifest>
<attribute name="RegistrationClassName" value="kukkuniiaat.openoffice.CentralRegistrationClass" />
<attribute name="RegistrationClasses" value="kukkuniiaat.openoffice.Main" />
<attribute name="Implementation-Version" value="0.3.1" />
<attribute name="Class-Path" value=". ./lib/jdom.jar ./lib/juh.jar ./lib/jurt.jar ./lib/ridl.jar ./lib/unoil.jar ./lib/json.jar ./resource" />
<attribute name="Uno-Type-Path" value="" />
</manifest>
</jar>
</target>
<target name="compile" depends="init" description="compile the source " >
<javac srcdir="${project.src}/"
destdir="${project.build}"
nowarn="yes"
depend="yes"
debug="true"
optimize="yes">
<classpath>
<path refid="classpath.libs" />
</classpath>
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="clean" description="clean up" >
<delete dir="${project.build}" />
<delete file="kukkuniiaat.jar" />
<delete file="Kukkuniiaat.oxt" />
</target>
</project>