cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [3/4] cxf git commit: [CXF-4778] Increase memory given to command line tools
Date Fri, 24 Mar 2017 17:37:04 GMT
[CXF-4778] Increase memory given to command line tools


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/8172db9f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8172db9f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8172db9f

Branch: refs/heads/master
Commit: 8172db9fcfd3472731fdd9e26704bcdd7f63cd76
Parents: 1f888b8
Author: Daniel Kulp <dkulp@apache.org>
Authored: Fri Mar 24 11:28:17 2017 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri Mar 24 13:36:49 2017 -0400

----------------------------------------------------------------------
 distribution/src/main/release/bin/idl2wsdl          | 7 ++++++-
 distribution/src/main/release/bin/idl2wsdl.bat      | 8 ++++++--
 distribution/src/main/release/bin/java2js           | 7 ++++++-
 distribution/src/main/release/bin/java2js.bat       | 9 +++++++--
 distribution/src/main/release/bin/java2ws           | 7 ++++++-
 distribution/src/main/release/bin/java2ws.bat       | 6 +++++-
 distribution/src/main/release/bin/mc                | 7 ++++++-
 distribution/src/main/release/bin/mc.bat            | 7 ++++++-
 distribution/src/main/release/bin/wadl2java         | 7 ++++++-
 distribution/src/main/release/bin/wadl2java.bat     | 6 +++++-
 distribution/src/main/release/bin/wsdl2corba        | 7 ++++++-
 distribution/src/main/release/bin/wsdl2corba.bat    | 5 ++++-
 distribution/src/main/release/bin/wsdl2java         | 6 +++++-
 distribution/src/main/release/bin/wsdl2java.bat     | 6 +++++-
 distribution/src/main/release/bin/wsdl2js           | 7 ++++++-
 distribution/src/main/release/bin/wsdl2js.bat       | 5 ++++-
 distribution/src/main/release/bin/wsdl2service      | 7 ++++++-
 distribution/src/main/release/bin/wsdl2service.bat  | 7 ++++++-
 distribution/src/main/release/bin/wsdl2soap         | 7 ++++++-
 distribution/src/main/release/bin/wsdl2soap.bat     | 6 +++++-
 distribution/src/main/release/bin/wsdl2xml          | 7 ++++++-
 distribution/src/main/release/bin/wsdl2xml.bat      | 6 +++++-
 distribution/src/main/release/bin/wsdlvalidator     | 7 ++++++-
 distribution/src/main/release/bin/wsdlvalidator.bat | 6 +++++-
 distribution/src/main/release/bin/xsd2wsdl          | 8 +++++++-
 distribution/src/main/release/bin/xsd2wsdl.bat      | 7 ++++++-
 26 files changed, 147 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/idl2wsdl
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/idl2wsdl b/distribution/src/main/release/bin/idl2wsdl
index 8c4c5f8..ed6e264 100755
--- a/distribution/src/main/release/bin/idl2wsdl
+++ b/distribution/src/main/release/bin/idl2wsdl
@@ -67,7 +67,12 @@ else
    cxf_classpath=${cxf_jar}:${CLASSPATH}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp "${cxf_classpath}"
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.corba.IDLToWSDL "$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
"${cxf_classpath}" -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.corba.IDLToWSDL
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/idl2wsdl.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/idl2wsdl.bat b/distribution/src/main/release/bin/idl2wsdl.bat
index c3e8465..38b4e31 100644
--- a/distribution/src/main/release/bin/idl2wsdl.bat
+++ b/distribution/src/main/release/bin/idl2wsdl.bat
@@ -36,7 +36,11 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.corba.IDLToWSDL
%*
+if "%JAVA_MAX_MEM%" == "" (
+    set JAVA_MAX_MEM=512M
+)
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.corba.IDLToWSDL %*
 
 @endlocal
 
@@ -54,4 +58,4 @@ goto end
 set CXF_HOME=%~dp0..
 goto cont
 
-:end
\ No newline at end of file
+:end

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/java2js
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/java2js b/distribution/src/main/release/bin/java2js
index 493c471..4778cb0 100755
--- a/distribution/src/main/release/bin/java2js
+++ b/distribution/src/main/release/bin/java2js
@@ -93,4 +93,9 @@ else
   cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp "${cxf_classpath}"
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.java2js.JavaToJS "$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
"${cxf_classpath}" -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.java2js.JavaToJS
"$@"

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/java2js.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/java2js.bat b/distribution/src/main/release/bin/java2js.bat
index bf1b489..cf9b1ce 100644
--- a/distribution/src/main/release/bin/java2js.bat
+++ b/distribution/src/main/release/bin/java2js.bat
@@ -36,7 +36,12 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.java2js.JavaToJS
%*
+if "%JAVA_MAX_MEM%" == "" (
+     set JAVA_MAX_MEM=512M
+)
+
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.java2js.JavaToJS %*
 
 @endlocal
 
@@ -54,4 +59,4 @@ goto end
 set CXF_HOME=%~dp0..
 goto cont
 
-:end
\ No newline at end of file
+:end

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/java2ws
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/java2ws b/distribution/src/main/release/bin/java2ws
index 282ca37..991f180 100755
--- a/distribution/src/main/release/bin/java2ws
+++ b/distribution/src/main/release/bin/java2ws
@@ -93,4 +93,9 @@ else
   cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp "${cxf_classpath}"
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.java2ws.JavaToWS "$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
"${cxf_classpath}" -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.java2ws.JavaToWS
"$@"

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/java2ws.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/java2ws.bat b/distribution/src/main/release/bin/java2ws.bat
index 9f108ac..defc303 100644
--- a/distribution/src/main/release/bin/java2ws.bat
+++ b/distribution/src/main/release/bin/java2ws.bat
@@ -36,7 +36,11 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.java2ws.JavaToWS
%*
+if "%JAVA_MAX_MEM%" == "" (
+    set JAVA_MAX_MEM=512M
+)
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.java2ws.JavaToWS %*
 
 @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/mc
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/mc b/distribution/src/main/release/bin/mc
index 3e58acf..137c1f9 100755
--- a/distribution/src/main/release/bin/mc
+++ b/distribution/src/main/release/bin/mc
@@ -91,7 +91,12 @@ else
   cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp ${cxf_classpath}
-Djava.util.logging.config.file=$log_config org.apache.cxf.management.utils.ManagementConsole
"$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
${cxf_classpath} -Djava.util.logging.config.file=$log_config org.apache.cxf.management.utils.ManagementConsole
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/mc.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/mc.bat b/distribution/src/main/release/bin/mc.bat
index 3488810..0ee9dcf 100644
--- a/distribution/src/main/release/bin/mc.bat
+++ b/distribution/src/main/release/bin/mc.bat
@@ -34,7 +34,12 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.management.utils.ManagementConsole
%*
+if "%JAVA_MAX_MEM%" == "" (
+   set JAVA_MAX_MEM=512M
+)
+
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.management.utils.ManagementConsole %*
 
 rem @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wadl2java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wadl2java b/distribution/src/main/release/bin/wadl2java
index 04b8077..29fc970 100755
--- a/distribution/src/main/release/bin/wadl2java
+++ b/distribution/src/main/release/bin/wadl2java
@@ -74,7 +74,12 @@ else
    cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
 
-$JAVA_HOME/bin/java -Xmx128M -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp "${cxf_classpath}"
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.wadlto.WADLToJava "$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
"${cxf_classpath}" -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.wadlto.WADLToJava
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wadl2java.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wadl2java.bat b/distribution/src/main/release/bin/wadl2java.bat
index 2f34884..bee6bf3 100644
--- a/distribution/src/main/release/bin/wadl2java.bat
+++ b/distribution/src/main/release/bin/wadl2java.bat
@@ -36,8 +36,12 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
+if "%JAVA_MAX_MEM%" == "" (
+     set JAVA_MAX_MEM=512M
+)
 
-"%JAVA_HOME%\bin\java" -Xmx128M -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.wadlto.WADLToJava
%*
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.wadlto.WADLToJava %*
 
 @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2corba
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2corba b/distribution/src/main/release/bin/wsdl2corba
index 4587b77..87c5c1e 100755
--- a/distribution/src/main/release/bin/wsdl2corba
+++ b/distribution/src/main/release/bin/wsdl2corba
@@ -67,7 +67,12 @@ else
    cxf_classpath=${cxf_jar}:${CLASSPATH}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp "${cxf_classpath}"
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.corba.WSDLToIDL "$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
"${cxf_classpath}" -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.corba.WSDLToIDL
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2corba.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2corba.bat b/distribution/src/main/release/bin/wsdl2corba.bat
index 73a61a3..f2862fb 100644
--- a/distribution/src/main/release/bin/wsdl2corba.bat
+++ b/distribution/src/main/release/bin/wsdl2corba.bat
@@ -36,8 +36,11 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
+if "%JAVA_MAX_MEM%" == "" (
+    set JAVA_MAX_MEM=512M
+)
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.corba.WSDLToIDL
%*
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.corba.WSDLToIDL %*
 
 @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2java b/distribution/src/main/release/bin/wsdl2java
index bfebacf..67fbb8f6 100755
--- a/distribution/src/main/release/bin/wsdl2java
+++ b/distribution/src/main/release/bin/wsdl2java
@@ -74,7 +74,11 @@ else
    cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
 
-$JAVA_HOME/bin/java -Xmx128M -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp "${cxf_classpath}"
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.wsdlto.WSDLToJava "$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
"${cxf_classpath}" -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.wsdlto.WSDLToJava
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2java.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2java.bat b/distribution/src/main/release/bin/wsdl2java.bat
index 0ead7d4..eb569e0 100644
--- a/distribution/src/main/release/bin/wsdl2java.bat
+++ b/distribution/src/main/release/bin/wsdl2java.bat
@@ -36,8 +36,12 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
+if "%JAVA_MAX_MEM%" == "" (
+    set JAVA_MAX_MEM=512M
+)
 
-"%JAVA_HOME%\bin\java" -Xmx128M -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.wsdlto.WSDLToJava
%*
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM%  -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.wsdlto.WSDLToJava %*
 
 @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2js
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2js b/distribution/src/main/release/bin/wsdl2js
index aa884e1..596e058 100755
--- a/distribution/src/main/release/bin/wsdl2js
+++ b/distribution/src/main/release/bin/wsdl2js
@@ -67,7 +67,12 @@ else
    cxf_classpath=${cxf_jar}:${CLASSPATH}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp "${cxf_classpath}"
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript
"$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
"${cxf_classpath}" -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2js.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2js.bat b/distribution/src/main/release/bin/wsdl2js.bat
index 96d74a5..85c0642 100644
--- a/distribution/src/main/release/bin/wsdl2js.bat
+++ b/distribution/src/main/release/bin/wsdl2js.bat
@@ -34,8 +34,11 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
+if "%JAVA_MAX_MEM%" == "" (
+    set JAVA_MAX_MEM=512M
+)
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript
%*
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript %*
 
 @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2service
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2service b/distribution/src/main/release/bin/wsdl2service
index ccb5b76..0ad02c8 100755
--- a/distribution/src/main/release/bin/wsdl2service
+++ b/distribution/src/main/release/bin/wsdl2service
@@ -91,7 +91,12 @@ else
   cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp ${cxf_classpath}
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.misc.WSDLToService "$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
${cxf_classpath} -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.misc.WSDLToService
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2service.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2service.bat b/distribution/src/main/release/bin/wsdl2service.bat
index 45bd755..3449d8a 100644
--- a/distribution/src/main/release/bin/wsdl2service.bat
+++ b/distribution/src/main/release/bin/wsdl2service.bat
@@ -36,7 +36,12 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.misc.WSDLToService
%*
+if "%JAVA_MAX_MEM%" == "" (
+   set JAVA_MAX_MEM=512M
+)
+
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.misc.WSDLToService %*
 
 @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2soap
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2soap b/distribution/src/main/release/bin/wsdl2soap
index bb12c65..d806839 100755
--- a/distribution/src/main/release/bin/wsdl2soap
+++ b/distribution/src/main/release/bin/wsdl2soap
@@ -89,7 +89,12 @@ else
   cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp ${cxf_classpath}
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.misc.WSDLToSoap "$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
${cxf_classpath} -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.misc.WSDLToSoap
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2soap.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2soap.bat b/distribution/src/main/release/bin/wsdl2soap.bat
index c2d34a2..470adba 100644
--- a/distribution/src/main/release/bin/wsdl2soap.bat
+++ b/distribution/src/main/release/bin/wsdl2soap.bat
@@ -36,7 +36,11 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.misc.WSDLToSoap
%*
+if "%JAVA_MAX_MEM%" == "" (
+    set JAVA_MAX_MEM=512M
+)
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.misc.WSDLToSoap %*
 
 @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2xml b/distribution/src/main/release/bin/wsdl2xml
index 62821e4..dde6042 100755
--- a/distribution/src/main/release/bin/wsdl2xml
+++ b/distribution/src/main/release/bin/wsdl2xml
@@ -89,7 +89,12 @@ else
   cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp "${cxf_classpath}"
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.misc.WSDLToXML "$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
"${cxf_classpath}" -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.misc.WSDLToXML
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdl2xml.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdl2xml.bat b/distribution/src/main/release/bin/wsdl2xml.bat
index 05919a7..e088f9f 100644
--- a/distribution/src/main/release/bin/wsdl2xml.bat
+++ b/distribution/src/main/release/bin/wsdl2xml.bat
@@ -36,7 +36,11 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.misc.WSDLToXML
%*
+if "%JAVA_MAX_MEM%" == "" (
+    set JAVA_MAX_MEM=512M
+)
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.misc.WSDLToXML %*
 
 @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdlvalidator
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdlvalidator b/distribution/src/main/release/bin/wsdlvalidator
index 81c7f6d..16ee645 100755
--- a/distribution/src/main/release/bin/wsdlvalidator
+++ b/distribution/src/main/release/bin/wsdlvalidator
@@ -89,7 +89,12 @@ else
   cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
 
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp ${cxf_classpath}
-Djava.util.logging.config.file=$log_config  org.apache.cxf.tools.validator.WSDLValidator
"$@"
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
${cxf_classpath} -Djava.util.logging.config.file=$log_config  org.apache.cxf.tools.validator.WSDLValidator
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/wsdlvalidator.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/wsdlvalidator.bat b/distribution/src/main/release/bin/wsdlvalidator.bat
index 1229e97..cc90f17 100644
--- a/distribution/src/main/release/bin/wsdlvalidator.bat
+++ b/distribution/src/main/release/bin/wsdlvalidator.bat
@@ -35,7 +35,11 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.validator.WSDLValidator
%*
+if "%JAVA_MAX_MEM%" == "" (
+    set JAVA_MAX_MEM=512M
+)
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.validator.WSDLValidator %*
 
 @endlocal
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/xsd2wsdl
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/xsd2wsdl b/distribution/src/main/release/bin/xsd2wsdl
index 31ab0f4..6423a8f 100755
--- a/distribution/src/main/release/bin/xsd2wsdl
+++ b/distribution/src/main/release/bin/xsd2wsdl
@@ -83,7 +83,13 @@ if $cygwin; then
 else
    cxf_classpath=${cxf_jar}:${CLASSPATH}:${sun_tool_path}
 fi
-$JAVA_HOME/bin/java -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp ${cxf_classpath}
-Djava.util.logging.config.file=$log_config org.apache.cxf.tools.misc.XSDToWSDL "$@"
+
+if [ "x${JAVA_MAX_MEM}" = "x" ]; then
+    JAVA_MAX_MEM=512M
+    export JAVA_MAX_MEM
+fi
+
+$JAVA_HOME/bin/java -Xmx${JAVA_MAX_MEM} -Djava.endorsed.dirs="${cxf_home}/lib/endorsed" -cp
${cxf_classpath} -Djava.util.logging.config.file=$log_config org.apache.cxf.tools.misc.XSDToWSDL
"$@"
 
 
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8172db9f/distribution/src/main/release/bin/xsd2wsdl.bat
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/bin/xsd2wsdl.bat b/distribution/src/main/release/bin/xsd2wsdl.bat
index 1db894c..2d12f50 100644
--- a/distribution/src/main/release/bin/xsd2wsdl.bat
+++ b/distribution/src/main/release/bin/xsd2wsdl.bat
@@ -36,7 +36,12 @@ if not exist "%CXF_HOME%\lib\cxf-manifest.jar" goto no_cxf_jar
 
 set CXF_JAR=%CXF_HOME%\lib\cxf-manifest.jar
 
-"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
-Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.misc.XSDToWSDL
%*
+
+if "%JAVA_MAX_MEM%" == "" (
+    set JAVA_MAX_MEM=512M
+)
+
+"%JAVA_HOME%\bin\java" -Xmx%JAVA_MAX_MEM% -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed"
-cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
org.apache.cxf.tools.misc.XSDToWSDL %*
 
 @endlocal
 


Mime
View raw message