You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Proctor (JIRA)" <ji...@codehaus.org> on 2007/02/04 23:50:44 UTC

[jira] Created: (MNG-2809) using file exists in a profile causes an error if the path, or a used variable in the path, has a space

using file exists in a profile causes an error if the path, or a used variable in the path, has a space
-------------------------------------------------------------------------------------------------------

                 Key: MNG-2809
                 URL: http://jira.codehaus.org/browse/MNG-2809
             Project: Maven 2
          Issue Type: Bug
          Components: Profiles
    Affects Versions: 2.0.4
            Reporter: Mark Proctor


The following won't activate. If I move it to a path without a space it works. This is for windows xp.
<file><exists>${user.home}/.m2/ydoc/lib/ydoc.jar</exists></file>

-- 
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-2809) using file exists in a profile causes an error if the path, or a used variable in the path, has a space

Posted by "Mark Proctor (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86782 ] 

Mark Proctor commented on MNG-2809:
-----------------------------------

Actually I'm not sure if this is spaces. I tried it using ${basedir} with a path that didn't have spaces, it iddn't activate. I looked at the help:effective-pom and cut and pasted the whole url it was displaying there and it worked. Does that mean that profiles are being decided before the variable resolving is done?

> using file exists in a profile causes an error if the path, or a used variable in the path, has a space
> -------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-2809
>                 URL: http://jira.codehaus.org/browse/MNG-2809
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.4
>            Reporter: Mark Proctor
>
> The following won't activate. If I move it to a path without a space it works. This is for windows xp.
> <file><exists>${user.home}/.m2/ydoc/lib/ydoc.jar</exists></file>

-- 
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-2809) Can't activate a profile by checking for the presence of a file in ${user.home}

Posted by "Paul Benedict (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167958#action_167958 ] 

Paul Benedict commented on MNG-2809:
------------------------------------

Daniel, can you please provide a ZIP of the most basic project to demonstrate this error? 

> Can't activate a profile by checking for the presence of a file in ${user.home}
> -------------------------------------------------------------------------------
>
>                 Key: MNG-2809
>                 URL: http://jira.codehaus.org/browse/MNG-2809
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.4
>            Reporter: Mark Proctor
>            Assignee: Vincent Siveton
>             Fix For: 2.0.9, 3.0-alpha-1
>
>
> The following won't activate. If I move it to a path without a space it works. This is for windows xp.
> <file><exists>${user.home}/.m2/ydoc/lib/ydoc.jar</exists></file>

-- 
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-2809) Can't activate a profile by checking for the presence of a file in ${user.home}

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

Brett Porter commented on MNG-2809:
-----------------------------------

note that it is not a regression, it does work with ${user.home}

> Can't activate a profile by checking for the presence of a file in ${user.home}
> -------------------------------------------------------------------------------
>
>                 Key: MNG-2809
>                 URL: http://jira.codehaus.org/browse/MNG-2809
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.4
>            Reporter: Mark Proctor
>            Assignee: Vincent Siveton
>             Fix For: 2.0.9, 3.0-alpha-1
>
>
> The following won't activate. If I move it to a path without a space it works. This is for windows xp.
> <file><exists>${user.home}/.m2/ydoc/lib/ydoc.jar</exists></file>

-- 
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-2809) Can't activate a profile by checking for the presence of a file in ${user.home}

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

Vincent Siveton closed MNG-2809.
--------------------------------

         Assignee: Vincent Siveton
       Resolution: Fixed
    Fix Version/s:     (was: Reviewed Pending Version Assignment)
                   2.1-alpha-1
                   2.0.9

Fixed with r609976

> Can't activate a profile by checking for the presence of a file in ${user.home}
> -------------------------------------------------------------------------------
>
>                 Key: MNG-2809
>                 URL: http://jira.codehaus.org/browse/MNG-2809
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.4
>            Reporter: Mark Proctor
>            Assignee: Vincent Siveton
>             Fix For: 2.0.9, 2.1-alpha-1
>
>
> The following won't activate. If I move it to a path without a space it works. This is for windows xp.
> <file><exists>${user.home}/.m2/ydoc/lib/ydoc.jar</exists></file>

-- 
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-2809) Can't activate a profile by checking for the presence of a file in ${user.home}

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

Wendy Smoak updated MNG-2809:
-----------------------------

    Summary: Can't activate a profile by checking for the presence of a file in ${user.home}  (was: using file exists in a profile causes an error if the path, or a used variable in the path, has a space)


This works:    <file><exists>c:/Documents and Settings/wsmoak/file.txt</exists></file>

This doesn't:  <file><exists>${user.home}/file.txt</exists></file>

> Can't activate a profile by checking for the presence of a file in ${user.home}
> -------------------------------------------------------------------------------
>
>                 Key: MNG-2809
>                 URL: http://jira.codehaus.org/browse/MNG-2809
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.4
>            Reporter: Mark Proctor
>
> The following won't activate. If I move it to a path without a space it works. This is for windows xp.
> <file><exists>${user.home}/.m2/ydoc/lib/ydoc.jar</exists></file>

-- 
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-2809) Can't activate a profile by checking for the presence of a file in ${user.home}

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

Brett Porter commented on MNG-2809:
-----------------------------------

Paul, it's in MNG-3017.

> Can't activate a profile by checking for the presence of a file in ${user.home}
> -------------------------------------------------------------------------------
>
>                 Key: MNG-2809
>                 URL: http://jira.codehaus.org/browse/MNG-2809
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.4
>            Reporter: Mark Proctor
>            Assignee: Vincent Siveton
>             Fix For: 2.0.9, 3.0-alpha-1
>
>
> The following won't activate. If I move it to a path without a space it works. This is for windows xp.
> <file><exists>${user.home}/.m2/ydoc/lib/ydoc.jar</exists></file>

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