Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" ?>
- <project name="SMP" default="Build">
- <!-- We use this file to compile your plugin to your plugins/ directory
- automatically and use the hot swap (also known as live debug) feature.
- It does not support dependencies easily so the only dependency
- we include here is Foundation. It cannot change Foundation's packages
- so you can only debug one plugin at a time to avoid conflicts. -->
- <!-- Ninja: We read pom.xml file to find the Foundation version to use -->
- <xmlproperty file="pom.xml" prefix="pom" keeproot="false"/>
- <property name="foundation.version" value="${pom.properties.foundation.version}"/>
- <!-- Change the name key on the top to your plugin's name
- and edit the two paths below to where your server is located.
- You can simply duplicate them or remove the other one if you want
- to automatically compile your plugin to multiple servers. -->
- <target name="Build">
- <jar jarfile="C:\Users\Megaport\Coob Test Servers\1.18 Server/plugins/${ant.project.name}.jar"
- basedir="./target/classes/" includes="**/*">
- <!-- IF you have Foundation on your disk, remove the <zipgroupfileset> line and uncomment the <fileset> one. Repeat for the other <jar> goal below.
- Foundation then needs to be in the same parent's folder as your plugin's source, such as workspace/Foundation and workspace/YourPlugin! -->
- <zipgroupfileset dir="${user.home}/.m2/repository/com/github/kangarko/Foundation/${foundation.version}/"
- includes="**/*${foundation.version}.jar"/>
- <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/v1_17/1.0.0/"
- includes="**/*1.0.0.jar"/>
- <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/v1_18/1.0.0/"
- includes="**/*1.0.0.jar"/>
- <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/NMSInterface/1.0.0/"
- includes="**/*1.0.0.jar"/>
- <!--<fileset dir="../Foundation/target/classes"/>-->
- </jar>
- <!-- "/Users/jack.bikar/Desktop/Test Servers/1.18/plugins/${ant.project.name}.jar" >-->
- <jar jarfile="C:\Users\Megaport\Coob Test Servers\1.18 Server/plugins/${ant.project.name}.jar"
- basedir="./target/classes/" includes="**/*">
- <zipgroupfileset dir="${user.home}/.m2/repository/com/github/kangarko/Foundation/${foundation.version}/"
- includes="**/*${foundation.version}.jar"/>
- <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/v1_17/1.0.0/"
- includes="**/*1.0.0.jar"/>
- <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/v1_18/1.0.0/"
- includes="**/*1.0.0.jar"/>
- <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/NMSInterface/1.0.0/"
- includes="**/*1.0.0.jar"/>
- <!--<fileset dir="../Foundation/target/classes"/>-->
- </jar>
- </target>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement