-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.xml
24 lines (24 loc) · 1.1 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="CommunityBridge" default="default" basedir=".">
<description>Builds, tests, and runs the project CommunityBridge.</description>
<import file="nbproject/build-impl.xml"/>
<target name="-pre-compile">
<!-- Increment the build number -->
<buildnumber file="build.number"/>
<!-- Update the build number in the plugin.yml file -->
<replaceregexp byline="false">
<regexp pattern="version: (\d*\.\d*\.\d*)\.\d*"/>
<substitution expression="version: \1.${build.number}"/>
<fileset dir="src/">
<include name="plugin.yml"/>
</fileset>
</replaceregexp>
</target>
<target name="-post-jar">
<!-- Copy the jar file into the test server plugin folder -->
<copy file="${dist.jar}" flatten="true" todir="..\..\TestServers\CraftBukkitA\plugins" />
<copy file="${dist.jar}" flatten="true" todir="..\..\TestServers\CraftBukkitB\plugins" />
<copy file="${dist.jar}" flatten="true" todir="..\..\TestServers\SpigotA\plugins" />
<copy file="${dist.jar}" flatten="true" todir="..\..\TestServers\SpigotB\plugins" />
</target>
</project>