diff options
author | wisberg <wisberg> | 2005-02-11 05:05:03 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-02-11 05:05:03 +0000 |
commit | ed0ceb76f0e86109035a3328427bac4a4d9da983 (patch) | |
tree | 18bb4e05b85c3b7d18eb11c71679e9180adfe3d9 /build | |
parent | c92e64aa1f9d9dafb3de78f974ceaa46c81a9730 (diff) | |
download | aspectj-ed0ceb76f0e86109035a3328427bac4a4d9da983.tar.gz aspectj-ed0ceb76f0e86109035a3328427bac4a4d9da983.zip |
Constants
Diffstat (limited to 'build')
-rw-r--r-- | build/src/org/aspectj/internal/tools/build/Util.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build/src/org/aspectj/internal/tools/build/Util.java b/build/src/org/aspectj/internal/tools/build/Util.java index a8d1d2681..563a5c195 100644 --- a/build/src/org/aspectj/internal/tools/build/Util.java +++ b/build/src/org/aspectj/internal/tools/build/Util.java @@ -26,6 +26,21 @@ import java.io.StringWriter; * Many mirror utils module APIs. */ public class Util { + public static class Constants { + public static final String TESTSRC = "testsrc"; + public static final String JAVA5_SRC = "java5-src"; + } + // XXX quick hack for Java 5 support + public static final boolean JAVA5_VM; + static { + boolean java5VM = false; + try { + java5VM = (null != Class.forName("java.lang.annotation.Annotation")); + } catch (Throwable t) { + // ignore + } + JAVA5_VM = java5VM; + } /** * Map version in long form to short, |