diff options
author | aclement <aclement> | 2007-02-19 11:22:02 +0000 |
---|---|---|
committer | aclement <aclement> | 2007-02-19 11:22:02 +0000 |
commit | 3e8e5250e011d25027daf825d21ae55aabe62606 (patch) | |
tree | f2bd3e8ed23dbd7238c69a562ac4e0ba7102ef27 /taskdefs/testsrc | |
parent | 4177bedfe6e1fe4240fddb7de6b9eaed38b9f0cf (diff) | |
download | aspectj-3e8e5250e011d25027daf825d21ae55aabe62606.tar.gz aspectj-3e8e5250e011d25027daf825d21ae55aabe62606.zip |
168795: reactivating ajdoc task
Diffstat (limited to 'taskdefs/testsrc')
-rw-r--r-- | taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjdocTest.java | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjdocTest.java b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjdocTest.java index d73c8ee1a..4527c6c9f 100644 --- a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjdocTest.java +++ b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjdocTest.java @@ -14,6 +14,7 @@ package org.aspectj.tools.ant.taskdefs; import org.apache.tools.ant.Project; +import org.apache.tools.ant.types.Path; import java.io.File; @@ -34,21 +35,22 @@ public class AjdocTest extends TestCase { Ajdoc task = new Ajdoc(); Project p = new Project(); task.setProject(p); - // XXX restore when ajdoc is restored -// task.setSource("1.4"); -// task.setSourcepath(new Path(p, "testdata")); -// task.setIncludes("Ajdoc14Source.java"); -// task.setDestdir("bin/AjdocTest"); -// task.setClasspath(new Path(p, "../lib/test/aspectjrt.jar")); + task.setSource("1.4"); + Path ppath = new Path(p,"../taskdefs/testdata"); + task.setSourcepath(ppath); + task.setIncludes("Ajdoc14Source.java"); + task.setDestdir("bin/AjdocTest"); + task.setClasspath(new Path(p, "../lib/test/aspectjrt.jar")); + task.execute(); + } + + public void testHelp() { + Ajdoc task = new Ajdoc(); + Project p = new Project(); + task.setProject(p); + task.setSourcepath(new Path(p, "../taskdefs/testdata")); + task.setIncludes("none"); + task.setDestdir("bin/AjdocTest"); task.execute(); } -// public void testHelp() { -// Ajdoc task = new Ajdoc(); -// Project p = new Project(); -// task.setProject(p); -// task.setSourcepath(new Path(p, "testdata")); -// task.setIncludes("none"); -// task.setDestdir("bin/AjdocTest"); -// task.execute(); -// } } |