mvdb 2003/01/19 14:33:33
Modified: scratchpad/localcheck/src/java/org/apache/gump
LocalCheck.java
Log:
Adding the module url to the output, this way you don't have to dig into the project
xml files at all..
Revision Changes Path
1.2 +10 -4
jakarta-gump/scratchpad/localcheck/src/java/org/apache/gump/LocalCheck.java
Index: LocalCheck.java
===================================================================
RCS file:
/home/cvs/jakarta-gump/scratchpad/localcheck/src/java/org/apache/gump/LocalCheck.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- LocalCheck.java 19 Jan 2003 22:22:10 -0000 1.1
+++ LocalCheck.java 19 Jan 2003 22:33:33 -0000 1.2
@@ -139,6 +139,7 @@
}
doc = parse(projectFile);
ArrayList list = getJars(doc, name);
+ String moduleURL = getModuleURL(doc);
boolean error = false;
for (int i = 0; i < list.size(); i++) {
String jar = (String) list.get(i);
@@ -146,6 +147,7 @@
if (!new File(jarFile).exists()) {
if (!error) {
System.out.println("Problems encountered in project "+name);
+ System.out.println("You can get updates at "+moduleURL);
error = true;
}
System.out.println(" cannot find "+jarFile);
@@ -157,6 +159,10 @@
ok = false;
}
return ok;
+ }
+
+ private String getModuleURL(Document doc) {
+ return
((Element)doc.getElementsByTagName("url").item(0)).getAttribute("href");
}
private ArrayList getJars(Document doc, String name) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>