properties substitutions in exists
----------------------------------

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


The substitution of properties doens't seems to work inside the exists tag in 
the pom.xml.


{code}
        <profiles>
                <profile>
                        <activation>
                                <file>
                                        <exists>${share}</exists>
                                </file>
                        </activation>
                        <build>
                                ....
                        </build>
                </profile>
        </profiles>
        <properties>
                <share>u:\SCOKART_Gilles\Public</share>
        </properties>
{code}

Doesn't seems to work (the profile is not activated),

while :
{code}
        <profiles>
                <profile>
                        <activation>
                                <file>
                                        
<exists>u:\SCOKART_Gilles\Public</exists>
                                </file>
                        </activation>
                        <build>
                                ....
                        </build>
                </profile>
        </profiles>
        <properties>
                <share>u:\SCOKART_Gilles\Public</share>
        </properties>
{code}

activate the profile.

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