Can Maven convert comma separated list of files into multiple <file>
elements? I want to pass one arg to my suite with multiple files, like so:
-DngFiles=testng1.xml,testng2.xml
I found an example of the plugin defining multiple suite files.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<suiteXmlFiles>
<file>src/test/resources/testng1.xml</file>
<file>src/test/resources/testng2.xml</file>
</suiteXmlFiles>
</configuration>
</plugin>
I am hoping, given the above scenario, something like this might be possible?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<suiteXmlFiles>
<files>${ngFiles}</files>
</suiteXmlFiles>
</configuration>
</plugin>
Seems to me like there might be no way to do this except by modification of the behavior of the Surefire plugin itself right? Is there no Maven plugin that can do what I am wanting to do?