Skip to content

Instantly share code, notes, and snippets.

@OndraZizka
Created February 24, 2012 15:04
Show Gist options
  • Select an option

  • Save OndraZizka/1901491 to your computer and use it in GitHub Desktop.

Select an option

Save OndraZizka/1901491 to your computer and use it in GitHub Desktop.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<executions combine.children="append">
<execution>
<id>ts.config-as.ip</id>
<phase>process-test-resources</phase>
<goals><goal>transform</goal></goals>
<inherited>true</inherited>
<configuration>
<transformationSets>
<!-- IPs. -->
<transformationSet>
<dir>${basedir}/target/jbossas/standalone/configuration</dir>
<outputDir>${basedir}/target/jbossas/standalone/configuration</outputDir>
<stylesheet>${xslt.scripts.dir}/changeIPAddresses.xsl</stylesheet>
<includes>
<include>standalone*.xml</include>
</includes>
<parameters>
<parameter><name>managementIPAddress</name><value>${node0}</value></parameter>
<parameter><name>publicIPAddress</name><value>${node0}</value></parameter>
<parameter><name>udpMcastAddress</name><value>${udpGroup}</value></parameter><!-- Only somewhere - TODO. -->
</parameters>
</transformationSet>
<!-- JMS destinations. -->
<transformationSet>
<dir>${basedir}/target/jbossas/standalone/configuration</dir>
<outputDir>${basedir}/target/jbossas/standalone/configuration</outputDir>
<stylesheet>${xslt.scripts.dir}/addJmsDestinations.xsl</stylesheet>
<includes>
<include>standalone*.xml</include>
</includes>
<parameters>
<parameter><name>queueName</name><value>testQueue</value></parameter>
<parameter><name>topicName</name><value>testTopic</value></parameter>
</parameters>
</transformationSet>
</transformationSets>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment