-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·72 lines (61 loc) · 2.02 KB
/
build.xml
File metadata and controls
executable file
·72 lines (61 loc) · 2.02 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
<?xml version="1.0"?>
<project name="stb" default="dist" basedir=".">
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="lib" location="lib"/>
<property name="dist" location="dist"/>
<!-- This location MUST point to a freenet jar. Change it if needed. -->
<property name="freenetjar" value="/home/tmarkus/checkouts/fred/dist/freenet.jar"/>
<property name="freenet-extjar" value="/home/tmarkus/checkouts/fred/lib/freenet-ext.jar"/>
<target name="compile">
<mkdir dir="${build}"/>
<tstamp/>
<javac srcdir="${src}" destdir="${build}" debug="on" optimize="on" source="1.6">
<sourcepath>
<pathelement path="${build}"/>
</sourcepath>
<classpath>
<pathelement location="${freenetjar}"/>
<pathelement location="${freenet-extjar}"/>
<pathelement location="${lib}/scribe-1.3.0.jar"/>
<pathelement location="${lib}/commons-codec-1.6.jar"/>
<pathelement location="${lib}/gson-2.1.jar"/>
<pathelement location="${lib}/joda-time-2.1.jar"/>
<pathelement location="${lib}/jsoup-1.6.1.jar"/>
</classpath>
</javac>
<copy todir="${build}">
<fileset dir="${src}">
<exclude name="**/*.java" />
</fileset>
</copy>
<copy todir="${build}/staticfiles">
<fileset dir="staticfiles/" />
</copy>
<unzip dest="${build}">
<patternset>
<include name="**/*.class"/>
</patternset>
<fileset dir=".">
<include name="lib/*.jar"/>
</fileset>
</unzip>
</target>
<target name="dist" depends="compile">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/bridge.jar" basedir="${build}">
<manifest>
<attribute name="Plugin-Main-Class" value="freenet.plugin.SoneBridge.Main"/>
<section name="common">
<attribute name="Implementation-Title" value="Freenet-Sone-Bridge"/>
</section>
</manifest>
</jar>
</target>
<target name="clean">
<delete includeEmptyDirs="true">
<fileset dir="${build}" />
</delete>
<delete dir="${dist}"/>
</target>
</project>