Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 241aef63db2b77184ca61c6a2456f37737f9519f @Dinnerbone Dinnerbone committed Jan 5, 2011
Showing with 88 additions and 0 deletions.
  1. +17 −0 .gitignore
  2. +38 −0 build.xml
  3. +30 −0 pom.xml
  4. +3 −0 src/main/resources/plugin.yml
@@ -0,0 +1,17 @@
+# Eclipse stuff
+/.classpath
+/.project
+/.settings
+
+# netbeans
+/nbproject
+
+# maven
+/target
+
+# ant
+/bin
+/dist
+
+# vim
+.*.sw[a-p]
@@ -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>
30 pom.xml
@@ -0,0 +1,30 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.bukkit</groupId>
+ <artifactId>bukkit-scrap</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <name>ScrapBukkit</name>
+ <url>http://www.bukkit.org</url>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.bukkit</groupId>
+ <artifactId>bukkit</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <type>jar</type>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+</project>
@@ -0,0 +1,3 @@
+name: ScrapBukkit
+main: com.dinnerbone.bukkit.scrap.ScrapBukkit
+version: 0.1

0 comments on commit 241aef6

Please sign in to comment.