From eb7608270d9ff2377b9fede078d0947148f581b0 Mon Sep 17 00:00:00 2001 From: aheritier Date: Mon, 8 May 2006 23:33:49 +0000 Subject: [PATCH] The property maven.ant.generatebuild.file is replaced by properties maven.ant.generate.dir, maven.ant.generate.script. The generated script is ${maven.ant.generate.dir}/${maven.ant.generate.script}. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@405222 13f79535-47bb-0310-9956-ffa450edef68 --- ant/plugin.jelly | 6 +++--- ant/plugin.properties | 8 +++++--- ant/xdocs/changes.xml | 2 ++ ant/xdocs/properties.xml | 38 ++++++++++++++++++++++++++------------ 4 files changed, 36 insertions(+), 18 deletions(-) diff --git a/ant/plugin.jelly b/ant/plugin.jelly index a9d44241..609a0c86 100644 --- a/ant/plugin.jelly +++ b/ant/plugin.jelly @@ -41,11 +41,11 @@ name="ant:generate-build" description="Generate an Ant build file"> - Generating ${maven.ant.generatebuild.file} ... - + Generating ${maven.ant.generate.dir}/${maven.ant.generate.script} ... + - ${maven.ant.generatebuild.file} generated. + ${maven.ant.generate.dir}/${maven.ant.generate.script} generated. + The property maven.ant.generatebuild.file is replaced by properties maven.ant.generate.dir, maven.ant.generate.script. The generated script is ${maven.ant.generate.dir}/${maven.ant.generate.script}. + The property maven.ant.generatebuild.file is removed. Add a new goal (ant:execute) to execute a build.xml file from maven. Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : commons-jelly-tags-xml v1.0 to v1.1. diff --git a/ant/xdocs/properties.xml b/ant/xdocs/properties.xml index 5ad69cb2..39e73686 100644 --- a/ant/xdocs/properties.xml +++ b/ant/xdocs/properties.xml @@ -33,6 +33,20 @@ Optional? Default value + + maven.ant.generate.script + The filename to use. Defaults to "build.xml". This file is expected to be a filename relative to the "maven.ant.generate.dir" property given. + since 1.10 + Yes + "build.xml" + + + maven.ant.generate.dir + The directory where to generate the Ant script. Defaults to the current project's basedir. + since 1.10 + Yes + ${basedir} + maven.ant.excludeTests Holds a comma separated list of source file patterns that will be excluded in the generated Ant build, e.g. @@ -45,13 +59,6 @@ maven.ant.excludeTests=**/*Test.java,**/*Suite.java - - maven.ant.generatebuild.file - Sets the name of the ant buildfile to create. - since 1.0 - Yes - ${basedir}/build.xml - maven.ant.use.properties @@ -73,25 +80,32 @@ maven.ant.execute.script - The buildfile to use. Defaults to "build.xml". This file is expected to be a filename relative to the "maven.ant.execute.dir" property given. + The buildfile to use. Defaults to ${maven.ant.generate.script}. This file is expected to be a filename relative to the "maven.ant.execute.dir" property given. since 1.10 Yes - "build.xml" + ${maven.ant.generate.script} maven.ant.execute.dir - The directory to use as a basedir for the Ant project. Defaults to the current project's basedir. This will override the basedir setting of the called project. + The directory to use as a basedir for the Ant project. Defaults to ${maven.ant.generate.dir}. This will override the basedir setting of the called project. since 1.10 Yes - ${basedir} + ${maven.ant.generate.dir} maven.ant.execute.target The target of the Ant project that should be executed. Defaults to the project's default target. - since 1.9 + since 1.10 Yes <empty> + + maven.ant.generatebuild.file + !! REMOVED !! Sets the name of the ant buildfile to create. Use "maven.ant.generate.script" and "maven.ant.generate.dir" instead. + since 1.0, removed in 1.10. + Yes + ${basedir}/build.xml +