Author: jjensen
Date: Thu Dec 28 20:12:46 2006
New Revision: 490917
URL: http://svn.apache.org/viewvc?view=rev&rev=490917
Log:
Add start of integration tips page.
Added:
maven/maven-1/plugins/trunk/aspectj/xdocs/integration.xml
Modified:
maven/maven-1/plugins/trunk/aspectj/project.xml
maven/maven-1/plugins/trunk/aspectj/xdocs/changes.xml
maven/maven-1/plugins/trunk/aspectj/xdocs/navigation.xml
Modified: maven/maven-1/plugins/trunk/aspectj/project.xml
URL:
http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/aspectj/project.xml?view=diff&rev=490917&r1=490916&r2=490917
==============================================================================
--- maven/maven-1/plugins/trunk/aspectj/project.xml (original)
+++ maven/maven-1/plugins/trunk/aspectj/project.xml Thu Dec 28 20:12:46 2006
@@ -105,6 +105,15 @@
</roles>
<timezone>-3</timezone>
</developer>
+ <developer>
+ <name>Jeff Jensen</name>
+ <id>jjensen</id>
+ <email>[EMAIL PROTECTED]</email>
+ <roles>
+ <role>Documentation</role>
+ </roles>
+ <timezone>-6</timezone>
+ </developer>
</developers>
<contributors>
<contributor>
Modified: maven/maven-1/plugins/trunk/aspectj/xdocs/changes.xml
URL:
http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/aspectj/xdocs/changes.xml?view=diff&rev=490917&r1=490916&r2=490917
==============================================================================
--- maven/maven-1/plugins/trunk/aspectj/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/aspectj/xdocs/changes.xml Thu Dec 28 20:12:46
2006
@@ -24,9 +24,13 @@
<author email="[EMAIL PROTECTED]">Vincent Massol</author>
<author email="[EMAIL PROTECTED]">Jason van Zyl</author>
<author email="[EMAIL PROTECTED]">Carlos Sanchez</author>
+ <author email="[EMAIL PROTECTED]">Jeff Jensen</author>
</properties>
<body>
<release version="4.1-SNAPSHOT" date="In SVN">
+ <action dev="jjensen" type="add">
+ Add Integration Tips page.
+ </action>
</release>
<release version="4.0" date="2006-04-26">
<action dev="ltheussl" type="add" issue="MPASPECTJ-15" due-to="Alexey
Dashkevich">New property
Added: maven/maven-1/plugins/trunk/aspectj/xdocs/integration.xml
URL:
http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/aspectj/xdocs/integration.xml?view=auto&rev=490917
==============================================================================
--- maven/maven-1/plugins/trunk/aspectj/xdocs/integration.xml (added)
+++ maven/maven-1/plugins/trunk/aspectj/xdocs/integration.xml Thu Dec 28
20:12:46 2006
@@ -0,0 +1,98 @@
+<?xml version="1.0"?>
+
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+
+<document>
+
+ <properties>
+ <title>Integration Tips</title>
+ <author email="[EMAIL PROTECTED]">Jeff Jensen</author>
+ </properties>
+
+ <body>
+ <section name="Using Cobertura">
+ <p>
+ The following are some tips on using
+ the AspectJ plugin with the Cobertura plugin.
+ Your mileage may vary. You may need to tweak them.
+ Please report any problems, improvements, alternatives,
+ and/or new ones to the user list.
+ </p>
+ <subsection name="Multiple Source Directories">
+ <p>
+ Add this to the maven.xml file.
+ </p>
+<source><![CDATA[
+<preGoal name="test:test">
+ <attainGoal name ="cobertura:on"/>
+</preGoal>
+
+<postGoal name="test:test">
+ <attainGoal name ="cobertura:off"/>
+</postGoal>
+
+<preGoal name="cobertura:report">
+ <attainGoal name="set-java-compile-src-set"/>
+</preGoal>
+
+<preGoal name="java:compile">
+ <attainGoal name="set-java-compile-src-set"/>
+</preGoal>
+
+<goal name="set-java-compile-src-set">
+ <ant:path id="src.dirs">
+ <ant:pathelement path="${basedir}/src/main"/>
+ <ant:pathelement path="${basedir}/src/gen"/>
+ </ant:path>
+ <maven:addPath id="maven.compile.src.set" refid="src.dirs"/>
+ <ant:property name="maven.src.dirs" refid="maven.compile.src.set"/>
+ <ant:echo>maven.compile.src.set=${maven.src.dirs}</ant:echo>
+</goal>
+]]></source>
+ <p>
+ <!--
+ NOTE: CAN'T GET THIS TO PASS XDOC GEN AS FAILS XML VALIDATION ON
&aid
+ For more information, review this
+ <a
href="http://sourceforge.net/tracker/index.php?func=detail&aid=1387499&group_id=61626&atid=497853">
+ Cobertura bug report
+ </a>.
+ -->
+ </p>
+ </subsection>
+ <subsection name="Out of Memory">
+ <p>
+ If you experience out of memory with one or more plugins and the
AspectJ plugin,
+ perhaps the configuration causes recursive calls of the AspectJ
plugin.
+ This preGoal ensures AspectJ is called only once.
+ Add it to the maven.xml file.
+ </p>
+<source><![CDATA[
+<preGoal name="java:compile">
+ <j:if test="${ran != true}">
+ Running aspectj compilation *once*:
+ <attainGoal name="aspectj"/>
+ </j:if>
+ <j:set var="ran" value="true" />
+</preGoal>
+]]></source>
+ </subsection>
+ </section>
+ </body>
+
+</document>
Modified: maven/maven-1/plugins/trunk/aspectj/xdocs/navigation.xml
URL:
http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/aspectj/xdocs/navigation.xml?view=diff&rev=490917&r1=490916&r2=490917
==============================================================================
--- maven/maven-1/plugins/trunk/aspectj/xdocs/navigation.xml (original)
+++ maven/maven-1/plugins/trunk/aspectj/xdocs/navigation.xml Thu Dec 28
20:12:46 2006
@@ -32,6 +32,7 @@
<menu name="Overview">
<item name="Goals" href="/goals.html"/>
<item name="Properties" href="/properties.html"/>
+ <item name="Integration Tips" href="/integration.html"/>
</menu>
</body>
</project>