Put classes in package to be more compatible with Bukkit.

This commit is contained in:
FrozenCow 2011-01-05 19:41:21 +01:00
parent 80f9435a1a
commit f0ec375834
12 changed files with 39 additions and 35 deletions

View File

@ -1,7 +1,6 @@
<project name="dynmap" default="dist" basedir="."> <project name="dynmap" default="dist" basedir=".">
<include file="build_parameters.xml"/>
<property name="pluginname" value="dynmap"/> <property name="pluginname" value="dynmap"/>
<property name="bukkit.jar" location="../../bukkit.jar"/>
<property name="plugins" location="../../plugins/"/>
<property name="src" location="src"/> <property name="src" location="src"/>
<property name="bin" location="bin"/> <property name="bin" location="bin"/>
@ -12,23 +11,34 @@
</target> </target>
<target name="compile" depends="init"> <target name="compile" depends="init">
<javac srcdir="${src}" destdir="${bin}" includeantruntime="false"> <javac srcdir="${src}/main/java" destdir="${bin}" classpath="${bukkit.jar}" includeantruntime="false" />
<classpath>
<pathelement location="${bukkit.jar}"/>
</classpath>
</javac>
</target> </target>
<target name="dist" depends="compile"> <target name="dist" depends="compile">
<mkdir dir="${dist}"/> <mkdir dir="${dist}"/>
<jar jarfile="${dist}/${pluginname}.jar"> <jar jarfile="${dist}/${pluginname}.jar">
<fileset dir="${bin}"/> <fileset dir="${bin}"/>
<fileset file="${src}/plugin.yml"/> <fileset file="${src}/main/resources/plugin.yml"/>
</jar> </jar>
</target> </target>
<target name="deploy" depends="dist"> <target name="deploy" depends="dist">
<copy file="${dist}/${pluginname}.jar" todir="${plugins}"/> <copy file="${dist}/${pluginname}.jar" todir="${plugins}"/>
<copy file="colors.txt" todir="${minecraft}"/>
<copy todir="${http_root}">
<fileset dir="web"/>
</copy>
</target>
<target name="release" depends="dist">
<delete file="${pluginname}.zip"/>
<zip destfile="${pluginname}.zip">
<zipfileset dir="." includes="README.md" fullpath="readme.txt"/>
<zipfileset dir="." includes="build.xml"/>
<zipfileset dir="${dist}" includes="*.jar"/>
<zipfileset dir="${src}" includes="*.java" prefix="src/"/>
<zipfileset dir="${web}" includes="**" prefix="web/"/>
</zip>
</target> </target>
<target name="clean"> <target name="clean">

View File

@ -1,13 +0,0 @@
/* FlatFileSource class wrapper to expose protected properties */
import java.util.List;
public class DMFlatFileSource{/* extends FlatFileSource {
public List<Warp> getAllWarps() {
return this.warps;
}
public List<Warp> getAllHomes() {
return this.homes;
}*/
}

View File

@ -1,13 +0,0 @@
/* MySQLSource class wrapper to expose protected properties */
import java.util.List;
public class DMMySQLSource{/* extends MySQLSource {
public List<Warp> getAllWarps() {
return this.warps;
}
public List<Warp> getAllHomes() {
return this.homes;
}*/
}

View File

@ -1,3 +1,5 @@
package org.dynmap;
import java.util.HashMap; import java.util.HashMap;
public class Cache<K, V> public class Cache<K, V>

View File

@ -1,3 +1,5 @@
package org.dynmap;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Iterator; import java.util.Iterator;

View File

@ -1,3 +1,5 @@
package org.dynmap;
import java.awt.Color; import java.awt.Color;
import java.awt.Graphics2D; import java.awt.Graphics2D;
import java.awt.Image; import java.awt.Image;

View File

@ -1,3 +1,5 @@
package org.dynmap;
import java.util.logging.Logger; import java.util.logging.Logger;
import java.util.logging.Level; import java.util.logging.Level;

View File

@ -1,3 +1,5 @@
package org.dynmap;
/* this class stores a tile update */ /* this class stores a tile update */
public class TileUpdate { public class TileUpdate {

View File

@ -1,3 +1,5 @@
package org.dynmap;
import java.io.*; import java.io.*;
import java.net.*; import java.net.*;
import java.util.*; import java.util.*;

View File

@ -1,3 +1,5 @@
package org.dynmap;
import java.io.BufferedOutputStream; import java.io.BufferedOutputStream;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;

View File

@ -1,3 +1,5 @@
package org.dynmap;
import java.util.logging.Logger; import java.util.logging.Logger;
import java.io.IOException; import java.io.IOException;
@ -18,7 +20,6 @@ public class map extends JavaPlugin {
public map(PluginLoader pluginLoader, Server instance, PluginDescriptionFile desc, File plugin, ClassLoader cLoader) { public map(PluginLoader pluginLoader, Server instance, PluginDescriptionFile desc, File plugin, ClassLoader cLoader) {
super(pluginLoader, instance, desc, plugin, cLoader); super(pluginLoader, instance, desc, plugin, cLoader);
registerEvents();
} }
public World getWorld() { public World getWorld() {
@ -39,6 +40,8 @@ public class map extends JavaPlugin {
} }
listener = new MapListener(mgr); listener = new MapListener(mgr);
registerEvents();
} }
@Override @Override

View File

@ -0,0 +1,3 @@
name: Dynamic Map
main: org.dynmap.map
version: 0.1