-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
49 lines (37 loc) · 1.92 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" ?>
<project name="DailyRewards" default="Build">
<!--
To make it easier to develop on multiple computers, I included three paths to
your test server below. Change the ones that are relevant for you.
Also make sure you change the name="Orion" above to the name of your plugin.
-->
<!-- Your MC test server location for Windows -->
<condition property="serverPath" value="C:\Users\Tag_a\OneDrive\Desktop\WorkSpace\Server">
<os family="windows" />
</condition>
<!-- Your MC test server location for Linux -->
<condition property="serverPath" value="\Users\kangarko\Desktop\Minecraft Server">
<os family="unix" />
</condition>
<!-- Your MC test server location for macOS -->
<condition property="serverPath" value="\Users\kangarko\Desktop\Minecraft Server">
<os family="mac" />
</condition>
<!-- Ninja: Read your pom.xml file to find the Foundation version we will be using -->
<xmlproperty file="pom.xml" prefix="pom" keeproot="false" />
<property name="foundation.version" value="${pom.properties.foundation.version}"/>
<!-- Finally, compile the plugin -->
<target name="Build">
<jar jarfile="${serverPath}\plugins\${ant.project.name}.jar" basedir="./target/classes/" includes="**/*">
<!--
Ant can include other plugin's classes however it cannot repackage them.
By default we use the local Foundation library cached in your m2 folder used by Maven
However, if you have Foundation downloaded from github.com/kangarko/foundation you can just
use the second line instead to include its source code within this plugin directly,
just make sure you have Foundation in the same workspace folder where you have this plugin.
-->
<zipgroupfileset dir="${user.home}/.m2/repository/com/github/kangarko/Foundation/${foundation.version}/" includes="**/*${foundation.version}.jar" />
<!-- <fileset dir="../Foundation/target/classes" /> -->
</jar>
</target>
</project>