From 80ad091328ec41e1d87a3d3a04fab18706021bb1 Mon Sep 17 00:00:00 2001 From: carlos Date: Sat, 24 Sep 2005 00:41:01 +0000 Subject: [PATCH] Make a report with compiler output git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@291230 13f79535-47bb-0310-9956-ffa450edef68 --- java/plugin.jelly | 75 ++++++++++++++++++++++++++++++++++++++- java/plugin.properties | 2 ++ java/project.xml | 9 ++++- java/xdocs/changes.xml | 3 ++ java/xdocs/goals.xml | 24 +++++++++++++ java/xdocs/index.xml | 5 +++ java/xdocs/properties.xml | 8 +++++ 7 files changed, 124 insertions(+), 2 deletions(-) diff --git a/java/plugin.jelly b/java/plugin.jelly index 668b160f..a54b16f2 100644 --- a/java/plugin.jelly +++ b/java/plugin.jelly @@ -22,7 +22,9 @@ xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:define="jelly:define" - xmlns:maven="jelly:maven"> + xmlns:maven="jelly:maven" + xmlns:doc="doc" + xmlns:util="jelly:util"> @@ -55,6 +57,15 @@ + + + + + + + + + + No java source files to compile. @@ -171,4 +188,60 @@ DEPRECATED: the use of dependency-handle is deprecated. Please use maven:get/set to modify properties of the java plugin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The compiler output log file ${maven.compile.log} could not be found. Did you set maven.compile.fork to true? + + + + + + + + ${basedir}${file.separator} + + + + + + + + + diff --git a/java/plugin.properties b/java/plugin.properties index 869f1911..cef7315f 100644 --- a/java/plugin.properties +++ b/java/plugin.properties @@ -17,3 +17,5 @@ # ------------------------------------------------------------------- # P L U G I N P R O P E R T I E S # ------------------------------------------------------------------- + +maven.compile.log=${maven.build.dir}/compile.log \ No newline at end of file diff --git a/java/project.xml b/java/project.xml index 27044689..843ee428 100644 --- a/java/project.xml +++ b/java/project.xml @@ -21,7 +21,7 @@ 3 maven-java-plugin Maven Java Plug-in - 1.5 + 1.6-SNAPSHOT Compile java code http://maven.apache.org/reference/plugins/java/ @@ -97,4 +97,11 @@ + + + Ron Gallagher + rongallagher@bellsouth.net + RGI + + diff --git a/java/xdocs/changes.xml b/java/xdocs/changes.xml index 8dc33c81..c214e50c 100644 --- a/java/xdocs/changes.xml +++ b/java/xdocs/changes.xml @@ -25,6 +25,9 @@ Kurt Schrader + + Make a report with compiler output + Make it work by default with any version of the JDK Deprecate dependency handle diff --git a/java/xdocs/goals.xml b/java/xdocs/goals.xml index ae223ddc..69a447f7 100644 --- a/java/xdocs/goals.xml +++ b/java/xdocs/goals.xml @@ -59,6 +59,30 @@

+ + maven-java-plugin:register + +

+ Register the java compiler output report. +

+ + + + maven-java-plugin:deregister + +

+ Deregister the java compiler output report. +

+ + + + maven-java-plugin:report + +

+ Generate the java compiler output report. +

+ + java:jar diff --git a/java/xdocs/index.xml b/java/xdocs/index.xml index 2ff2e9de..4fc9d3c8 100644 --- a/java/xdocs/index.xml +++ b/java/xdocs/index.xml @@ -38,6 +38,11 @@ by this plugin, please see the properties document.

+

+ You can get a report from the compiler output adding + maven-java-plugin to the reports section of your pom. + (note that you need to set to true maven.compile.fork) +

diff --git a/java/xdocs/properties.xml b/java/xdocs/properties.xml index 565bd595..82eba746 100644 --- a/java/xdocs/properties.xml +++ b/java/xdocs/properties.xml @@ -194,6 +194,14 @@

+ + maven.compile.log + Yes + +

Where to save the output of the compiler. Only works when fork is true.

+

The default value for this property is ${maven.build.dir}/compile.log

+ + pom.build.sourceModifications Yes