diff options
-rw-r--r-- | taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java | 3 | ||||
-rw-r--r-- | taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java index f0cd6087c..c049aee5f 100644 --- a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java +++ b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java @@ -255,7 +255,8 @@ public class AjcTask extends MatchingTask { static { String[] xs = new String[] - { "serializableAspects", "incrementalFile", "lazyTjp" + { "serializableAspects", "incrementalFile", "lazyTjp", + "reweavable", "reweavable:compress", "noInline" //, "targetNearSource", "OcodeSize", }; VALID_XOPTIONS = Collections.unmodifiableList(Arrays.asList(xs)); diff --git a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java index 42feeb5a7..96618a708 100644 --- a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java +++ b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java @@ -521,6 +521,23 @@ public class AjcTaskTest extends TestCase { runTest(task, NO_EXCEPTION, MessageHolderChecker.INFOS); } + public void testXOptions() { + String[] xopts = new String[] { + "serializableAspects", + "lazyTjp", + "reweavable", + "reweavable:compress", + "noInline" + }; + for (int i = 0; i < xopts.length; i++) { + AjcTask task = getTask(NOFILE); + task.setX(xopts[i]); + String[] cmd = task.makeCommand(); + checkContains(cmd,"-X" + xopts[i],true); + } + + } + protected void runTest( AjcTask task, Class exceptionType, |