diff options
author | wisberg <wisberg> | 2002-12-23 20:49:34 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2002-12-23 20:49:34 +0000 |
commit | 8ab3779b82f0d4c3b0f288dab98460373557dc51 (patch) | |
tree | 61ae8f0e21f844a3df67857c771526248324c287 /bridge | |
parent | 7c43b113149667d26dab2ab2fe71ffc8f916cc5a (diff) | |
download | aspectj-8ab3779b82f0d4c3b0f288dab98460373557dc51.tar.gz aspectj-8ab3779b82f0d4c3b0f288dab98460373557dc51.zip |
new default quotes DEVELOPMENT for scanner.
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/src/org/aspectj/bridge/Version.java | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/bridge/src/org/aspectj/bridge/Version.java b/bridge/src/org/aspectj/bridge/Version.java index 813346f21..b24fb7983 100644 --- a/bridge/src/org/aspectj/bridge/Version.java +++ b/bridge/src/org/aspectj/bridge/Version.java @@ -20,20 +20,24 @@ import java.util.Date; /** release-specific version information */ public class Version { + // generated from build/lib/BridgeVersion.java + /** default version value for development version */ public static final String DEVELOPMENT = "DEVELOPMENT"; + // VersionUptodate.java depends on this value /** default time value for development version */ public static final long NOTIME = 0L; /** set by build script */ - public static final String text = DEVELOPMENT; + public static final String text = "DEVELOPMENT"; + // VersionUptodate.java scans for "static final String text = " /** * Time text set by build script using SIMPLE_DATE_FORMAT. * (if DEVELOPMENT version, invalid) */ - public static final String time_text = "12/18/02 at 03:20:03 PST"; + public static final String time_text = ""; /** * time in seconds-since-... format, used by programmatic clients. @@ -58,6 +62,24 @@ public class Version { } time = foundTime; } + + /** + * Test whether the version is as specified by any first argument. + * Emit text to System.err on failure + * @param args String[] with first argument equal to Version.text + * @see Version#text + */ + public static void main(String[] args) { + if ((null != args) && (0 < args.length)) { + if (!Version.text.equals(args[0])) { + System.err.println("version expected: \"" + + args[0] + + "\" actual=\"" + + Version.text + + "\""); + } + } + } } |