Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser
In directory sc8-pr-cvs1:/tmp/cvs-serv23601/htmlparser/src/org/htmlparser
Modified Files:
Parser.java
Log Message:
Provide for automatic changelog generation. A changeLog target was added to the build.xml file.
The static version stuff in Parser was reworked to allow picking out the previous integration date.
The getVersion() method was made static.
The getVersionNumber() method was added to clean up some uglies.
Index: Parser.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/Parser.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** Parser.java 16 May 2003 11:38:38 -0000 1.38
--- Parser.java 18 May 2003 09:41:51 -0000 1.39
***************
*** 136,145 ****
Serializable
{
! // Please don't change the formatting of the VERSION_STRING
! // below. This is done so as to facilitate the ant script
! public final static java.lang.String
! VERSION_STRING="1.3 (Integration Build May 11, 2003)"
;
! // End of formatting
/**
--- 136,171 ----
Serializable
{
! // Please don't change the formatting of the version variables below.
! // This is done so as to facilitate ant script processing.
!
! /**
! * The floating point version number.
! */
! public final static double
! VERSION_NUMBER = 1.3
! ;
!
! /**
! * The type of version.
! */
! public final static String
! VERSION_TYPE = "Integration Build"
! ;
!
! /**
! * The date of the version.
! */
! public final static String
! VERSION_DATE = "May 11, 2003"
! ;
!
! /**
! * The display version.
! */
! public final static String
! VERSION_STRING = "" + VERSION_NUMBER + " (" + VERSION_TYPE + " " + VERSION_DATE + ")"
;
!
! // End of formatting
/**
***************
*** 204,207 ****
--- 230,234 ----
private ParserHelper parserHelper = new ParserHelper();
+
//
// Static methods
***************
*** 216,219 ****
--- 243,268 ----
}
+ /**
+ * Return the version string of this parser.
+ * @return A string of the form:
+ * <pre>
+ * "[floating point number] ([build-type] [build-date])"
+ * </pre>
+ */
+ public static String getVersion ()
+ {
+ return (VERSION_STRING);
+ }
+
+ /**
+ * Return the version number of this parser.
+ * @return A floating point number, the whole number part is the major
+ * version, and the fractional part is the minor version.
+ */
+ public static double getVersionNumber ()
+ {
+ return (VERSION_NUMBER);
+ }
+
//
// Constructors
***************
*** 384,399 ****
// Bean patterns
//
-
- /**
- * Return the version string of this parser.
- * @return A string of the form:
- * <pre>
- * "[floating point number] [description]"
- * </pre>
- */
- public String getVersion ()
- {
- return (VERSION_STRING);
- }
/**
--- 433,436 ----
|