forked from Lyneira/MachinaCraft
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild-common.xml
27 lines (21 loc) · 885 Bytes
/
build-common.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="build-common" default="all" basedir=".">
<property name="binDir" value="bin" />
<property name="jarDir" value="jar" />
<property name="VERSION" value="4.1.14" />
<target name="all" depends="copyResources, makeJar" description="Create a plugin jar for the project">
</target>
<target name="copyResources" description="Copies needed files to the build location">
<copy todir="${binDir}">
<fileset dir="." includes="*.yml"/>
</copy>
<copy file="./plugin.yml.template" tofile="${binDir}/plugin.yml" filtering="yes" overwrite="yes">
<filterset>
<filter token="VERSION" value="${VERSION}"/>
</filterset>
</copy>
</target>
<target name="makeJar" description="Create the jar">
<jar jarfile="../${jarDir}/${ant.project.name}.jar" basedir="${binDir}" />
</target>
</project>