You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Adrian Hempel, Atlassian (JIRA)" <ji...@codehaus.org> on 2008/04/15 08:30:58 UTC

[jira] Created: (MNG-3524) Profile to be activated when file is missing is always activated

Profile to be activated when file is missing is always activated
----------------------------------------------------------------

                 Key: MNG-3524
                 URL: http://jira.codehaus.org/browse/MNG-3524
             Project: Maven 2
          Issue Type: Bug
          Components: Profiles
    Affects Versions: 2.0.9
            Reporter: Adrian Hempel, Atlassian
         Attachments: pom.xml

When I run "mvn integration-test" with the attached pom.xml, the antrun:run goal is always executed, even when the ${project.build.directory}/target/build file is present.

I would expect that the <missing> element would ensure that the profile containing the antrun:run goal would only be activated when that file is missing.

-- 
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-3524) Profile to be activated when file is missing is always activated

Posted by "Adrian Hempel, Atlassian (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131200#action_131200 ] 

Adrian Hempel, Atlassian commented on MNG-3524:
-----------------------------------------------

Oh dear... reporters can't edit issues.

The description should read:

   "even when the ${project.build.directory}/built file is present"

> Profile to be activated when file is missing is always activated
> ----------------------------------------------------------------
>
>                 Key: MNG-3524
>                 URL: http://jira.codehaus.org/browse/MNG-3524
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.9
>            Reporter: Adrian Hempel, Atlassian
>         Attachments: pom.xml
>
>
> When I run "mvn integration-test" with the attached pom.xml, the antrun:run goal is always executed, even when the ${project.build.directory}/target/build file is present.
> I would expect that the <missing> element would ensure that the profile containing the antrun:run goal would only be activated when that file is missing.

-- 
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-3524) Profile to be activated when file is missing is always activated

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

Brett Porter updated MNG-3524:
------------------------------

      Description: 
When I run "mvn integration-test" with the attached pom.xml, the antrun:run goal is always executed, even when the ${project.build.directory}/built file is present.

I would expect that the <missing> element would ensure that the profile containing the antrun:run goal would only be activated when that file is missing.

  was:
When I run "mvn integration-test" with the attached pom.xml, the antrun:run goal is always executed, even when the ${project.build.directory}/target/build file is present.

I would expect that the <missing> element would ensure that the profile containing the antrun:run goal would only be activated when that file is missing.

    Fix Version/s: 2.0.x

> Profile to be activated when file is missing is always activated
> ----------------------------------------------------------------
>
>                 Key: MNG-3524
>                 URL: http://jira.codehaus.org/browse/MNG-3524
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.9
>            Reporter: Adrian Hempel, Atlassian
>             Fix For: 2.0.x
>
>         Attachments: pom.xml
>
>
> When I run "mvn integration-test" with the attached pom.xml, the antrun:run goal is always executed, even when the ${project.build.directory}/built file is present.
> I would expect that the <missing> element would ensure that the profile containing the antrun:run goal would only be activated when that file is missing.

-- 
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-3524) Profile to be activated when file is missing is always activated

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

Benjamin Bentmann closed MNG-3524.
----------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 3.0-alpha-8)
         Assignee: Benjamin Bentmann

Please note that properties referring to the POM, i.e. {{${project.*}}} cannot be used during profile activation, but both relative paths as well as the property {{${basedir}}} are now properly supported.

> Profile to be activated when file is missing is always activated
> ----------------------------------------------------------------
>
>                 Key: MNG-3524
>                 URL: http://jira.codehaus.org/browse/MNG-3524
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.9
>            Reporter: Adrian Hempel, Atlassian
>            Assignee: Benjamin Bentmann
>         Attachments: pom.xml
>
>
> When I run "mvn integration-test" with the attached pom.xml, the antrun:run goal is always executed, even when the ${project.build.directory}/built file is present.
> I would expect that the <missing> element would ensure that the profile containing the antrun:run goal would only be activated when that file is missing.

-- 
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-3524) Profile to be activated when file is missing is always activated

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

Jason van Zyl updated MNG-3524:
-------------------------------

    Fix Version/s:     (was: 2.2.x)
                   3.0-alpha-7

> Profile to be activated when file is missing is always activated
> ----------------------------------------------------------------
>
>                 Key: MNG-3524
>                 URL: http://jira.codehaus.org/browse/MNG-3524
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.9
>            Reporter: Adrian Hempel, Atlassian
>             Fix For: 3.0-alpha-7
>
>         Attachments: pom.xml
>
>
> When I run "mvn integration-test" with the attached pom.xml, the antrun:run goal is always executed, even when the ${project.build.directory}/built file is present.
> I would expect that the <missing> element would ensure that the profile containing the antrun:run goal would only be activated when that file is missing.

-- 
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-3524) Profile to be activated when file is missing is always activated

Posted by "Florian Poulin (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190585#action_190585 ] 

Florian Poulin commented on MNG-3524:
-------------------------------------

In your case, the problem is that you use a parameter in your file path : ${project.build.directory}

So the bug is not on the <missing> tag (there is the same problem with <exists>) but more on the fact that parameters are not admitted in the paths (and should be, in my opinion, and according to the documentation).

> Profile to be activated when file is missing is always activated
> ----------------------------------------------------------------
>
>                 Key: MNG-3524
>                 URL: http://jira.codehaus.org/browse/MNG-3524
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.9
>            Reporter: Adrian Hempel, Atlassian
>             Fix For: 2.2.x
>
>         Attachments: pom.xml
>
>
> When I run "mvn integration-test" with the attached pom.xml, the antrun:run goal is always executed, even when the ${project.build.directory}/built file is present.
> I would expect that the <missing> element would ensure that the profile containing the antrun:run goal would only be activated when that file is missing.

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