Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71ac696
commit dc9679c
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<project name="BukkitSamplePlugin" default="dist" basedir="."> | ||
<property name="pluginname" value="BukkitSamplePlugin"/> | ||
<property name="bukkit.jar" location="../Bukkit/dist/Bukkit.jar"/> | ||
<property name="plugins" location="../../plugins/"/> | ||
|
||
<property name="src" location="src"/> | ||
<property name="bin" location="bin"/> | ||
<property name="dist" location="dist"/> | ||
|
||
<target name="init"> | ||
<mkdir dir="${bin}"/> | ||
</target> | ||
|
||
<target name="compile" depends="init"> | ||
<javac srcdir="${src}/main/java" destdir="${bin}" includeantruntime="false"> | ||
<classpath> | ||
<pathelement location="${bukkit.jar}"/> | ||
</classpath> | ||
</javac> | ||
</target> | ||
|
||
<target name="dist" depends="compile"> | ||
<mkdir dir="${dist}"/> | ||
<jar jarfile="${dist}/${pluginname}.jar"> | ||
<fileset dir="${bin}"/> | ||
<fileset file="${src}/main/resources/plugin.yml"/> | ||
</jar> | ||
</target> | ||
|
||
<target name="deploy" depends="dist"> | ||
<copy file="${dist}/${pluginname}.jar" todir="${plugins}"/> | ||
</target> | ||
|
||
<target name="clean"> | ||
<delete dir="${bin}"/> | ||
<delete dir="${dist}"/> | ||
</target> | ||
</project> |