Update of /cvsroot/javadocbook/javadocbook/src/net/sf/javadocbook
In directory usw-pr-cvs1:/tmp/cvs-serv13884
Modified Files:
Main.java
Log Message:
In the middle of converting over to use Jakarta Commons CLI.
Index: Main.java
===================================================================
RCS file: /cvsroot/javadocbook/javadocbook/src/net/sf/javadocbook/Main.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** Main.java 28 May 2002 16:10:56 -0000 1.12
--- Main.java 22 Jun 2002 19:00:11 -0000 1.13
***************
*** 51,55 ****
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
!
/**
--- 51,55 ----
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
! import org.apache.commons.cli.Options;
/**
***************
*** 136,140 ****
String styleSheet = HTML_STYLE_SHEET;
! try {
// Parse through command line options.
for(int i = 0; i < args.length; i++) {
--- 136,140 ----
String styleSheet = HTML_STYLE_SHEET;
! /* try {
// Parse through command line options.
for(int i = 0; i < args.length; i++) {
***************
*** 177,180 ****
--- 177,189 ----
return;
}
+ */
+
+ Options options = new Options();
+ options.addOption('t', "type", true, "Possible types, list them.");
+ options.addOption('o', "output", true, "File to write output to.");
+ options.addOption('f', "force", false, "Force recreation of output file. If the output file exists and is"
+ + "newer than the source XML file, nothing happens unless this option is"
+ + "used.");
+ options.addOption(
InputStream in;
***************
*** 213,216 ****
--- 222,228 ----
/*
* $Log$
+ * Revision 1.13 2002/06/22 19:00:11 heathm
+ * In the middle of converting over to use Jakarta Commons CLI.
+ *
* Revision 1.12 2002/05/28 16:10:56 heathm
* [560292] Added friendly error message when a file is not found.
|