-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (48 loc) · 1.52 KB
/
build.xml
File metadata and controls
55 lines (48 loc) · 1.52 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
<?xml version="1.0"?>
<project name="frirc" 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="../fred/lib/freenet-cvs-snapshot.jar"/>
<property name="freenet-extjar" value="../fred/lib/freenet-ext.jar"/>
<property name="wotjar" value="../plugin-WoT-staging/dist/WoT.jar"/>
<target name="compile">
<mkdir dir="${build}"/>
<tstamp/>
<javac srcdir="${src}" destdir="${build}" debug="on" optimize="on" source="1.5">
<sourcepath>
<pathelement path="${build}"/>
</sourcepath>
<classpath>
<pathelement location="${freenetjar}"/>
<pathelement location="${freenet-extjar}"/>
<pathelement location="${wotjar}"/>
</classpath>
</javac>
<copy todir="${build}">
<fileset dir="${src}">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<target name="dist" depends="compile">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/frirc.jar" basedir="${build}">
<manifest>
<attribute name="Plugin-Main-Class" value="plugin.frirc.Frirc"/>
<section name="common">
<attribute name="Implementation-Title" value="frirc"/>
</section>
</manifest>
</jar>
</target>
<target name="clean">
<delete includeEmptyDirs="true">
<fileset dir="${build}" />
</delete>
<delete dir="${dist}"/>
<delete dir="${lib}"/>
</target>
</project>