From ba4150af852e3d604f31619aaa01b4836358ca7a Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 15 Sep 2009 19:41:51 +0000 Subject: [PATCH] 124460 and refactoring --- .../aspectj/tools/ant/taskdefs/AjcTask.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java index e22fc9a85..13c9dec93 100644 --- a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java +++ b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java @@ -320,6 +320,7 @@ public class AjcTask extends MatchingTask { private Path extdirs; private Path aspectpath; private Path argfiles; + private Path inxmlfiles; private List ignored; private Path sourceRoots; private File xweaveDir; @@ -390,6 +391,7 @@ public class AjcTask extends MatchingTask { adapterArguments = null; adapterFiles = new ArrayList(); argfiles = null; + inxmlfiles= null; executing = false; aspectpath = null; bootclasspath = null; @@ -994,6 +996,21 @@ public class AjcTask extends MatchingTask { return argfiles.createPath(); } + public void setInxmlref(Reference ref) { + createArgfiles().setRefid(ref); + } + + public void setInxml(Path path) { // ajc-only eajc-also docDone + inxmlfiles = incPath(inxmlfiles, path); + } + + public Path createInxml() { + if (inxmlfiles == null) { + inxmlfiles = new Path(project); + } + return inxmlfiles.createPath(); + } + // ------------------------------ run /** @@ -1437,6 +1454,16 @@ public class AjcTask extends MatchingTask { } } } + if (inxmlfiles != null) { + String[] files = inxmlfiles.list(); + for (int i = 0; i < files.length; i++) { + File inxmlfile = project.resolveFile(files[i]); + if (check(inxmlfile, files[i], false, location)) { + list.add("-xmlConfigured"); + list.add(inxmlfile.getAbsolutePath()); + } + } + } if (srcdir != null) { // todo: ignore any srcdir if any argfiles and no explicit includes String[] dirs = srcdir.list(); -- 2.39.5