Got the maven build and execution script completely working. Removed support for javascript.

parent 9153a679
......@@ -3,3 +3,5 @@ target/
.project
.settings
site
resources/fakedb/fakedb.data.CM*
*.log
......@@ -100,6 +100,12 @@
<artifactId>jzlib</artifactId>
<version>1.0.7</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
</dependencies>
<build>
......@@ -148,6 +154,24 @@
<skipExistingHeaders>false</skipExistingHeaders>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.planet_ink.coffee_mud.application.MUD</mainClass>
<arguments>
<argument>DefaultMUD</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
......
......@@ -581,7 +581,7 @@ public class Destroy extends StdCommand {
final String oldRID = R.ID();
CMClass.delRace(R);
CMLib.database().DBDeleteRace(R.ID());
CMClass.loadClass(CMObjectType.RACE, "com/planet_ink/coffee_mud/Races/" + oldRID + ".class", true);
CMClass.loadClass(CMObjectType.RACE, "target/classes/com/planet_ink/coffee_mud/Races/" + oldRID + ".class", true);
Race oldR = CMClass.getRace(oldRID);
if (oldR == null)
oldR = CMClass.getRace("StdRace");
......@@ -681,7 +681,7 @@ public class Destroy extends StdCommand {
CMClass.delCharClass(C);
CMLib.database().DBDeleteClass(C.ID());
final String oldCID = C.ID();
CMClass.loadClass(CMObjectType.CHARCLASS, "com/planet_ink/coffee_mud/CharClasses/" + oldCID + ".class", true);
CMClass.loadClass(CMObjectType.CHARCLASS, "target/classes/com/planet_ink/coffee_mud/CharClasses/" + oldCID + ".class", true);
CharClass oldC = CMClass.getCharClass(oldCID);
if (oldC == null)
oldC = CMClass.getCharClass("StdCharClass");
......
......@@ -321,7 +321,7 @@ public class CMProtocols extends StdLibrary implements ProtocolLibrary {
if (mcpPackages == null) {
mcpPackages = new Hashtable<String, MCPPackage>();
List<MCPPackage> pkgs = new ArrayList<MCPPackage>();
if (CMClass.loadObjectListToObj(pkgs, "com/planet_ink/coffee_mud/Libraries/mcppkgs/", CMProps.instance().getStr("MCPPACKAGES"), "com.planet_ink.coffee_mud.Libraries.interfaces.ProtocolLibrary$MCPPackage")) {
if (CMClass.loadObjectListToObj(pkgs, "src/man/java/com/planet_ink/coffee_mud/Libraries/mcppkgs/", CMProps.instance().getStr("MCPPACKAGES"), "com.planet_ink.coffee_mud.Libraries.interfaces.ProtocolLibrary$MCPPackage")) {
for (MCPPackage pkg : pkgs) {
mcpPackages.put(pkg.packageName(), pkg);
}
......
......@@ -171,7 +171,7 @@ public class MUDPercolator extends StdLibrary implements AreaGenerationLibrary {
@Override
@SuppressWarnings("unchecked")
public boolean activate() {
final String filePath = "com/planet_ink/coffee_mud/Libraries/layouts";
final String filePath = "src/man/java/com/planet_ink/coffee_mud/Libraries/layouts";
final CMProps page = CMProps.instance();
final Vector<Object> layouts = CMClass.loadClassList(filePath, page.getStr("LIBRARY"), "/layouts", LayoutManager.class, true);
for (int f = 0; f < layouts.size(); f++) {
......
......@@ -731,7 +731,7 @@ public class MUDGrinder extends StdWebMacro {
final String oldRID = R.ID();
CMClass.delRace(R);
CMLib.database().DBDeleteRace(R.ID());
CMClass.loadClass(CMObjectType.RACE, "com/planet_ink/coffee_mud/Races/" + oldRID + ".class", true);
CMClass.loadClass(CMObjectType.RACE, "target/classes/com/planet_ink/coffee_mud/Races/" + oldRID + ".class", true);
Race oldR = CMClass.getRace(oldRID);
if (oldR == null)
oldR = CMClass.getRace("StdRace");
......@@ -791,7 +791,7 @@ public class MUDGrinder extends StdWebMacro {
final String oldCID = C.ID();
CMClass.delCharClass(C);
CMLib.database().DBDeleteClass(C.ID());
CMClass.loadClass(CMObjectType.CHARCLASS, "com/planet_ink/coffee_mud/CharClasses/" + oldCID + ".class", true);
CMClass.loadClass(CMObjectType.CHARCLASS, "target/classes/com/planet_ink/coffee_mud/CharClasses/" + oldCID + ".class", true);
CharClass oldC = CMClass.getCharClass(oldCID);
if (oldC == null)
oldC = CMClass.getCharClass("StdCharClass");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment