diff options
author | aclement <aclement> | 2005-11-08 11:14:45 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-08 11:14:45 +0000 |
commit | 481e39cf090c52f7a67956791adc82922ea8bf9f (patch) | |
tree | 9686597ec20b8a496741075436170b8aa870b0b6 /taskdefs/testsrc | |
parent | 6cb89d22cff49645245458802aef0b623c8b6c7c (diff) | |
download | aspectj-481e39cf090c52f7a67956791adc82922ea8bf9f.tar.gz aspectj-481e39cf090c52f7a67956791adc82922ea8bf9f.zip |
Second patch from 95516 (ant support for -outxml) - patch from Matthew
Diffstat (limited to 'taskdefs/testsrc')
-rw-r--r-- | taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java index fcc27eef1..7037fa89a 100644 --- a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java +++ b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java @@ -710,6 +710,31 @@ public class AjcTaskTest extends TestCase { } + public void testOutxml () { + File destDir = getTempDir(); + assertTrue( + "unable to create " + destDir, + destDir.canRead() || destDir.mkdirs()); + AjcTask task = getTask("showweaveinfo.lst",destDir); + task.setOutxml(true); + checkRun(task,null); + File outxmlFile = new File(destDir,"META-INF/aop.xml"); + assertTrue("META-INF/aop.xml missing",outxmlFile.exists()); + } + + public void testOutxmlFile () { + String customName = "custom/aop.xml"; + File destDir = getTempDir(); + assertTrue( + "unable to create " + destDir, + destDir.canRead() || destDir.mkdirs()); + AjcTask task = getTask("showweaveinfo.lst",destDir); + task.setOutxmlfile(customName); + checkRun(task,null); + File outxmlFile = new File(destDir,customName); + assertTrue(customName + " missing",outxmlFile.exists()); + } + protected void runTest( AjcTask task, Class exceptionType, |