Index: settings/taskdefs.xml
===================================================================
--- settings/taskdefs.xml (revision 29462)
+++ settings/taskdefs.xml (working copy)
@@ -208,7 +208,11 @@
-
+
+
+
Index: src/org/kepler/build/StatusModules.java
===================================================================
--- src/org/kepler/build/StatusModules.java (revision 29462)
+++ src/org/kepler/build/StatusModules.java (working copy)
@@ -24,12 +24,15 @@
*/
package org.kepler.build;
+import java.io.File;
+
import org.kepler.build.modules.Module;
import org.kepler.build.modules.ModulesTask;
+import org.kepler.build.project.ProjectLocator;
import org.kepler.build.util.CommandLine;
/**
- * A class to run svn status in each module directory.
+ * A class to run svn status in each module directory and the build-area.
*
* @author Daniel Crawl
* @version $Id$
@@ -47,6 +50,14 @@
module.getDir().getAbsolutePath()};
CommandLine.exec(statusCommand);
}
+
+ // build-area isn't in modules.txt
+ File buildDir = ProjectLocator.shouldUtilizeUserKeplerModules()
+ ? ProjectLocator.getUserBuildDir()
+ : ProjectLocator.getBuildDir();
+ String[] statusCommand = {"svn", "stat",
+ buildDir.getAbsolutePath()};
+ CommandLine.exec(statusCommand);
}
}
Index: src/org/kepler/build/DiffModules.java
===================================================================
--- src/org/kepler/build/DiffModules.java (revision 0)
+++ src/org/kepler/build/DiffModules.java (revision 0)
@@ -0,0 +1,64 @@
+/* Based on StatusModules */
+/*
+ * Copyright (c) 2009 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the above
+ * copyright notice and the following two paragraphs appear in all copies
+ * of this software.
+ *
+ * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
+ * FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
+ * THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
+ * PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
+ * CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
+ * ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ */
+package org.kepler.build;
+
+import java.io.File;
+
+import org.kepler.build.modules.Module;
+import org.kepler.build.modules.ModulesTask;
+import org.kepler.build.project.ProjectLocator;
+import org.kepler.build.util.CommandLine;
+
+/**
+ * A class to run svn status in each module directory and the build-area.
+ *
+ * @author Daniel Crawl
+ * @version $Id: StatusModules.java 26441 2010-12-08 02:28:20Z welker $
+ */
+public class DiffModules extends ModulesTask
+{
+ /**
+ * run the task
+ */
+ public void run() throws Exception
+ {
+ for (Module module : moduleTree)
+ {
+ String[] diffCommand = {"svn", "diff",
+ module.getDir().getAbsolutePath()};
+ CommandLine.exec(diffCommand);
+ }
+
+ // build-area isn't in modules.txt
+ File buildDir = ProjectLocator.shouldUtilizeUserKeplerModules()
+ ? ProjectLocator.getUserBuildDir()
+ : ProjectLocator.getBuildDir();
+ String[] diffCommand = {"svn", "diff",
+ buildDir.getAbsolutePath()};
+ CommandLine.exec(diffCommand);
+ }
+
+}
Index: build.xml
===================================================================
--- build.xml (revision 29462)
+++ build.xml (working copy)
@@ -163,10 +163,14 @@
-
+
+
+
+
+