In java I read these options in this way:
environmentUnderTest = EnvironmentUnderTest.valueOf(System.getProperty("test.env"));After I make a build, in target directory I have folder 'classes' which contain property file with not substituted param: environment.under.test=${test.environment}
But I could manage my issue with a bit another approach for reading properties. Keep long story short I could manage that by properties maven plugin. During creation of jar I just create a separate config file with already substituted variables.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>write-project-properties</goal>
</goals>
<configuration>
<outputFile>${project.build.outputDirectory}/test.properties</outputFile>
</configuration>
</execution>
</executions>
</plugin>
In this case in folder 'classes' in target I have new property file with environment.under.test=PROD inside. And in java I just read configs form that property file. But my initial question was not more about about issue but I was just wondering if there is a way to push maven/java options during taurus script execution.
Thank you for help!
Iurii.