diff options
author | aclement <aclement> | 2009-09-15 19:41:51 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-09-15 19:41:51 +0000 |
commit | ba4150af852e3d604f31619aaa01b4836358ca7a (patch) | |
tree | 3729caf50513152fb56957e74a879516c207e12d /taskdefs/src | |
parent | 6164d9b825a2d9a4e40245c6acccf2a9395a62dd (diff) | |
download | aspectj-ba4150af852e3d604f31619aaa01b4836358ca7a.tar.gz aspectj-ba4150af852e3d604f31619aaa01b4836358ca7a.zip |
124460 and refactoring
Diffstat (limited to 'taskdefs/src')
-rw-r--r-- | taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java | 27 |
1 files changed, 27 insertions, 0 deletions
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(); |