add an ant target for building sources with core (fixes #118)

This commit is contained in:
Ben Fry
2020-09-24 17:19:54 -04:00
parent 94d3bd56b5
commit e9baaf2a71
2 changed files with 15 additions and 5 deletions
+2
View File
@@ -4,3 +4,5 @@ bin-test
/library/gluegen-rt*.jar
/library/jogl-all*.jar
core-sources.jar
+13 -5
View File
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<project name="Processing Core" default="build">
<property environment="env"/>
<property environment="env" />
<target name="clean" description="Clean out the build directories">
<delete dir="bin" />
@@ -79,9 +79,9 @@
</path>
<macrodef name="compilecommon">
<attribute name="destdir"/>
<attribute name="srcdir"/>
<attribute name="classpath"/>
<attribute name="destdir" />
<attribute name="srcdir" />
<attribute name="classpath" />
<sequential>
<taskdef name="methods"
classname="PAppletMethods"
@@ -107,7 +107,7 @@
debug="true"
destdir="@{destdir}"
nowarn="true">
<classpath refid="@{classpath}"/>
<classpath refid="@{classpath}" />
<src path="@{srcdir}" />
<include name="processing/**" />
<exclude name="processing/javafx/**" if="fx.unavailable" />
@@ -157,4 +157,12 @@
<jar basedir="bin" destfile="library/core.jar" />
</target>
<target name="source-jar">
<property name="source.jar.path" location="core-sources.jar" />
<jar basedir="src" destfile="${source.jar.path}">
<fileset dir="src" includes="**/*.java" />
</jar>
<echo message="Wrote source jar to ${source.jar.path}" />
</target>
</project>