Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" ?>
- <project name="Orion" 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="D:\Test servers\1.16">
- <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" />
- <!-- The line below may show up as red as if it wont work but don't worry, it works fine! -->
- <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
- -->
- <zipgroupfileset
- dir="${user.home}/.m2/repository/org/mineacademy/libraries/foundation/${foundation.version}/"
- includes="**/*${foundation.version}.jar"/>
- </jar>
- </target>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement