Advertisement
HYPExMon5ter

Foundation Build

Jul 22nd, 2020
2,980
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.34 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <project name="Orion" 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="D:\Test servers\1.16">
  13.         <os family="windows" />
  14.     </condition>
  15.  
  16.     <!-- Your MC test server location for Linux -->
  17.     <condition property="serverPath" value="\Users\kangarko\Desktop\Minecraft Server">
  18.         <os family="unix" />
  19.     </condition>
  20.  
  21.     <!-- Your MC test server location for macOS -->
  22.     <condition property="serverPath" value="\Users\kangarko\Desktop\Minecraft Server">
  23.         <os family="mac" />
  24.     </condition>
  25.  
  26.     <!-- Ninja: Read your pom.xml file to find the Foundation version we will be using -->
  27.     <xmlproperty file="pom.xml" prefix="pom" keeproot="false" />
  28.     <!-- The line below may show up as red as if it wont work but don't worry, it works fine! -->
  29.     <property name="foundation.version" value="${pom.properties.foundation.version}"/>
  30.  
  31.     <!-- Finally, compile the plugin -->
  32.     <target name="Build">
  33.         <jar jarfile="${serverPath}\plugins\${ant.project.name}.jar" basedir="./target/classes/" includes="**/*">
  34.            
  35.             <!--
  36.                Ant can include other plugin's classes however it cannot repackage them.
  37.              
  38.                By default we use the local Foundation library cached in your m2 folder used by Maven    
  39.             -->
  40.             <zipgroupfileset
  41.                    dir="${user.home}/.m2/repository/org/mineacademy/libraries/foundation/${foundation.version}/"
  42.                    includes="**/*${foundation.version}.jar"/>
  43.         </jar>
  44.     </target>
  45. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement