forked from FormallyMyles/PerWorldPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
40 lines (38 loc) · 1.09 KB
/
build.xml
File metadata and controls
40 lines (38 loc) · 1.09 KB
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
<project name="PerWorldPlugins" default="dist" basedir=".">
<property name="pluginname" value="PerWorldPlugins"/>
<property name="path" location="lib"/>
<property name="plugins" location=""/>
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="dist" location="dist"/>
<target name="init">
<mkdir dir="${bin}"/>
</target>
<path id="classpath">
<fileset dir="${path}" includes="**/*.jar"/>
</path>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${bin}" includeantruntime="false">
<classpath refid="classpath"/>
</javac>
</target>
<copy todir="${bin}">
<fileset dir="${src}">
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy todir="${bin}">
<fileset dir="inject">
<exclude name="**/*.java"/>
</fileset>
</copy>
<target name="dist" depends="compile">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${pluginname}-DEV.jar">
<fileset dir="${bin}"/>
</jar>
</target>
<target name="clean">
<delete dir="${bin}"/>
</target>
</project>