Index: aspectj-15/plugin.jelly =================================================================== RCS file: /home/cvspublic/maven-plugins/aspectj/plugin.jelly,v retrieving revision 1.23 diff -a -u -r1.23 plugin.jelly --- aspectj-15/plugin.jelly 3 Oct 2004 19:30:14 -0000 1.23 +++ aspectj-15/plugin.jelly 16 Dec 2004 15:11:41 -0000 @@ -206,12 +206,22 @@ description="Weave classes with AspectJ"> + + + + + + + + + + + destDir="${maven.aspectj.dest}"/> Index: aspectj-15/plugin.properties =================================================================== RCS file: /home/cvspublic/maven-plugins/aspectj/plugin.properties,v retrieving revision 1.8 diff -a -u -r1.8 plugin.properties --- aspectj-15/plugin.properties 3 Oct 2004 19:30:14 -0000 1.8 +++ aspectj-15/plugin.properties 16 Dec 2004 15:11:41 -0000 @@ -69,4 +69,6 @@ # Level of language usage messages. Possible values are error, warning and ignore maven.aspectj.lint=warning +# The directory for compiled classes. By default maven.build.dest used. +#maven.aspectj.dest= Index: aspectj-15/src/plugin-test/project.properties =================================================================== RCS file: /home/cvspublic/maven-plugins/aspectj/src/plugin-test/project.properties,v retrieving revision 1.2 diff -a -u -r1.2 project.properties --- aspectj-15/src/plugin-test/project.properties 13 May 2004 12:08:12 -0000 1.2 +++ aspectj-15/src/plugin-test/project.properties 16 Dec 2004 15:11:42 -0000 @@ -13,4 +13,5 @@ # See the License for the specific language governing permissions and # limitations under the License. # ------------------------------------------------------------------- -maven.junit.fork=true \ No newline at end of file +maven.junit.fork=true +maven.aspectj.dest=target/test-classes \ No newline at end of file Index: aspectj-15/src/plugin-test/src/test/org/apache/maven/aspectj/AspectTest.java =================================================================== RCS file: /home/cvspublic/maven-plugins/aspectj/src/plugin-test/src/test/org/apache/maven/aspectj/AspectTest.java,v retrieving revision 1.3 diff -a -u -r1.3 AspectTest.java --- aspectj-15/src/plugin-test/src/test/org/apache/maven/aspectj/AspectTest.java 3 Oct 2004 19:30:14 -0000 1.3 +++ aspectj-15/src/plugin-test/src/test/org/apache/maven/aspectj/AspectTest.java 16 Dec 2004 15:11:42 -0000 @@ -18,6 +18,9 @@ */ import junit.framework.TestCase; +import java.util.Enumeration; +import java.net.URL; + public class AspectTest extends TestCase { @@ -59,7 +62,22 @@ assertEquals(EXCEPTION_MESSAGE, expected.getMessage()); } } - + + public void testTestDest() throws Exception + { + Enumeration enum = getClass().getClassLoader().getResources("org/apache/maven/aspectj/TestA.class"); + String testFile = getClass().getClassLoader().getResource("org/apache/maven/aspectj/AspectTest.class").getFile(); + int count = 0; + //check that aspect TestA placed only in the same folder that AspectTest + while (enum.hasMoreElements()){ + URL aspectURL = (URL)enum.nextElement(); + assertEquals(aspectURL.getFile().substring(0, aspectURL.getFile().indexOf("/TestA.class")), + testFile.substring(0, testFile.indexOf("/AspectTest.class"))); + count ++; + } + assertEquals(1, count); + } + public void someMethod() { }