You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by ab...@locus.apache.org on 2000/07/06 02:47:44 UTC
cvs commit: xml-stylebook/src/org/apache/stylebook StyleBook.java
abagchi 00/07/05 17:47:44
Modified: src/org/apache/stylebook StyleBook.java
Log:
Does not use System.exit() call inside Main, enables running within same JVM in Ant
Revision Changes Path
1.5 +6 -5 xml-stylebook/src/org/apache/stylebook/StyleBook.java
Index: StyleBook.java
===================================================================
RCS file: /home/cvs/xml-stylebook/src/org/apache/stylebook/StyleBook.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- StyleBook.java 1999/12/01 14:21:27 1.4
+++ StyleBook.java 2000/07/06 00:47:38 1.5
@@ -16,12 +16,12 @@
import java.util.Properties;
/**
- *
*
+ *
* @author <a href="mailto:pier@apache.org">Pierpaolo Fumagalli</a>
* @author Copyright 1999 © <a href="http://www.apache.org">The Apache
* Software Foundation</a>. All rights reserved.
- * @version CVS $Revision: 1.4 $ $Date: 1999/12/01 14:21:27 $
+ * @version CVS $Revision: 1.5 $ $Date: 2000/07/06 00:47:38 $
*/
public class StyleBook implements Logger {
/** The project on wich we must operate */
@@ -41,10 +41,10 @@
ClassLoader loader=this.getClass().getClassLoader();
InputStream in=loader.getResourceAsStream(propertiesfile);
this.properties.load(in);
-
+
String project=null;
String style=null;
-
+
for(int x=0;x<argv.length;x++) {
String line=argv[x];
int pos=line.indexOf('=');
@@ -98,7 +98,8 @@
} catch (Exception x) {
exit(x,255);
}
- exit("All done successfully",0);
+ // exit("All done successfully",0);
+ log("All done successfully");
}
/** Create and Initialize Engine */