From 917a3a70f5c09f16151200f13eb89283c4bb2abf Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 23 May 2006 12:14:07 +0000 Subject: [PATCH] expose -Xjoinpoints: from Ant --- taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java index 19b440f55..53d464a2a 100644 --- a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java +++ b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java @@ -510,6 +510,11 @@ public class AjcTask extends MatchingTask { cmd.addFlag("-Xreweavable",reweavable); } + + public void setXJoinpoints(String optionalJoinpoints) { + cmd.addFlag("-Xjoinpoints:"+optionalJoinpoints,true); + } + public void setXNoWeave(boolean b) { if (logger!=null) logger.warning("the noweave option is no longer required and is being ignored"); } @@ -785,7 +790,8 @@ public class AjcTask extends MatchingTask { String token = tokens.nextToken().trim(); if (1 < token.length()) { // new special case: allow -Xset:anything - if (VALID_XOPTIONS.contains(token) || token.indexOf("set:")==0) { + if (VALID_XOPTIONS.contains(token) || token.indexOf("set:")==0 || + token.indexOf("joinpoints:")==0) { cmd.addFlag("-X" + token, true); } else { ignore("-X" + token); -- 2.39.5