DELTASPIKE-497 Use regular expressions to change the ports in the build-managed Glassfish profiles
Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/48147606 Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/48147606 Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/48147606 Branch: refs/heads/master Commit: 4814760684233665b0314c2eacfc50a2932159d8 Parents: e56e546 Author: Christian Kaltepoth <[email protected]> Authored: Wed Jan 15 07:15:31 2014 +0100 Committer: Christian Kaltepoth <[email protected]> Committed: Wed Jan 15 07:15:31 2014 +0100 ---------------------------------------------------------------------- deltaspike/parent/code/pom.xml | 37 ++++++------------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltaspike/blob/48147606/deltaspike/parent/code/pom.xml ---------------------------------------------------------------------- diff --git a/deltaspike/parent/code/pom.xml b/deltaspike/parent/code/pom.xml index 278e88c..714f92e 100644 --- a/deltaspike/parent/code/pom.xml +++ b/deltaspike/parent/code/pom.xml @@ -1092,25 +1092,11 @@ </goals> <configuration> <target> + <!-- Change all TCP ports from "xxxx" to "3xxxx" --> - <replace - file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml" - token="port="8080"" value="port="38080"" /> - <replace - file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml" - token="port="8181"" value="port="38181"" /> - <replace - file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml" - token="port="4848"" value="port="34848"" /> - <replace - file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml" - token="port="3700"" value="port="33700"" /> - <replace - file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml" - token="port="8686"" value="port="38686"" /> - <replace + <replaceregexp file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml" - token="port="7676"" value="port="37676"" /> + match="port="(\d{4})"" replace="port="3\1"" flags="g" /> <!-- Replace the default datasource with an in-memory one --> <replace @@ -1227,22 +1213,11 @@ </goals> <configuration> <target> + <!-- Change all TCP ports from "xxxx" to "2xxxx" --> - <replace - file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml" - token="port="3700"" value="port="23700"" /> - <replace - file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml" - token="port="8181"" value="port="28181"" /> - <replace - file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml" - token="port="8686"" value="port="28686"" /> - <replace - file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml" - token="port="4848"" value="port="24848"" /> - <replace + <replaceregexp file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml" - token="port="8080"" value="port="28080"" /> + match="port="(\d{4})"" replace="port="2\1"" flags="g" /> <replace file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml" token="value="7676"" value="value="27676"" />
