Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <project name="SimpleHub" default="Build">
  3.  
  4. <!--
  5. To make it easier to develop on multiple computers, I included three paths to
  6. your test server below. Change the ones that are relevant for you.
  7.  
  8. Also make sure you change the name="Orion" above to the name of your plugin.
  9. -->
  10.  
  11. <!-- Your MC test server location for Windows -->
  12. <condition property="serverPath" value="C:\Users\Kronches\Desktop\MC Test Server">
  13. <os family="windows" />
  14. </condition>
  15. <!-- Ninja: Read your pom.xml file to find the Foundation version we will be using -->
  16. <xmlproperty file="pom.xml" prefix="pom" keeproot="false" />
  17. <property name="foundation.version" value="${pom.properties.foundation.version}"/>
  18.  
  19. <!-- Finally, compile the plugin -->
  20. <target name="Build">
  21. <jar jarfile="${serverPath}\plugins\${ant.project.name}.jar" basedir="./target/classes/" includes="**/*">
  22.  
  23. <!--
  24. Ant can include other plugin's classes however it cannot repackage them.
  25.  
  26. By default we use the local Foundation library cached in your m2 folder used by Maven
  27.  
  28. However, if you have Foundation downloaded from github.com/kangarko/foundation you can just
  29. use the second line instead to include its source code within this plugin directly,
  30. just make sure you have Foundation in the same workspace folder where you have this plugin.
  31. -->
  32.  
  33. <zipgroupfileset dir="${user.home}/.m2/repository/com/github/kangarko/Foundation/${foundation.version}/" includes="**/*${foundation.version}.jar" />
  34. <!-- <fileset dir="../Foundation/target/classes" /> -->
  35. </jar>
  36. </target>
  37.  
  38. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement