santiagopg 2002/09/17 08:58:33
Modified: java/src/org/apache/xalan/xsltc/cmdline Transform.java
Log:
Removed "-DIAG" option as it is similar to "-n 1". XSLTC's command line
options are single letters, so -DIAG does not really fit in the synopsis.
Morris K. is working on an extension for Xalan's Process class to allow
the compilation and execution of translets (once that work is completed
the -DIAG option will be available for XSLTC too).
Revision Changes Path
1.22 +2 -21
xml-xalan/java/src/org/apache/xalan/xsltc/cmdline/Transform.java
Index: Transform.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/cmdline/Transform.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- Transform.java 9 Sep 2002 16:46:49 -0000 1.21
+++ Transform.java 17 Sep 2002 15:58:33 -0000 1.22
@@ -311,9 +311,7 @@
boolean uri = false, debug = false;
boolean isJarFileSpecified = false;
String jarFile = null;
- boolean doDiag = false;
- long start=0;
- long stop=0;
+
// Parse options starting with '-'
for (i = 0; i < args.length && args[i].charAt(0) == '-'; i++) {
if (args[i].equals("-u")) {
@@ -340,9 +338,6 @@
// ignore
}
}
- else if ("-DIAG".equalsIgnoreCase(args[i])){
- doDiag = true;
- }
else {
printUsage();
}
@@ -372,21 +367,7 @@
if (i == args.length) {
handler.setParameters(params);
- if (doDiag) {
- start = System.currentTimeMillis();
- }
handler.doTransform();
- if (doDiag) {
- stop = System.currentTimeMillis();
- long millisecondsDuration = stop - start;
- String msg = "--------- Transform of "
- + handler.getFileName() + " via "
- + handler.getClassName() + " took "
- + millisecondsDuration + " ms";
- java.io.PrintWriter diagnosticsWriter =
- new PrintWriter(System.err,
true);
- diagnosticsWriter.println(msg);
- }
if (_allowExit) System.exit(0);
}
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]