-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
40 lines (33 loc) · 1.53 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="VisualAnalyticsLibrary" basedir="." default="clean-build">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="lib"/>
<property name="version" value="0.5b"/>
<!-- Put the processing core.jar path-->
<!--<property name="processing.dir" value=" Path to core.jar "/>-->
<property name="processing.dir" value="C:/Users/usuario/Documents/Juanibarral/Software/processing-2.0b7-windows64/processing-2.0b7/core/library"/>
<target name="clean" description="Deletes all contents from build folder">
<delete dir = "${build.dir}"/>
</target>
<target name="compile" description="Compiles the sources">
<path id="library-path">
<pathelement path="${processing.dir}"/>
<fileset dir="${processing.dir}">
<include name="*.jar"/>
</fileset>
</path>
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" includeantruntime="false" classpathref="library-path">
<compilerarg value="-Xlint:unchecked"/>
<compilerarg value="-Xlint:deprecation"/>
</javac>
</target>
<target name ="jar" description="Creates a jar for the VisualAnalyticsLibrary project" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/${ant.project.name}_V${version}.jar" basedir="${classes.dir}">
</jar>
</target>
<target name="clean-build" description="makes a clean build" depends="clean,compile,jar"/>
</project>