mirror of https://github.com/Ste3et/furniture.git
DiceFurniture Jenkins Setup
This commit is contained in:
parent
0a4155a2d6
commit
0e4556579d
|
@ -3,8 +3,6 @@
|
|||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
<classpathentry kind="lib" path="C:/Plugins/jars/FurnitureLib.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Plugins/jars/PostalService-1.0.6.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Plugins/jars/spigot.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Plugins/jars/ProtocolLib.jar"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" ?>
|
||||
<!-- Configuration of the Ant build system to generate a Jar file -->
|
||||
<project name="DiceFurniture" default="dist" basedir=".">
|
||||
<property name="pluginname" value="DiceFurniture"/>
|
||||
<property name="bukkit.jar" location="../Bukkit/dist/spigot.jar"/>
|
||||
<property name="plugins" location="../Bukkit/plugins"/>
|
||||
|
||||
<property name="src" location="src"/>
|
||||
<property name="bin" location="bin"/>
|
||||
<property name="dist" location="dist"/>
|
||||
|
||||
<target name="init">
|
||||
<mkdir dir="${bin}"/>
|
||||
<copy todir="${bin}/Crafting">
|
||||
<fileset dir="${src}/Crafting"/>
|
||||
</copy>
|
||||
<copy todir="${bin}/Models">
|
||||
<fileset dir="${src}/Models"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="init">
|
||||
<javac srcdir="${src}" destdir="${bin}" includeantruntime="false">
|
||||
<classpath>
|
||||
<pathelement location="${bukkit.jar}"/>
|
||||
<pathelement location="${plugins}/FurnitureLib.jar"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="dist" depends="compile">
|
||||
<mkdir dir="${dist}"/>
|
||||
<jar jarfile="${dist}/${pluginname}.jar">
|
||||
<fileset dir="${bin}"/>
|
||||
<fileset file="${src}/*.yml"/>
|
||||
</jar>
|
||||
<copy file="${dist}/${pluginname}.jar" tofile="${plugins}/${pluginname}.jar"/>
|
||||
</target>
|
||||
</project>
|
Loading…
Reference in New Issue