sbailliez 02/02/23 05:45:39
Modified: src/java/org/apache/maven/jrcs/rcs ArchiveParser.jj
Log:
Remove previous license and apply Turbine coding style
Revision Changes Path
1.4 +31 -34
jakarta-turbine-maven/src/java/org/apache/maven/jrcs/rcs/ArchiveParser.jj
Index: ArchiveParser.jj
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/jrcs/rcs/ArchiveParser.jj,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ArchiveParser.jj 20 Feb 2002 22:07:46 -0000 1.3
+++ ArchiveParser.jj 23 Feb 2002 13:45:39 -0000 1.4
@@ -1,8 +1,7 @@
-
/* ====================================================================
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2001 The Apache Software Foundation. All rights
+ * Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -79,28 +78,12 @@
PARSER_BEGIN(ArchiveParser)
-/** $Id: ArchiveParser.jj,v 1.3 2002/02/20 22:07:46 juanco Exp $
- *
- * RCS for Java(tm)
- * Copiright (c) 1999 Juancarlo A�ez.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
package org.apache.maven.jrcs.rcs;
-import java.util.*;
+import java.util.Map;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.InputStream;
class ArchiveParser {
@@ -108,18 +91,26 @@
public static void main(String args[]) {
ArchiveParser parser;
- if (args.length == 0) {
+ if (args.length == 0)
+ {
System.out.println(ident + " Reading from standard input . . .");
parser = new ArchiveParser(System.in);
- } else if (args.length == 1) {
+ }
+ else if (args.length == 1)
+ {
System.out.println(ident + " Reading from file " + args[0] + " . . .");
- try {
- parser = new ArchiveParser(new java.io.FileInputStream(args[0]));
- } catch (java.io.FileNotFoundException e) {
+ try
+ {
+ parser = new ArchiveParser(new FileInputStream(args[0]));
+ }
+ catch (java.io.FileNotFoundException e)
+ {
System.out.println(ident + " File " + args[0] + " not found.");
return;
}
- } else {
+ }
+ else
+ {
System.out.println(ident+" Usage is one of:");
System.out.println(" java ArchiveParser < inputfile");
System.out.println("OR");
@@ -129,20 +120,26 @@
parser.parse();
}
- public static void load(Archive arc, java.io.InputStream input) throws
ParseException {
+ public static void load(Archive arc, InputStream input) throws ParseException
+ {
ArchiveParser parser = new ArchiveParser(input);
parser.archive(arc);
}
- public static void load(Archive arc, String fname) throws
java.io.FileNotFoundException, ParseException {
- load(arc, new java.io.FileInputStream(fname) );
+ public static void load(Archive arc, String fname) throws FileNotFoundException,
ParseException
+ {
+ load(arc, new FileInputStream(fname) );
}
- public void parse() {
- try {
+ public void parse()
+ {
+ try
+ {
archive(null);
System.out.println("RCS ArchiveParser Parser version 1.1: RCS ArchiveParser
parsed successfully.");
- } catch (ParseException e) {
+ }
+ catch (ParseException e)
+ {
System.out.println("RCS ArchiveParser Parser version 1.1: Encountered errors
during parse.");
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>