You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2009/03/03 11:59:12 UTC

[jira] Created: (MNG-4061) [regression] expressions not interpolated the same in antrun 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


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

        

[jira] Work started: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on MNG-4061 started by Brett Porter.

> [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
>            Assignee: 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

        

[jira] Updated: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-4061:
------------------------------

    Description: 
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.

  was:
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.


> [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

        

[jira] Closed: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-4061.
-----------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.1.0)

> [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
>            Assignee: Brett Porter
>
> 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

        

[jira] Updated: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-4061:
------------------------------

    Fix Version/s: 2.1.0

as a regression, should be investigated before release

> [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

        

[jira] Commented: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167871#action_167871 ] 

Brett Porter commented on MNG-4061:
-----------------------------------

it doesn't work in 2.0.10, but I agree magic is bad, and there could be varying combinations (${basedir}\..., ${basedir}/...,${basedir}/../... to use the parent, etc).

I'll document the change instead.

> [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
>            Assignee: 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

        

[jira] Commented: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167706#action_167706 ] 

Brett Porter commented on MNG-4061:
-----------------------------------

yep, that's right. Now that you've pointed that out, I certainly don't consider this as a regression, but just a notable change as it was wrong before and consistency has been introduced.

Though I guess we could evaluate ${basedir}/${report/script...} correctly if encountered with a bit of a hack to make it backwards compat?

> [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

        

[jira] Commented: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167705#action_167705 ] 

Benjamin Bentmann commented on MNG-4061:
----------------------------------------

Just looking at {{reporting.outputDirectory}}, I could imagine this is related to MNG-3475. The reporting directory was previously non-aligned. So would be nice to know how things behave if one uses say the build output directory after basedir, I would expect it breaks with both branches then.

> [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

        

[jira] Updated: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-4061:
-----------------------------------

    Description: 
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.

  was:
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.


> [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

        

[jira] Commented: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167701#action_167701 ] 

Brett Porter commented on MNG-4061:
-----------------------------------

personally, I think the out=" ... " variable is wrong with the additional ${basedir}, but would like some confirmation and probably some release note about the "compatibility" break.

> [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

        

[jira] Commented: (MNG-4061) [regression] expressions not interpolated the same in antrun configuration

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ 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