summaryrefslogtreecommitdiffstats
path: root/build.xml
blob: bfbc3cbcd772e88a2a918c76c49030dfcc570887 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<project default="collect">
  <target name="setversion">
    <replace dir="." includes="**/src/plugin.yml" token="version: TeamCity" value="version: ${build.number}"/>
    <replace dir="." includes="**/src/messages*.properties" token="version: TeamCity" value="version: ${build.number}"/>
    <replace dir="." includes="**/src/items.csv" token="version: TeamCity" value="version: ${build.number}"/>
  </target>
  <target name="buildGM" depends="setversion">
    <ant dir="EssentialsGroupManager" antfile="build.xml"/>
    <ant dir="EssentialsGroupBridge" antfile="build.xml"/>
  </target>
  <target name="buildEss" depends="buildGM">
    <ant dir="Essentials" antfile="build.xml"/>
    <ant dir="EssentialsChat" antfile="build.xml"/>
    <ant dir="EssentialsSpawn" antfile="build.xml"/>
    <ant dir="EssentialsProtect" antfile="build.xml"/>
    <ant dir="EssentialsGeoIP" antfile="build.xml"/>
    <ant dir="EssentialsXMPP" antfile="build.xml"/>
  </target>
  <target name="collect" depends="buildEss">
    <mkdir dir="jars"/>
    <copy todir="jars">
      <fileset dir=".">
        <include name="**/dist/Essentials*.jar"/>
		<include name="**/Essentials/src/config.yml" />
		<include name="**/src/messages*.properties" />
		<include name="**/src/items.csv" />
      </fileset>
      <flattenmapper/>
    </copy>
  </target>
</project>