glassfish 0.9.2-universal-java → 0.9.3-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gfrake +67 -0
- data/bin/glassfish +54 -39
- data/bin/glassfish_rails +54 -39
- data/domains/domain1/config/domain.xml +1 -1
- data/domains/domain1/config/glassfish_gem_version.yml +7 -0
- data/domains/domain1/config/logging.properties +2 -2
- data/generators/gfrake/templates/glassfish.yml +97 -0
- data/{modules → lib}/asadmin.rb +0 -0
- data/lib/command_line_parser.rb +226 -0
- data/lib/config.rb +198 -0
- data/{modules/glassfish.rb → lib/gfraker.rb} +4 -21
- data/lib/glassfish.rb +78 -0
- data/{modules → lib}/rdoc_usage.rb +0 -0
- data/lib/templates/domain.xml +1 -1
- data/{modules → lib}/version.rb +2 -3
- data/modules/admin-cli.jar +0 -0
- data/modules/akuma.jar +0 -0
- data/modules/api-exporter.jar +0 -0
- data/modules/asm-all-repackaged.jar +0 -0
- data/modules/auto-depends.jar +0 -0
- data/modules/branding.jar +0 -0
- data/modules/cli-framework.jar +0 -0
- data/modules/common-util.jar +0 -0
- data/modules/config-api.jar +0 -0
- data/modules/config.jar +0 -0
- data/modules/deployment-admin.jar +0 -0
- data/modules/deployment-autodeploy.jar +0 -0
- data/modules/deployment-common.jar +0 -0
- data/modules/flashlight-agent.jar +0 -0
- data/modules/flashlight-framework.jar +0 -0
- data/modules/gf-jruby-connector.jar +0 -0
- data/modules/glassfish-api.jar +0 -0
- data/modules/glassfish-gem.jar +0 -0
- data/modules/glassfish.jar +0 -0
- data/modules/grizzly-framework.jar +0 -0
- data/modules/grizzly-http.jar +0 -0
- data/modules/grizzly-jruby-module.jar +0 -0
- data/modules/grizzly-jruby.jar +0 -0
- data/modules/grizzly-portunif.jar +0 -0
- data/modules/grizzly-rcm.jar +0 -0
- data/modules/grizzly-utils.jar +0 -0
- data/modules/hk2-core.jar +0 -0
- data/modules/hk2.jar +0 -0
- data/modules/internal-api.jar +0 -0
- data/modules/kernel.jar +0 -0
- data/modules/launcher.jar +0 -0
- data/modules/tiger-types-osgi.jar +0 -0
- metadata +115 -110
- data/bin/gfadmin +0 -5
- data/lib/jndi-properties.jar +0 -0
- data/lib/package-appclient.xml +0 -185
- data/lib/processLauncher.properties +0 -25
- data/lib/processLauncher.xml +0 -189
- data/modules/command_line_parser.rb +0 -94
data/bin/gfadmin
DELETED
data/lib/jndi-properties.jar
DELETED
Binary file
|
data/lib/package-appclient.xml
DELETED
@@ -1,185 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
|
3
|
-
<!--
|
4
|
-
The contents of this file are subject to the terms
|
5
|
-
of the Common Development and Distribution License
|
6
|
-
(the License). You may not use this file except in
|
7
|
-
compliance with the License.
|
8
|
-
|
9
|
-
You can obtain a copy of the license at
|
10
|
-
https://glassfish.dev.java.net/public/CDDLv1.0.html or
|
11
|
-
glassfish/bootstrap/legal/CDDLv1.0.txt.
|
12
|
-
See the License for the specific language governing
|
13
|
-
permissions and limitations under the License.
|
14
|
-
|
15
|
-
When distributing Covered Code, include this CDDL
|
16
|
-
Header Notice in each file and include the License file
|
17
|
-
at glassfish/bootstrap/legal/CDDLv1.0.txt.
|
18
|
-
If applicable, add the following below the CDDL Header,
|
19
|
-
with the fields enclosed by brackets [] replaced by
|
20
|
-
you own identifying information:
|
21
|
-
"Portions Copyrighted [year] [name of copyright owner]"
|
22
|
-
|
23
|
-
Copyright 2006 Sun Microsystems, Inc. All rights reserved.
|
24
|
-
-->
|
25
|
-
|
26
|
-
<!-- This file is used by the package-appclient script -->
|
27
|
-
|
28
|
-
<project name="package-appclient" default="all" basedir=".">
|
29
|
-
|
30
|
-
<property name="install.home" value="${basedir}/.."/>
|
31
|
-
<property name="appclientjar" value="${user.dir}/appclient.jar"/>
|
32
|
-
|
33
|
-
<!-- package-appclient script should override the following properties -->
|
34
|
-
<property name="mq.home" value="${install.home}/imq"/>
|
35
|
-
<property name="domain.dir" value="${install.home}/domains"/>
|
36
|
-
|
37
|
-
<target name="all">
|
38
|
-
|
39
|
-
<echo message="Creating ${appclientjar} ... "/>
|
40
|
-
|
41
|
-
<condition property="windows">
|
42
|
-
<os family="windows" />
|
43
|
-
</condition>
|
44
|
-
<condition property="unix">
|
45
|
-
<os family="unix" />
|
46
|
-
</condition>
|
47
|
-
|
48
|
-
<delete file="${appclientjar}" quiet="true"/>
|
49
|
-
<tempfile destdir="${java.io.tmpdir}" prefix="pkgac" property="tmp.dir"/>
|
50
|
-
|
51
|
-
<!--
|
52
|
-
There is a small but non-zero chance that a concurrent user could have
|
53
|
-
created the same temp file. If the file exists abort the task.
|
54
|
-
-->
|
55
|
-
<available file="${tmp.dir}" property="tmp.dir.exists"/>
|
56
|
-
<fail if="tmp.dir.exists">Temporary directory ${tmp.dir} already exists - aborting. Please try again.</fail>
|
57
|
-
|
58
|
-
<delete dir="${tmp.dir}" quiet="true"/>
|
59
|
-
<mkdir dir="${tmp.dir}"/>
|
60
|
-
|
61
|
-
<antcall target="do.copy"/>
|
62
|
-
|
63
|
-
<zip destfile="${appclientjar}">
|
64
|
-
<zipfileset dir="${install.home}"
|
65
|
-
prefix="appclient">
|
66
|
-
<include name="lib/dtds/*.dtd"/>
|
67
|
-
<include name="lib/schemas/*"/>
|
68
|
-
<include name="lib/appclient/client.policy"/>
|
69
|
-
<include name="lib/appclient/appclientlogin.conf"/>
|
70
|
-
<include name="lib/appclient/wss-client-config-2.0.xml"/>
|
71
|
-
<include name="lib/endorsed/*.jar"/>
|
72
|
-
|
73
|
-
<include name="lib/*.jar"/>
|
74
|
-
<include name="lib/install/applications/jmsra/imqjmsra.jar"/>
|
75
|
-
<exclude name="lib/appserv-assemblytool.jar"/>
|
76
|
-
<exclude name="lib/appserv-jstl.jar"/>
|
77
|
-
<exclude name="lib/appserv-tags.jar"/>
|
78
|
-
<exclude name="lib/commons-launcher.jar"/>
|
79
|
-
<exclude name="lib/deployhelp.jar"/>
|
80
|
-
<exclude name="lib/j2ee-svc.jar"/>
|
81
|
-
<exclude name="lib/jhall.jar"/>
|
82
|
-
<exclude name="lib/sun-appserv-ant.jar"/>
|
83
|
-
</zipfileset>
|
84
|
-
<zipfileset dir="${tmp.dir}"
|
85
|
-
prefix="appclient"
|
86
|
-
filemode="755">
|
87
|
-
<include name="bin/appclient"/>
|
88
|
-
</zipfileset>
|
89
|
-
<zipfileset dir="${tmp.dir}"
|
90
|
-
prefix="appclient">
|
91
|
-
<include name="config/asenv.conf"/>
|
92
|
-
<include name="config/asenv.bat"/>
|
93
|
-
<include name="bin/appclient.bat"/>
|
94
|
-
</zipfileset>
|
95
|
-
|
96
|
-
<zipfileset dir="${install.home}/lib/install/applications/jmsra"
|
97
|
-
prefix="appclient/imq/lib">
|
98
|
-
<include name="imq.jar"/>
|
99
|
-
<include name="imqadmin.jar"/>
|
100
|
-
<include name="imqutil.jar"/>
|
101
|
-
</zipfileset>
|
102
|
-
|
103
|
-
<zipfileset dir="${mq.home}"
|
104
|
-
prefix="appclient/imq">
|
105
|
-
<include name="lib/fscontext.jar"/>
|
106
|
-
</zipfileset>
|
107
|
-
<zipfileset dir="${domain.dir}/domain1"
|
108
|
-
prefix="appclient">
|
109
|
-
<include name="config/sun-acc.xml"/>
|
110
|
-
</zipfileset>
|
111
|
-
<zipfileset dir="${install.home}/lib/install/templates"
|
112
|
-
prefix="appclient/config">
|
113
|
-
<include name="sun-acc.xml.template"/>
|
114
|
-
</zipfileset>
|
115
|
-
</zip>
|
116
|
-
|
117
|
-
<delete dir="${tmp.dir}" quiet="true"/>
|
118
|
-
|
119
|
-
<echo message="File created: ${appclientjar}"/>
|
120
|
-
|
121
|
-
</target>
|
122
|
-
|
123
|
-
<target name="do.copy" depends="do.copy.windows, do.copy.unix"/>
|
124
|
-
|
125
|
-
<target name="do.copy.windows" if="windows">
|
126
|
-
<!-- token-replace asenv.bat and appclient.bat -->
|
127
|
-
<copy file="${install.home}/lib/install/templates/asenv.bat.template"
|
128
|
-
tofile="${tmp.dir}/config/asenv.bat"/>
|
129
|
-
<copy file="${install.home}/lib/install/templates/appclient.bat.template"
|
130
|
-
tofile="${tmp.dir}/bin/appclient.bat"/>
|
131
|
-
<replace token="%CONFIG_HOME%"
|
132
|
-
value="..\config"
|
133
|
-
file="${tmp.dir}/bin/appclient.bat"/>
|
134
|
-
<replace file="${tmp.dir}/config/asenv.bat">
|
135
|
-
<replacefilter token="%ANT_HOME%" value=""/>
|
136
|
-
<replacefilter token="%ANT_LIB%" value=""/>
|
137
|
-
<replacefilter token="%PERL_HOME%" value=""/>
|
138
|
-
<replacefilter token="%POINTBASE_HOME%" value=""/>
|
139
|
-
<replacefilter token="%WEBSERVICES_LIB%" value=""/>
|
140
|
-
<replacefilter token="%NSS_HOME%" value=""/>
|
141
|
-
<replacefilter token="%NSS_BIN_HOME%" value=""/>
|
142
|
-
<replacefilter token="%IMQ_LIB%" value="..\imq\lib"/>
|
143
|
-
<replacefilter token="%IMQ_BIN%" value="..\imq\bin"/>
|
144
|
-
<replacefilter token="%CONFIG_HOME%" value="..\config"/>
|
145
|
-
<replacefilter token="%INSTALL_HOME%" value=".."/>
|
146
|
-
<replacefilter token="%JAVA_HOME%" value="${java.home}\.."/>
|
147
|
-
<replacefilter token="%JHELP_HOME%" value=""/>
|
148
|
-
<replacefilter token="%ICU_LIB%" value=""/>
|
149
|
-
<replacefilter token="%LOCALE%" value=""/>
|
150
|
-
<replacefilter token="%DEF_DOMAINS_PATH%" value=""/>
|
151
|
-
<replacefilter token="%ACC_CONFIG%" value="..\config\sun-acc.xml"/>
|
152
|
-
</replace>
|
153
|
-
</target>
|
154
|
-
|
155
|
-
<target name="do.copy.unix" if="unix">
|
156
|
-
<!-- token-replace asenv.conf and appclient -->
|
157
|
-
<copy file="${install.home}/lib/install/templates/asenv.conf.template"
|
158
|
-
tofile="${tmp.dir}/config/asenv.conf"/>
|
159
|
-
<copy file="${install.home}/lib/install/templates/appclient.template"
|
160
|
-
tofile="${tmp.dir}/bin/appclient"/>
|
161
|
-
<replace token="%CONFIG_HOME%"
|
162
|
-
value="../config"
|
163
|
-
file="${tmp.dir}/bin/appclient"/>
|
164
|
-
<replace file="${tmp.dir}/config/asenv.conf">
|
165
|
-
<replacefilter token="%ANT_HOME%" value=""/>
|
166
|
-
<replacefilter token="%ANT_LIB%" value=""/>
|
167
|
-
<replacefilter token="%PERL_HOME%" value=""/>
|
168
|
-
<replacefilter token="%POINTBASE_HOME%" value=""/>
|
169
|
-
<replacefilter token="%WEBSERVICES_LIB%" value=""/>
|
170
|
-
<replacefilter token="%NSS_HOME%" value=""/>
|
171
|
-
<replacefilter token="%NSS_BIN_HOME%" value=""/>
|
172
|
-
<replacefilter token="%IMQ_LIB%" value="${mq.home}/lib"/>
|
173
|
-
<replacefilter token="%IMQ_BIN%" value=""/>
|
174
|
-
<replacefilter token="%CONFIG_HOME%" value="../config"/>
|
175
|
-
<replacefilter token="%INSTALL_HOME%" value=".."/>
|
176
|
-
<replacefilter token="%JAVA_HOME%" value="${java.home}/.."/>
|
177
|
-
<replacefilter token="%JHELP_HOME%" value=""/>
|
178
|
-
<replacefilter token="%ICU_LIB%" value=""/>
|
179
|
-
<replacefilter token="%LOCALE%" value=""/>
|
180
|
-
<replacefilter token="%DEF_DOMAINS_PATH%" value=""/>
|
181
|
-
<replacefilter token="%ACC_CONFIG%" value="../config/sun-acc.xml"/>
|
182
|
-
</replace>
|
183
|
-
</target>
|
184
|
-
|
185
|
-
</project>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# The contents of this file are subject to the terms
|
3
|
-
# of the Common Development and Distribution License
|
4
|
-
# (the License). You may not use this file except in
|
5
|
-
# compliance with the License.
|
6
|
-
#
|
7
|
-
# You can obtain a copy of the license at
|
8
|
-
# https://glassfish.dev.java.net/public/CDDLv1.0.html or
|
9
|
-
# glassfish/bootstrap/legal/CDDLv1.0.txt.
|
10
|
-
# See the License for the specific language governing
|
11
|
-
# permissions and limitations under the License.
|
12
|
-
#
|
13
|
-
# When distributing Covered Code, include this CDDL
|
14
|
-
# Header Notice in each file and include the License file
|
15
|
-
# at glassfish/bootstrap/legal/CDDLv1.0.txt.
|
16
|
-
# If applicable, add the following below the CDDL Header,
|
17
|
-
# with the fields enclosed by brackets [] replaced by
|
18
|
-
# you own identifying information:
|
19
|
-
# "Portions Copyrighted [year] [name of copyright owner]"
|
20
|
-
#
|
21
|
-
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
|
22
|
-
#
|
23
|
-
|
24
|
-
processLauncher.libraries=appserv-rt.jar,appserv-admin.jar
|
25
|
-
processLauncher.main.class=com.sun.enterprise.tools.launcher.ProcessLauncher
|
data/lib/processLauncher.xml
DELETED
@@ -1,189 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
|
3
|
-
<!--
|
4
|
-
The contents of this file are subject to the terms
|
5
|
-
of the Common Development and Distribution License
|
6
|
-
(the License). You may not use this file except in
|
7
|
-
compliance with the License.
|
8
|
-
|
9
|
-
You can obtain a copy of the license at
|
10
|
-
https://glassfish.dev.java.net/public/CDDLv1.0.html or
|
11
|
-
glassfish/bootstrap/legal/CDDLv1.0.txt.
|
12
|
-
See the License for the specific language governing
|
13
|
-
permissions and limitations under the License.
|
14
|
-
|
15
|
-
When distributing Covered Code, include this CDDL
|
16
|
-
Header Notice in each file and include the License file
|
17
|
-
at glassfish/bootstrap/legal/CDDLv1.0.txt.
|
18
|
-
If applicable, add the following below the CDDL Header,
|
19
|
-
with the fields enclosed by brackets [] replaced by
|
20
|
-
you own identifying information:
|
21
|
-
"Portions Copyrighted [year] [name of copyright owner]"
|
22
|
-
|
23
|
-
Copyright 2006 Sun Microsystems, Inc. All rights reserved.
|
24
|
-
-->
|
25
|
-
|
26
|
-
<processes xmlns="http://java.sun.com/j2ee/s1as8se/processLauncher"
|
27
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
28
|
-
xsi:schemaLocation="processLauncher.xsd">
|
29
|
-
<process name="s1as8-server">
|
30
|
-
<!-- This defined process type is used for all server instances that are executed using information
|
31
|
-
extracted from domain.xml. This type uses a large portion of the soon to be depreciated PELaunchFilter's
|
32
|
-
methods to perform the tasks that are involved with digesting domaim.xml properly. In fact, many of
|
33
|
-
the methods were copied in their entirety. For the methods that couldn't be copied, they were re-coded
|
34
|
-
to emulate the functionality. -->
|
35
|
-
<!-- settable jvm options are meant to come from domain.xml -->
|
36
|
-
<sysproperty key="com.sun.aas.instanceName" value="${com.sun.aas.instanceName}"/>
|
37
|
-
<sysproperty key="domain.name" value="${domain.name}"/>
|
38
|
-
<sysproperty key="com.sun.aas.domainName" value="${domain.name}"/>
|
39
|
-
<sysproperty key="com.sun.aas.clusterName" value="${com.sun.aas.clusterName}"
|
40
|
-
if="com.sun.aas.clusterName"/>
|
41
|
-
<sysproperty key="com.sun.aas.installRoot" value="${com.sun.aas.installRoot}"/>
|
42
|
-
<sysproperty key="com.sun.aas.instanceRoot" value="${com.sun.aas.instanceRoot}"/>
|
43
|
-
<sysproperty key="com.sun.aas.configRoot" value="${com.sun.aas.configRoot}"/>
|
44
|
-
<sysproperty key="user.classpath" value="${CLASSPATH}" if="CLASSPATH"/>
|
45
|
-
<sysproperty key="java.util.logging.manager"
|
46
|
-
value="com.sun.enterprise.server.logging.ServerLogManager"/>
|
47
|
-
<sysproperty key="com.sun.enterprise.overrideablejavaxpackages"
|
48
|
-
value="javax.xml.bind,javax.help,javax.portlet"/>
|
49
|
-
<sysproperty key="jmx.invoke.getters" value="true"/>
|
50
|
-
<sysproperty key="com.sun.aas.processLauncher" value="SE"/>
|
51
|
-
<sysproperty key="com.sun.aas.promptForIdentity" value="true"/>
|
52
|
-
|
53
|
-
<main_class classname="com.sun.enterprise.server.PEMain" />
|
54
|
-
<!-- Can't Remove commons-launcher.jar from the exclude list util can remove pemain dependency -->
|
55
|
-
<!--
|
56
|
-
* classpath construction hierarchy:
|
57
|
-
* (javaConfig.getClasspathPrefix)
|
58
|
-
* (processLauncher.Classpath.prefix)
|
59
|
-
* (processLauncher.Classpath.j2se1_4_prefix or processLauncher.Classpath.j2se1_5_or_later_prefix)
|
60
|
-
* (derivedClasspath based on processLauncher.Classpath excludes and includes)
|
61
|
-
* (javaConfig.getServerClasspath)
|
62
|
-
* (javaConfig.getClasspathSuffix)
|
63
|
-
* (javaConfig.profilerClasspath if enabled)
|
64
|
-
* (Environment classpath if enabled)
|
65
|
-
-->
|
66
|
-
<classpath dir="${com.sun.aas.installRoot}/lib" includes=".*jar$"
|
67
|
-
j2se1_4_prefix="${com.sun.aas.installRoot}/lib/appserv-rt.jar${path.separator}${com.sun.aas.javaRoot}/lib/tools.jar"
|
68
|
-
j2se1_5_or_later_prefix="${com.sun.aas.javaRoot}/lib/tools.jar${path.separator}${com.sun.aas.installRoot}/lib/appserv-rt.jar"
|
69
|
-
excludes="appserv-rt.jar,appserv-assemblytool.jar,appserv-tags.jar,deployhelp.jar,jhall.jar,sun-appserv-ant.jar,appserv-jwsacc.jar,appserv-jwsacc-signed.jar,j2ee.jar" />
|
70
|
-
</process>
|
71
|
-
|
72
|
-
<!-- Default process for AS9.x -->
|
73
|
-
<process name="as9-server">
|
74
|
-
<!-- This defined process type is used for all server instances that are executed using information
|
75
|
-
extracted from domain.xml. This type uses a large portion of the soon to be depreciated PELaunchFilter's
|
76
|
-
methods to perform the tasks that are involved with digesting domaim.xml properly. In fact, many of
|
77
|
-
the methods were copied in their entirety. For the methods that couldn't be copied, they were re-coded
|
78
|
-
to emulate the functionality. -->
|
79
|
-
<!-- settable jvm options are meant to come from domain.xml -->
|
80
|
-
<sysproperty key="com.sun.aas.instanceName" value="${com.sun.aas.instanceName}"/>
|
81
|
-
<sysproperty key="domain.name" value="${domain.name}"/>
|
82
|
-
<sysproperty key="com.sun.aas.domainName" value="${domain.name}"/>
|
83
|
-
<sysproperty key="com.sun.aas.clusterName" value="${com.sun.aas.clusterName}"
|
84
|
-
if="com.sun.aas.clusterName"/>
|
85
|
-
<sysproperty key="com.sun.aas.installRoot" value="${com.sun.aas.installRoot}"/>
|
86
|
-
<sysproperty key="com.sun.aas.instanceRoot" value="${com.sun.aas.instanceRoot}"/>
|
87
|
-
<sysproperty key="com.sun.aas.configRoot" value="${com.sun.aas.configRoot}"/>
|
88
|
-
<sysproperty key="user.classpath" value="${CLASSPATH}" if="CLASSPATH"/>
|
89
|
-
<sysproperty key="java.util.logging.manager"
|
90
|
-
value="com.sun.enterprise.server.logging.ServerLogManager"/>
|
91
|
-
<sysproperty key="com.sun.enterprise.overrideablejavaxpackages"
|
92
|
-
value="javax.xml.bind,javax.help,javax.portlet"/>
|
93
|
-
<sysproperty key="jmx.invoke.getters" value="true"/>
|
94
|
-
<sysproperty key="com.sun.aas.processLauncher" value="SE"/>
|
95
|
-
<sysproperty key="com.sun.aas.promptForIdentity" value="true"/>
|
96
|
-
<sysproperty key="com.sun.updatecenter.home" value="${com.sun.aas.installRoot}/updatecenter"/>
|
97
|
-
|
98
|
-
<!-- sysproperties for the new classloader hierarchy. used in PELaunch -->
|
99
|
-
<sysproperty key="com.sun.aas.classloader.sharedChainJars"
|
100
|
-
value="javaee.jar,${com.sun.aas.javaRoot}/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,${com.sun.aas.imqLib}/jaxm-api.jar,${com.sun.aas.imqLib}/fscontext.jar,${com.sun.aas.imqLib}/imqbroker.jar,${com.sun.aas.imqLib}/imqjmx.jar,${com.sun.aas.imqLib}/imqxm.jar,${com.sun.aas.antLib}/ant.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,${com.sun.aas.jdmkHome}/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,${com.sun.aas.installRoot}/updatecenter/lib/updatecenter.jar"/>
|
101
|
-
<sysproperty key="com.sun.aas.classloader.sharedChainJars.ee" value="appserv-se.jar,appserv-ee.jar,${com.sun.aas.hadbRoot}/lib/dbstate.jar,${com.sun.aas.hadbRoot}/lib/hadbjdbc4.jar,jgroups-all.jar,${com.sun.aas.mfwkHome}/lib/mfwk_instrum_tk.jar"/>
|
102
|
-
<sysproperty key="com.sun.aas.classloader.serverClassPath" value="${com.sun.aas.installRoot}/lib/install/applications/jmsra/imqjmsra.jar,${com.sun.aas.imqLib}/jaxm-api.jar,${com.sun.aas.imqLib}/fscontext.jar,${com.sun.aas.imqLib}/imqbroker.jar,${com.sun.aas.imqLib}/imqjmx.jar,${com.sun.aas.antLib}/ant.jar,${com.sun.aas.jdmkHome}/lib/jdmkrt.jar"/>
|
103
|
-
<sysproperty key="com.sun.aas.classloader.serverClassPath.ee" value="${com.sun.aas.hadbRoot}/lib/hadbjdbc4.jar,${com.sun.aas.jdmkHome}/lib/jdmkrt.jar,${com.sun.aas.hadbRoot}/lib/dbstate.jar,${com.sun.aas.hadbRoot}/lib/hadbm.jar,${com.sun.aas.hadbRoot}/lib/hadbmgt.jar,${com.sun.aas.mfwkHome}/lib/mfwk_instrum_tk.jar"/>
|
104
|
-
<sysproperty key="com.sun.aas.classloader.optionalOverrideableChain" value="webservices-rt.jar,webservices-tools.jar,commons-logging.jar,commons-launcher.jar"/>
|
105
|
-
<sysproperty key="com.sun.aas.classloader.optionalOverrideableChain.ee" value=""/>
|
106
|
-
<sysproperty key="com.sun.aas.classloader.appserverChainJars" value="admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar"/>
|
107
|
-
<sysproperty key="com.sun.aas.classloader.appserverChainJars.ee" value=""/>
|
108
|
-
|
109
|
-
<main_class classname="com.sun.enterprise.server.PELaunch" />
|
110
|
-
<!-- Can't Remove commons-launcher.jar from the exclude list util can remove pemain dependency -->
|
111
|
-
<!--
|
112
|
-
* classpath construction hierarchy:
|
113
|
-
* (javaConfig.getClasspathPrefix)
|
114
|
-
* (processLauncher.Classpath.prefix)
|
115
|
-
* (processLauncher.Classpath.j2se1_4_prefix or processLauncher.Classpath.j2se1_5_or_later_prefix)
|
116
|
-
* (derivedClasspath based on processLauncher.Classpath excludes and includes)
|
117
|
-
* (javaConfig.getSystemClasspath)
|
118
|
-
* (javaConfig.getClasspathSuffix)
|
119
|
-
* (javaConfig.profilerClasspath if enabled)
|
120
|
-
* (Environment classpath if enabled)
|
121
|
-
-->
|
122
|
-
<classpath dir="${com.sun.aas.installRoot}/lib"/>
|
123
|
-
</process>
|
124
|
-
|
125
|
-
<process name="s1as8-nodeagent">
|
126
|
-
<!-- This defined process type is specifically created for the Node Agent -->
|
127
|
-
<!--
|
128
|
-
<sysproperty key="-Xdebug"/>
|
129
|
-
<sysproperty key="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1321"/>
|
130
|
-
-->
|
131
|
-
<!-- this defaultLogFile property has to be there for the the native launcher to redirect the log
|
132
|
-
and it is also used for the nodeagent's log in the launcher before rendezvous, the launcher
|
133
|
-
will read domain.xml if it exists and reset this property, if appropriate
|
134
|
-
-->
|
135
|
-
<sysproperty key="com.sun.aas.defaultLogFile" value="${com.sun.aas.instanceRoot}/logs/server.log"/>
|
136
|
-
<sysproperty key="com.sun.aas.instanceName" value="${com.sun.aas.instanceName}"/>
|
137
|
-
<sysproperty key="com.sun.aas.instanceRoot" value="${com.sun.aas.instanceRoot}"/>
|
138
|
-
<sysproperty key="com.sun.aas.configRoot" value="${com.sun.aas.configRoot}"/>
|
139
|
-
<sysproperty key="com.sun.appserv.nss.db" value="${com.sun.aas.instanceRoot}/config"/>
|
140
|
-
<sysproperty key="java.security.auth.login.config" value="${com.sun.aas.instanceRoot}/config/login.conf"/>
|
141
|
-
<sysproperty key="java.endorsed.dirs" value="${java.endorsed.dirs}"/>
|
142
|
-
<sysproperty key="java.util.logging.manager" value="com.sun.enterprise.server.logging.ServerLogManager"/>
|
143
|
-
<sysproperty key="jmx.invoke.getters" value="true"/>
|
144
|
-
<sysproperty key="com.sun.appserv.admin.pluggable.features"
|
145
|
-
value="com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl"/>
|
146
|
-
<sysproperty key="com.sun.appserv.pluggable.features"
|
147
|
-
value="com.sun.enterprise.ee.server.pluggable.EEPluggableFeatureImpl"/>
|
148
|
-
<sysproperty key="com.sun.aas.promptForIdentity" value="true"/>
|
149
|
-
<!-- used for security, do not remove -->
|
150
|
-
<sysproperty key="com.sun.aas.isNodeAgent" value="true"/>
|
151
|
-
|
152
|
-
<main_class classname="com.sun.enterprise.ee.nodeagent.NodeAgentMain" />
|
153
|
-
<!--
|
154
|
-
* classpath construction hierarchy:
|
155
|
-
* (processLauncher.Classpath.prefix)
|
156
|
-
* (processLauncher.Classpath.j2se1_4_prefix or processLauncher.Classpath.j2se1_5_or_later_prefix)
|
157
|
-
* (derivedClasspath based on processLauncher.Classpath excludes and includes)
|
158
|
-
-->
|
159
|
-
<classpath dir="${com.sun.aas.installRoot}/lib"
|
160
|
-
includes="appserv-ee.jar,appserv-se.jar,appserv-admin.jar,appserv-rt.jar,appserv-ext.jar,javaee.jar"/>
|
161
|
-
</process>
|
162
|
-
<process name="s1as-deploytool">
|
163
|
-
<!-- This defined process type is specifically created for the Deployment Tool. -->
|
164
|
-
<!--
|
165
|
-
<sysproperty key="-Xdebug"/>
|
166
|
-
<sysproperty key="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1321"/>
|
167
|
-
-->
|
168
|
-
<sysproperty key="com.sun.aas.installRoot" value="${com.sun.aas.installRoot}"/>
|
169
|
-
<sysproperty key="java.endorsed.dirs" value="${com.sun.aas.installRoot}/lib/endorsed"/>
|
170
|
-
<sysproperty key="com.sun.aas.defaultUserName" value="${com.sun.aas.defaultUserName}"
|
171
|
-
if="com.sun.aas.defaultUserName"/>
|
172
|
-
<sysproperty key="com.sun.aas.defaultPassword" value="${com.sun.aas.defaultPassword}"
|
173
|
-
if="com.sun.aas.defaultPassword"/>
|
174
|
-
<sysproperty key="com.sun.aas.defaultLogFile" value="${user.home}/.deploytool/logfile"
|
175
|
-
if="user.home"/>
|
176
|
-
<sysproperty key="ui.debugMode" value="true" if="com.sun.aas.verboseMode"/>
|
177
|
-
|
178
|
-
<main_class classname="com.sun.enterprise.tools.deployment.ui.Main" />
|
179
|
-
<!--
|
180
|
-
* classpath construction hierarchy:
|
181
|
-
* (processLauncher.Classpath.prefix)
|
182
|
-
* (processLauncher.Classpath.j2se1_4_prefix or processLauncher.Classpath.j2se1_5_or_later_prefix)
|
183
|
-
* (derivedClasspath based on processLauncher.Classpath excludes and includes)
|
184
|
-
-->
|
185
|
-
<classpath dir="${com.sun.aas.installRoot}/lib"
|
186
|
-
prefix="${com.sun.aas.javaRoot}/lib/tools.jar${path.separator}${com.sun.aas.jhelpRoot}/jhall.jar"
|
187
|
-
includes="appserv-assemblytool.jar,activation.jar,appserv-admin.jar,appserv-cmp.jar,appserv-rt.jar,javaee.jar,jaxrpc-impl.jar,appserv-ext.jar,deployhelp.jar,admin-cli.jar,dom.jar,xercesImpl.jar,xalan.jar,mail.jar"/>
|
188
|
-
</process>
|
189
|
-
</processes>
|
@@ -1,94 +0,0 @@
|
|
1
|
-
#--
|
2
|
-
#DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
3
|
-
#
|
4
|
-
#Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
|
5
|
-
#
|
6
|
-
#The contents of this file are subject to the terms of either the GNU
|
7
|
-
#General Public License Version 2 only ("GPL") or the Common Development
|
8
|
-
#and Distribution License("CDDL") (collectively, the "License"). You
|
9
|
-
#may not use this file except in compliance with the License. You can obtain
|
10
|
-
#a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
|
11
|
-
#or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
|
12
|
-
#language governing permissions and limitations under the License.
|
13
|
-
#
|
14
|
-
#When distributing the software, include this License Header Notice in each
|
15
|
-
#file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
|
16
|
-
#Sun designates this particular file as subject to the "Classpath" exception
|
17
|
-
#as provided by Sun in the GPL Version 2 section of the License file that
|
18
|
-
#accompanied this code. If applicable, add the following below the License
|
19
|
-
#Header, with the fields enclosed by brackets [] replaced by your own
|
20
|
-
#identifying information: "Portions Copyrighted [year]
|
21
|
-
#[name of copyright owner]"
|
22
|
-
#
|
23
|
-
#Contributor(s):
|
24
|
-
#
|
25
|
-
#If you wish your version of this file to be governed by only the CDDL or
|
26
|
-
#only the GPL Version 2, indicate your decision by adding "[Contributor]
|
27
|
-
#elects to include this software in this distribution under the [CDDL or GPL
|
28
|
-
#Version 2] license." If you don't indicate a single choice of license, a
|
29
|
-
#recipient has the option to distribute your version of this file under
|
30
|
-
#either the CDDL, the GPL Version 2 or to extend the choice of license to
|
31
|
-
#its licensees as provided above. However, if you add GPL Version 2 code
|
32
|
-
#and therefore, elected the GPL Version 2 license, then the option applies
|
33
|
-
#only if the new code is made subject to such option by the copyright
|
34
|
-
#holder.
|
35
|
-
#++
|
36
|
-
|
37
|
-
require 'rdoc_usage'
|
38
|
-
require 'getoptlong'
|
39
|
-
|
40
|
-
#
|
41
|
-
# Parses command line options
|
42
|
-
#
|
43
|
-
class CommandLineParser
|
44
|
-
def init_opts
|
45
|
-
@@config ||= {
|
46
|
-
:runtimes => '1',
|
47
|
-
:runtimes_min => '1',
|
48
|
-
:runtimes_max => '1',
|
49
|
-
:contextroot => '/',
|
50
|
-
:environment => "development",
|
51
|
-
:app_dir => Dir.pwd,
|
52
|
-
:port => 3000
|
53
|
-
}
|
54
|
-
end
|
55
|
-
|
56
|
-
def parse
|
57
|
-
config = init_opts
|
58
|
-
opts = GetoptLong.new(
|
59
|
-
[ '--port', '-p', GetoptLong::REQUIRED_ARGUMENT ],
|
60
|
-
[ '--environment', '-e', GetoptLong::REQUIRED_ARGUMENT ],
|
61
|
-
[ '--contextroot', '-c', GetoptLong::REQUIRED_ARGUMENT ],
|
62
|
-
[ '--runtimes', '-n', GetoptLong::REQUIRED_ARGUMENT ],
|
63
|
-
[ '--runtimes-min', GetoptLong::REQUIRED_ARGUMENT ],
|
64
|
-
[ '--runtimes-max', GetoptLong::REQUIRED_ARGUMENT ],
|
65
|
-
[ '--version', '-v', GetoptLong::NO_ARGUMENT ],
|
66
|
-
[ '--help', '-h', GetoptLong::NO_ARGUMENT ]
|
67
|
-
)
|
68
|
-
|
69
|
-
opts.each do |opt, arg|
|
70
|
-
case opt
|
71
|
-
when '--version'
|
72
|
-
require 'version'
|
73
|
-
puts "GlassFish gem version: #{GlassFish::VERSION::STRING}\nhttp://glassfishgem.rubyforge.org"
|
74
|
-
exit(0)
|
75
|
-
when '--help'
|
76
|
-
RDoc::usage
|
77
|
-
when '--contextroot'
|
78
|
-
config[:contextroot] = arg
|
79
|
-
when '--port'
|
80
|
-
config[:port] = arg.to_i
|
81
|
-
when '--environment'
|
82
|
-
config[:environment] = arg
|
83
|
-
when '--runtimes'
|
84
|
-
config[:runtimes] = arg
|
85
|
-
when '--runtimes-min'
|
86
|
-
config[:runtimes_min] = arg
|
87
|
-
when '--runtimes-max'
|
88
|
-
config[:runtimes_max] = arg
|
89
|
-
end
|
90
|
-
end
|
91
|
-
config[:app_dir] = ARGV.shift unless ARGV.empty?
|
92
|
-
config
|
93
|
-
end
|
94
|
-
end
|