You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Eric Simmerman <er...@Tallan.com> on 2002/12/23 16:39:20 UTC
[PATCH] Add ajdoc goal to aspectj plugin
Index: plugin.jelly
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/plugins-build/aspectj/plugin.jelly,v
retrieving revision 1.2
diff -u -r1.2 plugin.jelly
--- plugin.jelly 18 Sep 2002 17:09:21 -0000 1.2
+++ plugin.jelly 22 Dec 2002 22:09:32 -0000
@@ -66,4 +66,47 @@
</goal>
+ <goal name="aspectj:ajdoc" description="Javadoc source using ajdoc">
+
+ <j:if test="${sourcesPresent == 'true'}">
+
+ <taskdef name="ajdoc" classname="org.aspectj.tools.ant.taskdefs.Ajdoc" />
+
+ <available property="aspectSourcesPresent"
+ file="${pom.build.aspectSourceDirectory}"/>
+
+ <ajdoc
+ packagenames="${pom.package}.*"
+ destdir="${maven.javadoc.destdir}"
+ author="${maven.javadoc.author}"
+ private="${maven.javadoc.private}"
+ version="${maven.javadoc.version}"
+ use="${maven.javadoc.use}"
+ windowtitle="${title}"
+ doctitle="${title}"
+ bottom="${copyright}"
+ stylesheetfile="${maven.javadoc.stylesheet}">
+
+ <j:forEach var="link" items="${links}">
+ <link href="${link.trim()}"/>
+ </j:forEach>
+ <classpath>
+ <path refid="maven.dependency.classpath"/>
+ <path location="${maven.build.dest}"/>
+ <pathelement path="${plugin.getDependencyPath('aspectj:aspectjrt')}"/>
+ </classpath>
+
+ <sourcepath>
+ <path refid="maven.compile.src.set"/>
+ <j:if test="${aspectSourcesPresent == 'true'}">
+ <pathelement location="${pom.build.aspectSourceDirectory}"/>
+ </j:if>
+ </sourcepath>
+
+ </ajdoc>
+
+ </j:if>
+
+ </goal>
+
</project>