Advertisement
JackOUT

Untitled

May 25th, 2022
1,155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.15 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <project name="SMP" default="Build">
  3.  
  4.     <!-- We use this file to compile your plugin to your plugins/ directory
  5.             automatically and use the hot swap (also known as live debug) feature.
  6.  
  7.             It does not support dependencies easily so the only dependency
  8.             we include here is Foundation. It cannot change Foundation's packages
  9.             so you can only debug one plugin at a time to avoid conflicts. -->
  10.  
  11.     <!-- Ninja: We read pom.xml file to find the Foundation version to use -->
  12.     <xmlproperty file="pom.xml" prefix="pom" keeproot="false"/>
  13.     <property name="foundation.version" value="${pom.properties.foundation.version}"/>
  14.  
  15.     <!-- Change the name key on the top to your plugin's name
  16.         and edit the two paths below to where your server is located.
  17.  
  18.         You can simply duplicate them or remove the other one if you want
  19.         to automatically compile your plugin to multiple servers. -->
  20.  
  21.     <target name="Build">
  22.         <jar jarfile="C:\Users\Megaport\Coob Test Servers\1.18 Server/plugins/${ant.project.name}.jar"
  23.             basedir="./target/classes/" includes="**/*">
  24.  
  25.             <!-- IF you have Foundation on your disk, remove the <zipgroupfileset> line and uncomment the <fileset> one. Repeat for the other <jar> goal below.
  26.                 Foundation then needs to be in the same parent's folder as your plugin's source, such as workspace/Foundation and workspace/YourPlugin! -->
  27.             <zipgroupfileset dir="${user.home}/.m2/repository/com/github/kangarko/Foundation/${foundation.version}/"
  28.                             includes="**/*${foundation.version}.jar"/>
  29.             <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/v1_17/1.0.0/"
  30.                             includes="**/*1.0.0.jar"/>
  31.             <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/v1_18/1.0.0/"
  32.                             includes="**/*1.0.0.jar"/>
  33.             <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/NMSInterface/1.0.0/"
  34.                             includes="**/*1.0.0.jar"/>
  35.             <!--<fileset dir="../Foundation/target/classes"/>-->
  36.         </jar>
  37.  
  38.         <!-- "/Users/jack.bikar/Desktop/Test Servers/1.18/plugins/${ant.project.name}.jar" >-->
  39.         <jar jarfile="C:\Users\Megaport\Coob Test Servers\1.18 Server/plugins/${ant.project.name}.jar"
  40.             basedir="./target/classes/" includes="**/*">
  41.             <zipgroupfileset dir="${user.home}/.m2/repository/com/github/kangarko/Foundation/${foundation.version}/"
  42.                             includes="**/*${foundation.version}.jar"/>
  43.             <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/v1_17/1.0.0/"
  44.                             includes="**/*1.0.0.jar"/>
  45.             <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/v1_18/1.0.0/"
  46.                             includes="**/*1.0.0.jar"/>
  47.             <zipgroupfileset dir="${user.home}/.m2/repository/games/coob/NMSInterface/1.0.0/"
  48.                             includes="**/*1.0.0.jar"/>
  49.             <!--<fileset dir="../Foundation/target/classes"/>-->
  50.         </jar>
  51.     </target>
  52.  
  53. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement