PR: MPJAVA-45
Java report fails build if no source files present. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@407000 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
0ef34bb9cc
commit
2e6bab9405
3 files changed
+18
-12
No files matched your search
+14
-11
@@ -35,14 +35,7 @@
|
||||
<ant:mkdir dir="${maven.build.dest}"/>
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- C O M P I L E -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="java:compile"
|
||||
description="Compile the project"
|
||||
prereqs="java:prepare-filesystem">
|
||||
|
||||
<goal name="java:init">
|
||||
<j:set var="generatedSourcesPresent" value="false"/>
|
||||
<j:if test="${bootstrapping == null}">
|
||||
<maven:get var="generatedSources" plugin="maven-javacc-plugin" property="maven.gen.src" />
|
||||
@@ -55,6 +48,15 @@
|
||||
<maven:addPath id="maven.compile.src.set" refid="maven.generated.src.set"/>
|
||||
</j:if>
|
||||
</j:if>
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- C O M P I L E -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="java:compile"
|
||||
description="Compile the project"
|
||||
prereqs="java:prepare-filesystem,java:init">
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${sourcesPresent == 'true' or generatedSourcesPresent == 'true'}">
|
||||
@@ -212,13 +214,14 @@
|
||||
<!-- J A V A R E P O R T S -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="maven-java-plugin:register">
|
||||
<goal name="maven-java-plugin:register" prereqs="java:init">
|
||||
<j:if test="${sourcesPresent == 'true' or generatedSourcesPresent == 'true'}">
|
||||
<doc:registerReport
|
||||
name="Compiler output Report"
|
||||
pluginName="maven-java-plugin"
|
||||
link="java-compiler-output-report"
|
||||
description="Formatted report of compiler output"
|
||||
/>
|
||||
description="Formatted report of compiler output"/>
|
||||
</j:if>
|
||||
</goal>
|
||||
|
||||
<goal name="maven-java-plugin:deregister">
|
||||
|
||||
Reference in new issue
Block a user