From: aclement Date: Wed, 26 Apr 2006 07:25:49 +0000 (+0000) Subject: rons patch for 138540 X-Git-Tag: V1_5_2rc1~178 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99882cb91a94c468c185cf11cd6a728604e95bdb;p=aspectj.git rons patch for 138540 --- diff --git a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java index 47b9ca66f..86434732f 100644 --- a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java +++ b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java @@ -784,7 +784,8 @@ public class AjcTask extends MatchingTask { while (tokens.hasMoreTokens()) { String token = tokens.nextToken().trim(); if (1 < token.length()) { - if (VALID_XOPTIONS.contains(token)) { + // new special case: allow -Xset:anything + if (VALID_XOPTIONS.contains(token) || token.indexOf("set:")==0) { cmd.addFlag("-X" + token, true); } else { ignore("-X" + token);