forked from sotillo19/JFML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildJAR.xml
35 lines (30 loc) · 1.32 KB
/
buildJAR.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="JFML" default="dist" basedir=".">
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="classes" location="bin"/>
<property name="lib" location="Examples/lib"/>
<property name="Name" value="JFML"/>
<property name="version" value="1.2.2"/>
<target name="init">
<!-- Create the classes directory structure used by compile -->
<mkdir dir="${classes}"/>
</target>
<target name="compile" depends="init" description="compile the source " >
<!-- Compile the java code from ${src} into ${classes} -->
<javac srcdir="${src}" destdir="${classes}" deprecation="-Xlint"/>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${lib}"/>
<!-- Put everything in ${classes} into the jar file -->
<jar jarfile="${lib}/${Name}-v${version}.jar" basedir="${classes}" manifest="manifest.mf"
excludes = "**/interoperatibility/**"/>
</target>
<target name="clean" description="clean classes and lib directories" >
<!-- Delete the ${classes} directory -->
<delete dir="${classes}"/>
<!-- Delete the ${lib} directory -->
<delete dir="${lib}"/>
</target>
</project>