deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ch...@apache.org
Subject [4/5] git commit: DELTASPIKE-497 Use regular expressions to change the ports in the build-managed Glassfish profiles
Date Wed, 15 Jan 2014 11:36:12 GMT
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 <chkal@apache.org>
Authored: Wed Jan 15 07:15:31 2014 +0100
Committer: Christian Kaltepoth <chkal@apache.org>
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=&quot;8080&quot;" value="port=&quot;38080&quot;"
/>
-                                        <replace
-                                            file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml"
-                                            token="port=&quot;8181&quot;" value="port=&quot;38181&quot;"
/>
-                                        <replace
-                                            file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml"
-                                            token="port=&quot;4848&quot;" value="port=&quot;34848&quot;"
/>
-                                        <replace
-                                            file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml"
-                                            token="port=&quot;3700&quot;" value="port=&quot;33700&quot;"
/>
-                                        <replace
-                                            file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml"
-                                            token="port=&quot;8686&quot;" value="port=&quot;38686&quot;"
/>
-                                        <replace
+                                        <replaceregexp
                                             file="${container.unpack.directory}/glassfish3/glassfish/domains/domain1/config/domain.xml"
-                                            token="port=&quot;7676&quot;" value="port=&quot;37676&quot;"
/>
+                                            match="port=&quot;(\d{4})&quot;" replace="port=&quot;3\1&quot;"
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=&quot;3700&quot;" value="port=&quot;23700&quot;"
/>
-                                        <replace
-                                            file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml"
-                                            token="port=&quot;8181&quot;" value="port=&quot;28181&quot;"
/>
-                                        <replace
-                                            file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml"
-                                            token="port=&quot;8686&quot;" value="port=&quot;28686&quot;"
/>
-                                        <replace
-                                            file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml"
-                                            token="port=&quot;4848&quot;" value="port=&quot;24848&quot;"
/>
-                                        <replace
+                                        <replaceregexp
                                             file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml"
-                                            token="port=&quot;8080&quot;" value="port=&quot;28080&quot;"
/>
+                                            match="port=&quot;(\d{4})&quot;" replace="port=&quot;2\1&quot;"
flags="g" />
                                         <replace
                                             file="${container.unpack.directory}/glassfish4/glassfish/domains/domain1/config/domain.xml"
                                             token="value=&quot;7676&quot;" value="value=&quot;27676&quot;"
/>


Mime
View raw message