diff options
-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, |