diff --git a/utilities/buildutils/revisioninfo/edu/cornell/mannlib/vitro/utilities/revisioninfo/InfoResponseParser.java b/utilities/buildutils/revisioninfo/edu/cornell/mannlib/vitro/utilities/revisioninfo/InfoResponseParser.java
index dfaeb8a33..ff3a67f32 100644
--- a/utilities/buildutils/revisioninfo/edu/cornell/mannlib/vitro/utilities/revisioninfo/InfoResponseParser.java
+++ b/utilities/buildutils/revisioninfo/edu/cornell/mannlib/vitro/utilities/revisioninfo/InfoResponseParser.java
@@ -87,7 +87,7 @@ public class InfoResponseParser {
}
private boolean isTrunkPath() {
- return path.equals(TRUNK_PREFIX);
+ return path.startsWith(TRUNK_PREFIX);
}
private boolean isTagPath() {
@@ -95,7 +95,7 @@ public class InfoResponseParser {
}
private String getTagName() {
- return path.substring(TAGS_PREFIX.length());
+ return getFirstLevel(discardPrefix(path, TAGS_PREFIX));
}
private boolean isBranchPath() {
@@ -103,7 +103,24 @@ public class InfoResponseParser {
}
private String getBranchName() {
- return path.substring(BRANCHES_PREFIX.length());
+ return getFirstLevel(discardPrefix(path, BRANCHES_PREFIX));
+ }
+
+ private String discardPrefix(String string, String prefix) {
+ if (string.length() < prefix.length()) {
+ return "";
+ } else {
+ return string.substring(prefix.length());
+ }
+ }
+
+ private String getFirstLevel(String string) {
+ int slashHere = string.indexOf('/');
+ if (slashHere == -1) {
+ return string;
+ } else {
+ return string.substring(0, slashHere);
+ }
}
}
diff --git a/webapp/build.xml b/webapp/build.xml
index 304f634e4..461cee705 100644
--- a/webapp/build.xml
+++ b/webapp/build.xml
@@ -254,10 +254,48 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
+
+
+
+
+
+
+
+
+
+
+ ${revisionInfo.timestamp}
+
+
+
+
+
+
+
+
+
+
+ ${revisionInfo.outputLine}
+
+
+
-
+
diff --git a/webapp/product-build.xml b/webapp/product-build.xml
index 9c1d99d5d..c9118402a 100644
--- a/webapp/product-build.xml
+++ b/webapp/product-build.xml
@@ -181,20 +181,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${revisionInfo.outputLine}
+
+
-
+
-
+