maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <>
Subject [jira] Commented: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration
Date Tue, 03 Mar 2009 15:29:13 GMT


Benjamin Bentmann commented on MNG-4061:

As history has shown, proper interpolation is already non-trivial and I am currently not really
convinced it would be wise to add another complexity level by checking for combined directories.

I also wonder whether the basedir is/was really required (i.e. for the older Maven versions).
 Ant also has the concept of a project basedir used to align relative paths and further assuming
the Antrun Plugin configures this to match the Maven project directory, the xsddoc task has
all at hand to properly resolve the output path even if the expression report.outputDirectory
delivered a relative path before. If the combo basedir/report.outputDirectory was not strictly
necessary as a workaround, IMHO there is less reason for us to consider supporting this strange

> [regression] expressions not interpolated the same in antrun configuration
> --------------------------------------------------------------------------
>                 Key: MNG-4061
>                 URL:
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0-M1
>            Reporter: Brett Porter
>             Fix For: 2.1.0
> I haven't had the chance to ping down the cause here or if the POM is actually in error,
however I noticed the following works in 2.0.10 but not 2.1.0-M1 (or the latest snapshot from
the branch):
> {code:xml}
> <tasks>
>   <taskdef name="xsddoc" classname="net.sf.xframe.xsddoc.Task"/>
>   <mkdir dir="${reporting.outputDirectory}/xsddoc"/>
>   <xsddoc file="${basedir}/src/main/resources/fml-1.0.xsd"
>     out="${basedir}/${reporting.outputDirectory}/xsddoc"
>     doctitle="Reference of Schema FML 1.0"
>     verbose="true"/>
> </tasks>
> {code}
> (source:
> The error:
> {code}
> [INFO] ------------------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: net.sf.xframe.xsddoc.ProcessorException: output
folder doesn't exist: /Users/brett/scm/maven/doxia/doxia/doxia-modules/doxia-module-fml/Users/brett/scm/maven/doxia/doxia/doxia-modules/doxia-module-fml/target/site/xsddoc
> {code}
> As you can see, the basedir is appended twice for some reason.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message