diff --git a/.classpath b/.classpath index 4a78265c3..5b14275ee 100644 --- a/.classpath +++ b/.classpath @@ -1,6 +1,7 @@ + @@ -22,5 +23,5 @@ - + diff --git a/build.xml b/build.xml index 951ef511a..14637ffce 100644 --- a/build.xml +++ b/build.xml @@ -22,13 +22,15 @@ + - + + @@ -43,19 +45,31 @@ + + + + + - - - - + + + + + + + + + + + @@ -65,7 +79,8 @@ - + + @@ -74,6 +89,7 @@ + @@ -114,6 +130,7 @@ + @@ -165,6 +182,7 @@ + @@ -195,6 +213,7 @@ + @@ -211,6 +230,8 @@ + ${revision} + @@ -224,11 +245,12 @@ - + + - + diff --git a/gridworks b/gridworks index b21f668b3..47fa0fab9 100755 --- a/gridworks +++ b/gridworks @@ -138,6 +138,8 @@ get_revision() { INFO=`svn info` elif [ -d ".git" ]; then INFO=`git svn info` + elif [ -f ".revision" ]; then + REVISION=`cat .revision` else error "cannot obtain revision, exiting!" fi diff --git a/src/main/java/com/metaweb/gridworks/GridworksServlet.java b/src/main/java/com/metaweb/gridworks/GridworksServlet.java index d276a43f7..e19f613cc 100644 --- a/src/main/java/com/metaweb/gridworks/GridworksServlet.java +++ b/src/main/java/com/metaweb/gridworks/GridworksServlet.java @@ -127,7 +127,7 @@ public class GridworksServlet extends HttpServlet { super.init(); ProjectManager.initialize(); - + if (_timer == null) { _timer = new Timer(); } diff --git a/src/main/java/com/metaweb/gridworks/commands/edit/CreateProjectCommand.java b/src/main/java/com/metaweb/gridworks/commands/edit/CreateProjectCommand.java index fe6793674..be77288c5 100644 --- a/src/main/java/com/metaweb/gridworks/commands/edit/CreateProjectCommand.java +++ b/src/main/java/com/metaweb/gridworks/commands/edit/CreateProjectCommand.java @@ -193,7 +193,7 @@ public class CreateProjectCommand extends Command { } } } - Gridworks.log("Most frequent extensions: " + exts.toString()); + Gridworks.log("**** Most frequent extensions: " + exts.toString()); } else if (fileName.endsWith(".zip")) { diff --git a/src/main/java/com/metaweb/gridworks/Configurations.java b/src/server/java/com/metaweb/gridworks/Configurations.java similarity index 100% rename from src/main/java/com/metaweb/gridworks/Configurations.java rename to src/server/java/com/metaweb/gridworks/Configurations.java diff --git a/src/main/java/com/metaweb/gridworks/Gridworks.java b/src/server/java/com/metaweb/gridworks/Gridworks.java similarity index 95% rename from src/main/java/com/metaweb/gridworks/Gridworks.java rename to src/server/java/com/metaweb/gridworks/Gridworks.java index 395222092..93c2c3f6d 100644 --- a/src/main/java/com/metaweb/gridworks/Gridworks.java +++ b/src/server/java/com/metaweb/gridworks/Gridworks.java @@ -139,7 +139,6 @@ class GridworksServer extends Server { this.addConnector(connector); final File contextRoot = new File(Configurations.get("gridworks.webapp","webapp")); - final File classRoot = new File(Configurations.get("gridworks.classes","build/classes")); final String contextPath = Configurations.get("gridworks.context_path","/"); File webXml = new File(contextRoot, "WEB-INF/web.xml"); @@ -159,7 +158,7 @@ class GridworksServer extends Server { // Enable context autoreloading if (Configurations.getBoolean("gridworks.autoreloading",false)) { - scanForUpdates(contextRoot, classRoot, context); + scanForUpdates(contextRoot, context); } this.start(); @@ -178,14 +177,13 @@ class GridworksServer extends Server { } } - private void scanForUpdates(final File contextRoot, final File classRoot, final WebAppContext context) { + private void scanForUpdates(final File contextRoot, final WebAppContext context) { List scanList = new ArrayList(); scanList.add(new File(contextRoot, "WEB-INF/web.xml")); - findFiles(".class", new File(contextRoot, "WEB-INF"), scanList); - findFiles(".class", classRoot, scanList); + findFiles(".class", new File(contextRoot, "WEB-INF/classes"), scanList); - Gridworks.info("Starting autoreloading scanner... [class dir: " + classRoot.getAbsolutePath() + "]"); + Gridworks.info("Starting autoreloading scanner... "); Scanner scanner = new Scanner(); scanner.setScanInterval(Configurations.getInteger("gridworks.scanner.period",1)); diff --git a/src/main/java/com/metaweb/util/logging/IndentingLayout.java b/src/server/java/com/metaweb/util/logging/IndentingLayout.java similarity index 100% rename from src/main/java/com/metaweb/util/logging/IndentingLayout.java rename to src/server/java/com/metaweb/util/logging/IndentingLayout.java diff --git a/src/main/java/com/metaweb/util/signal/SignalHandler.java b/src/server/java/com/metaweb/util/signal/SignalHandler.java similarity index 100% rename from src/main/java/com/metaweb/util/signal/SignalHandler.java rename to src/server/java/com/metaweb/util/signal/SignalHandler.java diff --git a/src/main/java/com/metaweb/util/signal/SignalHandlerWrapper.java b/src/server/java/com/metaweb/util/signal/SignalHandlerWrapper.java similarity index 100% rename from src/main/java/com/metaweb/util/signal/SignalHandlerWrapper.java rename to src/server/java/com/metaweb/util/signal/SignalHandlerWrapper.java diff --git a/src/main/java/com/metaweb/util/threads/ThreadPoolExecutorAdapter.java b/src/server/java/com/metaweb/util/threads/ThreadPoolExecutorAdapter.java similarity index 100% rename from src/main/java/com/metaweb/util/threads/ThreadPoolExecutorAdapter.java rename to src/server/java/com/metaweb/util/threads/ThreadPoolExecutorAdapter.java