-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
154 lines (133 loc) · 5.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
<?xml version="1.0" encoding="ISO-8859-1"?>
<project basedir="." default="all" name="i2p.Seedless">
<target name="help" depends="all" />
<target name="all" >
<echo message="Useful targets:" />
<echo message=" plugins: dist, then build signed plugins." />
<echo message=" dist: Build everything, package it." />
<echo message=" clean: Clean up, but don't remove plugins." />
<echo message=" distclean: Clean up everything." />
<echo message=" "/>
<echo message="Other targets:" />
<echo message=" buildNeodatisClassIncluder: build lib/NeodatisClassIncluder.jar"/>
<echo message=" buildSeedlessCoreClassIncluder: build lib/SeedlessCoreClassIncluder.jar"/>
<echo message=" buildNeodatis: build lib/neodatis.jar"/>
<echo message=" buildSeedlessCore: build lib/SeedlessCore.jar"/>
<echo message=" buildSeedlessConsole: build webapps/SeedlessConsole.war, also builds SeedlessCore"/>
<echo message=" buildSeedlessServer: build webapps/SeedlessServer, also builds SeedlessCore"/>
<echo message=" buildEepAnnouncer: build webapps/EepAnnouncer, also builds SeedlessCore"/>
<echo message=" seedlessplugin: build and sign seedlessplugin, also builds dist"/>
<echo message=" neodatisplugin: build and sign neodatisplugin, also builds dist"/>
</target>
<target name="buildNeodatis">
<exec dir="neodatis/" executable="ant" failonerror="true">
<arg value="i2pupdate"/>
</exec>
</target>
<target name="buildNeodatisClassIncluder">
<exec dir="NeodatisClassIncluder/" executable="ant" failonerror="true">
<arg value="jar"/>
</exec>
</target>
<target name="buildSeedlessCore">
<exec dir="SeedlessCore/" executable="ant" failonerror="true">
<arg value="jar"/>
</exec>
</target>
<target name="buildSeedlessCoreClassIncluder">
<exec dir="SeedlessCoreClassIncluder/" executable="ant" failonerror="true">
<arg value="jar"/>
</exec>
</target>
<target name="buildSeedlessConsole" depends="buildSeedlessCore" >
<exec dir="SeedlessConsole/" executable="ant" failonerror="true">
<arg value="dist"/>
</exec>
</target>
<target name="buildSeedlessServer" depends="buildSeedlessCore" >
<exec dir="SeedlessServer/" executable="ant" failonerror="true">
<arg value="dist"/>
</exec>
</target>
<target name="buildEepAnnouncer" depends="buildSeedlessCore" >
<exec dir="EepAnnouncer" executable="ant" failonerror="true">
<arg value="dist"/>
</exec>
</target>
<target name="dist" depends="buildNeodatis, buildNeodatisClassIncluder, buildSeedlessCore, buildSeedlessCoreClassIncluder, buildSeedlessConsole, buildSeedlessServer, buildEepAnnouncer">
<delete dir="dist" />
<mkdir dir="dist/" />
<mkdir dir="dist/lib/" />
<mkdir dir="dist/webapps/" />
<copy file="SeedlessCore/dist/SeedlessCore.jar" todir="dist/lib/" />
<copy file="SeedlessConsole/dist/SeedlessConsole.war" todir="dist/webapps/" />
<!--
Add the classloader.
-->
<copy file="SeedlessCoreClassIncluder/dist/SeedlessCoreClassIncluder.jar" todir="dist/lib/" />
<zip destfile="dist/i2pupdate.zip" basedir="dist/" whenempty="fail" />
<copy file="SeedlessServer/dist/Seedless.war" todir="dist/" />
<copy file="EepAnnouncer/dist/EepAnnouncer.war" todir="dist/" />
<copy file="NeodatisClassIncluder/dist/NeodatisClassIncluder.jar" todir="dist/" />
<mkdir dir="dist/LDR/" />
<mkdir dir="dist/LDR/lib/" />
<copy file="NeodatisClassIncluder/dist/NeodatisClassIncluder.jar" todir="dist/LDR/lib/" />
<copy file="neodatis/dist/i2pupdate.zip" tofile="dist/neodatis-i2pupdate.zip" />
<!--
Add the classloader.
-->
<zip destfile="dist/neodatis-i2pupdate.zip" basedir="dist/LDR/" update="true" whenempty="fail" />
</target>
<target name="seedlessplugin" depends="dist">
<exec dir="plugins/02_seedless/" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
<exec dir="plugins/02_seedless/" executable="ant" failonerror="true">
<arg value="dist"/>
</exec>
</target>
<target name="neodatisplugin" depends="dist">
<exec dir="plugins/01_neodatis/" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
<exec dir="plugins/01_neodatis/" executable="ant" failonerror="true">
<arg value="dist"/>
</exec>
</target>
<target name="clean">
<exec dir="SeedlessCoreClassIncluder/" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
<exec dir="NeodatisClassIncluder/" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
<exec dir="neodatis/" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
<ant dir="SeedlessCore/" target="clean" />
<exec dir="SeedlessConsole/" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
<exec dir="SeedlessServer/" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
<exec dir="EepAnnouncer" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
<delete dir="dist" />
<defaultexcludes remove="**/*~"/>
<delete>
<fileset dir="." includes="**/*.*~" />
</delete>
<defaultexcludes default="true"/>
</target>
<target name="distclean" depends="clean">
<exec dir="plugins/01_neodatis/" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
<exec dir="plugins/02_seedless/" executable="ant" failonerror="true">
<arg value="clean"/>
</exec>
</target>
<target name="plugins" depends="distclean, seedlessplugin, neodatisplugin" />
</project>