[ 
https://jira.codehaus.org/browse/SUREFIRE-982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=323657#comment-323657
 ] 

Andreas Gudian commented on SUREFIRE-982:
-----------------------------------------

I can't reproduce that. Could you please create a small sample project that 
demonstrates the problem?

One guess that I can take: if the variables that you use are not set, then 
{{systemPropertyVariables}} will produce mappings to {{null}}, while 
systemProperties fills in a String with length 0. Perhaps that's what you 
experience?
                
> systemPropertyVariables does not work, but the deprecated systemProperties 
> works correctly
> ------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-982
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-982
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.14
>         Environment: windows 7, java 7
>            Reporter: Ed Ost
>            Assignee: Andreas Gudian
>
> I use the attached snippet below.  I believe the syntax is correct.  When I 
> use the systemPropertyVariables syntax the properties are not set.  When I 
> use the older and now deprecated approach they are set correctly.  The exaxt 
> same POM and code.  The only difference is which snippet I uncomment.
> {code:xml}
> <!-- this "preferred" method does not work -->
> <!-- plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-surefire-plugin</artifactId>
>     <configuration>
>         <systemPropertyVariables>
>             <container>${container}</container>
>             <propertiesPath>${propertiesPath}</propertiesPath>
>             
> <app-properties.runtime.url>${app-properties.runtime.url}</app-properties.runtime.url>
>             
> <container-properties.runtime.url>${container-properties.runtime.url}</container-properties.runtime.url>
>             <myPropertyVar>${myPropertyVar}</myPropertyVar>
>         </systemPropertyVariables>
>     </configuration>
> </plugin -->
> <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-surefire-plugin</artifactId>
>     <configuration>
>         <systemProperties>
>             <property>
>                 <name>container</name>
>                 <value>${container}</value>
>             </property>
>             <property>
>                 <name>propertiesPath</name>
>                 <value>${propertiesPath}</value>
>             </property>
>             <property>
>                 <name>app-properties.runtime.url</name>
>                 <value>${app-properties.runtime.url}</value>
>             </property>
>             <property>
>                 <name>container-properties.runtime.url</name>
>                 <value>${container-properties.runtime.url}</value>
>             </property>
>             <property>
>                 <name>container-properties.runtime.url</name>
>                 <value>${container-properties.runtime.url}</value>
>             </property>
>         </systemProperties>
>     </configuration>
> </plugin>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to