Fix dependency

Loading from lib won't work, so back to the old method.
This commit is contained in:
snowleo 2011-06-07 21:55:31 +02:00
parent 640f51564a
commit b1446154bf
4 changed files with 11 additions and 4 deletions

View File

@ -83,7 +83,7 @@ reference.EssentialsGroupManager.jar=${project.EssentialsGroupManager}/dist/Esse
reference.EssentialsPermissionsCommands.jar=${project.EssentialsPermissionsCommands}/dist/EssentialsPermissionsCommands.jar
reference.EssentialsProtect.jar=${project.EssentialsProtect}/dist/EssentialsProtect.jar
reference.EssentialsSpawn.jar=${project.EssentialsSpawn}/dist/EssentialsSpawn.jar
reference.EssentialsXMPP.jar=${project.EssentialsXMPP}/dist/original-EssentialsXMPP.jar
reference.EssentialsXMPP.jar=${project.EssentialsXMPP}/dist/EssentialsXMPP.jar
run.classpath=\
${javac.classpath}:\
${build.classes.dir}

View File

@ -72,5 +72,13 @@
nbproject/build-impl.xml file.
-->
<target name="-post-jar">
<jar jarfile="${dist.dir}/EssentialsProtect.jar">
<zipfileset src="${dist.jar}" excludes="META-INF/*" />
<zipfileset src="../lib/c3p0-0.9.1.2.jar" excludes="META-INF/*" />
<manifest>
<attribute name="Classpath" value="EssentialsProtect.jar"/>
</manifest>
</jar>
</target>
</project>

View File

@ -22,7 +22,7 @@ debug.test.classpath=\
${run.test.classpath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/EssentialsProtect.jar
dist.jar=${dist.dir}/original-EssentialsProtect.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=

View File

@ -36,7 +36,6 @@ public class EssentialsProtect extends JavaPlugin implements IConf, IProtect
public void onEnable()
{
ess = Essentials.getStatic();
ess.getDependancyChecker().checkProtectDependancies();
final PluginManager pm = this.getServer().getPluginManager();
final EssentialsProtectPlayerListener playerListener = new EssentialsProtectPlayerListener(this);