Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2627

properties substitutions in exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.4
    • None
    • Profiles
    • None

    Description

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

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

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

      while :

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

      activate the profile.

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              gscokart Scokart Gilles
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: