Skip to content

Commit

Permalink
Adding new dist folder
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Khoury <nick.khry@gmail.com>
  • Loading branch information
Resolude committed Mar 12, 2012
1 parent e96f4e9 commit 0a62145
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Broadcaster/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
<classpath>
<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.6"/>
<classpathentry kind="lib" path="/Users/Nick/git/Bukkit/target/bukkit-1.2.3-R0.3-SNAPSHOT.jar">
<attributes>
<attribute name="javadoc_location" value="http://jd.bukkit.org/apidocs/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/Users/Nick/git/Bukkit/target/bukkit-1.2.3-R0.3-SNAPSHOT.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
10 changes: 10 additions & 0 deletions Broadcaster/.project
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>auto,full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/Ant Builder.launch</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
Expand Down
39 changes: 39 additions & 0 deletions Broadcaster/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<project name="Broadcaster" default="deploy" basedir=".">
<property name="pluginname" value="Broadcaster"/>
<property name="bukkit.jar" location="../../../git/Bukkit/target/bukkit-1.2.3-R0.3-SNAPSHOT.jar"/>
<property name="plugins" location="../../../Documents/Bukkit/Server/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}" 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}/plugin.yml"/>
<fileset file="${src}/config.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>
Binary file added Broadcaster/dist/Broadcaster.jar
Binary file not shown.

0 comments on commit 0a62145

Please sign in to comment.