Skip to content

Commit a8bb758

Browse files
committed
add clean-libs target to build.xml files
1 parent 1cbcb73 commit a8bb758

File tree

5 files changed

+35
-22
lines changed

5 files changed

+35
-22
lines changed

app/build.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,18 @@
173173
<jar basedir="bin" destfile="pde.jar" />
174174
</target>
175175

176-
<target name="update" description="Update the downloaded libraries">
176+
<target name="clean-libs" description="Remove the downloaded libraries">
177177
<delete>
178178
<fileset refid="ant.files" />
179179
<fileset refid="flatlaf.files" />
180180
<fileset refid="jna.files" />
181181
</delete>
182182

183+
<!--
183184
<antcall target="download-ant" />
184185
<antcall target="download-flatlaf" />
185186
<antcall target="download-jna" />
187+
-->
186188
</target>
187189

188190
<target name="clean" description="Clean the build directories">

build/build.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,12 +1572,16 @@
15721572
</target>
15731573

15741574

1575-
<!-- - - - - - - - -->
1576-
<!-- Run It! -->
1577-
<!-- - - - - - - - -->
1575+
<!-- Cleaning the build and libraries -->
15781576

15791577
<target name="clean" description="Perform a spring cleaning"
15801578
depends="linux-clean, windows-clean, macos-clean, subprojects-clean">
15811579
</target>
15821580

1581+
<target name="clean-libs" description="Purge downloaded support libraries">
1582+
<subant buildpath="../core" target="clean-libs"/>
1583+
<subant buildpath="../app" target="clean-libs"/>
1584+
<subant buildpath="../java/libraries/svg" target="clean-libs"/>
1585+
</target>
1586+
15831587
</project>

core/build.xml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@
33

44
<property environment="env" />
55

6-
<target name="clean" description="Clean out the build directories">
7-
<delete dir="bin" />
8-
<delete dir="bin-test" />
9-
<delete file="library/core.jar" />
10-
</target>
11-
12-
<target name="clean-jogl" description="Clean out the JOGL binaries">
13-
<delete>
14-
<fileset dir="library" includes="gluegen-rt*.jar" />
15-
<fileset dir="library" includes="jogl-all*.jar" />
16-
</delete>
17-
</target>
18-
196
<target name="methods-check">
207
<available file="methods/methods.jar" property="methods.present" />
218
</target>
@@ -216,4 +203,19 @@
216203
<echo message="Wrote source jar to ${source.jar.path}" />
217204
</target>
218205

206+
<target name="clean-libs" description="Clean out the JOGL binary downloads">
207+
<delete>
208+
<fileset dir="library" includes="gluegen-rt*.jar" />
209+
<fileset dir="library" includes="jogl-all*.jar" />
210+
</delete>
211+
212+
<!-- <antcall target="download-jogl" /> -->
213+
</target>
214+
215+
<target name="clean" description="Clean out the build directories">
216+
<delete dir="bin" />
217+
<delete dir="bin-test" />
218+
<delete file="library/core.jar" />
219+
</target>
220+
219221
</project>

java/libraries/svg/build.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0"?>
22
<project name="Processing SVG Library" default="build">
33

4-
<target name="clean" description="Clean the build directories">
5-
<delete dir="bin" />
6-
<delete file="library/svg.jar" />
7-
</target>
8-
94
<property name="core.library.jar" location="../../../core/library/core.jar" />
105

116
<property name="batik.version" value="1.14" />
@@ -76,4 +71,13 @@
7671
<target name="build" depends="compile" description="Build SVG library">
7772
<jar basedir="bin" destfile="library/svg.jar" />
7873
</target>
74+
75+
<target name="clean" description="Clean the build directories">
76+
<delete dir="bin" />
77+
<delete file="library/svg.jar" />
78+
</target>
79+
80+
<target name="clean-libs" description="Clean the build directories">
81+
<delete file="${batik.library.jar}" />
82+
</target>
7983
</project>

todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ X close the interface issue, major changes done
2929
X remove underscore and use (half?) space for tabs?
3030
X half space character not implemented, but the space looks good
3131
X disable behavior with sketch.name.replace_underscore = false
32+
X add clean-libs target to build.xml files that need it
3233

3334
naming
3435
X Friendly Names for new Sketches (includes UI for switching it back)

0 commit comments

Comments
 (0)