jdillon 2003/08/16 02:04:34
Modified: etc maven.xml
Log:
o Added pre-goal to global maven.xml which will execute an ant <depend>
to remove classes which depend on changes files so they will rebuild
Revision Changes Path
1.4 +23 -1 incubator-geronimo/etc/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/incubator-geronimo/etc/maven.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- maven.xml 14 Aug 2003 19:25:21 -0000 1.3
+++ maven.xml 16 Aug 2003 09:04:34 -0000 1.4
@@ -40,4 +40,26 @@
<ant:echo>H E L L O</ant:echo>
</goal>
+ <!-- Remove classes which depend on changed files, so they will rebuild.
-->
+ <preGoal name="java:compile">
+ <j:if test="${sourcesPresent}">
+ <ant:depend srcdir="${maven.compile.source}"
+ destdir="${maven.build.dest}"
+ dump="false"
+ closure="false">
+ <j:forEach var="sm" items="${pom.build.sourceModifications}">
+ <ant:available property="classPresent"
classname="${sm.className}"/>
+ <j:if test="${classPresent != 'true'}">
+ <j:forEach var="exclude" items="${sm.excludes}">
+ <ant:exclude name="${exclude}"/>
+ </j:forEach>
+ <j:forEach var="include" items="${sm.includes}">
+ <ant:include name="${include}"/>
+ </j:forEach>
+ </j:if>
+ </j:forEach>
+ </ant:depend>
+ </j:if>
+ </preGoal>
+
</project>