[ 
http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167739#action_167739
 ] 

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 configuration.

> [regression] expressions not interpolated the same in antrun configuration
> --------------------------------------------------------------------------
>
>                 Key: MNG-4061
>                 URL: http://jira.codehaus.org/browse/MNG-4061
>             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: 
> https://svn.apache.org/repos/asf/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/pom.xml)
> The error:
> {code}
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [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: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to