Changeset 13855

Show
Ignore:
Timestamp:
02/03/05 20:50:11 (4 years ago)
Author:
dixon
Message:

added new property to enable remote debugging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/installer/weblogic/ant-scripts/weblogic-domain-configuration.xml

    r13724 r13855  
    7979 
    8080            <query type="ServerStart" name="${deploy.server.name}" domain="${application.domain}"> 
    81                 <set attribute="Arguments" value="-Xms256m -Xmx512m -Xns128m -Xgc:gencon -Xmanagement -Xnoopt -Dlog4j.configuration=file://${deploy.externalclasses.dir}/log4j-config.xml -Dweblogic.disableMBeanAuthorization=true" /> 
     81 
     82                <set attribute="Arguments" value="${deploy.server.startupArguments}" /> 
    8283                <set attribute="JavaHome" value="${target.jrocket.home}" /> 
    8384                <set attribute="RootDirectory" value="${target.domain.dir}" /> 
     
    188189 
    189190            <query type="ServerStart" name="${deploy.server.name}" domain="${application.domain}"> 
    190                 <set attribute="Arguments" value="-Xms256m -Xmx512m -Xns128m -Xgc:gencon -Xmanagement -Xnoopt -Dlog4j.configuration=file://${deploy.externalclasses.dir}/log4j-config.xml -Dweblogic.disableMBeanAuthorization=true" /> 
     191                <set attribute="Arguments" value="${deploy.server.startupArguments}" /> 
    191192                <set attribute="JavaHome" value="${target.jrocket.home}" /> 
    192193            </query> 
  • trunk/tools/installer/weblogic/setup.sh

    r13841 r13855  
    1717USERADD_LOC="/usr/sbin/useradd" 
    1818PREFS_LOC="/root" 
     19REMOTE_DEBUGGING="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" 
    1920 
    2021 
     
    4546DOWNLOAD_EJOB="no" 
    4647CHKCONFIG="/sbin/chkconfig" 
     48ENABLE_REMOTE_DEBUGGING="no" 
    4749 
    4850 
     
    9294    clear 
    9395    cat <<EOF 
    94   --------- Project.net (v$PRODUCT_VERSION) - Enterprise Project Management --------- 
     96  -- Project.net (v$PRODUCT_VERSION) - Enterprise Project Management -- 
    9597 
    9698Welcome: 
    97 -------- 
    9899 
    99100This installer will guide you through the installation or upgrade of Project.net 
     
    22322421. Download EJOB.jar:         $DOWNLOAD_EJOB 
    22422522. ChkConfig Location:        $CHKCONFIG 
     22623. Enable Remote Debugging:   $ENABLE_REMOTE_DEBUGGING 
    225227 
    226228Q. Cancel Installation 
     
    767769    echo -n "New Value: " 
    768770    read DEPLOY_JVM_XNS 
     771} 
     772 
     773enable_remote_debugging() { 
     774    clear 
     775    cat <<EOF 
     776Enable Remote Debugging?  If so, enter "yes" (no quotes).  !!CAUTION!! While this is valuable for debugging purposes, 
     777enabling remote debugging can represent a major security risk while the application is in production. 
     778 
     779Old Value: $ENABLE_REMOTE_DEBUGGING 
     780EOF 
     781    echo -n "New Value: " 
     782    read ENABLE_REMOTE_DEBUGGING 
    769783} 
    770784 
     
    830844       -Ddeploy.externalclasses.dir=$EXTERNAL_CLASSES_DIR \ 
    831845       -Dinstaller.target.logging=$EXTERNAL_CLASSES_DIR \ 
     846       -Ddeploy.debug.enabled=$ENABLE_REMOTE_DEBUGGING \ 
    832847       -D$INSTALLATION_MODE_PROPERTY=true \ 
    833848       -verbose $SETUP_MODE 
     
    857872DEPLOY_JVM_XMX=$DEPLOY_JVM_XMX 
    858873DEPLOY_JVM_XNS=$DEPLOY_JVM_XNS 
     874DOWNLOAD_EJOB=$DOWNLOAD_EJOB 
     875ENABLE_REMOTE_DEBUGGING=$ENABLE_REMOTE_DEBUGGING 
     876CHKCONFIG=$CHKCONFIG 
    859877EXTERNAL_CLASSES_DIR=$EXTERNAL_CLASSES_DIR" > $PREFS_LOC/.pnet_install_pref 
    860878} 
     
    932950           "21") download_ejob;; 
    933951           "22") chkconfig_location;; 
     952           "23") enable_remote_debugging;; 
    934953 
    935954           "q"|"Q") exit 1;; 
  • trunk/tools/installer/weblogic/setup.xml

    r13746 r13855  
    6868    </target> 
    6969 
     70    <target name="-add-debug-properties" if="control.add.debug.arguments"> 
     71        <property name="deploy.debug.arguments" value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" /> 
     72    </target> 
     73 
     74    <target name="-no-debug-properties" unless="control.add.debug.arguments"> 
     75        <property name="deploy.debug.arguments" value="" /> 
     76    </target> 
     77 
     78    <target name="-test-debug-enabled"> 
     79        <condition property="control.add.debug.arguments"> 
     80            <istrue value="${deploy.debug.enabled}" /> 
     81        </condition> 
     82    </target> 
    7083 
    7184    <!-- setup preperties and directories for use for setup tasks --> 
    72     <target name="-init-properties"
     85    <target name="-init-properties" depends="-test-debug-enabled, -add-debug-properties, -no-debug-properties"
    7386 
    7487        <!-- installer source directories --> 
     
    134147        <property name="deploy.logging.dir" value="${target.domain.dir}/logs" /> 
    135148 
     149        <property name="deploy.server.startupArguments" value="-Xms256m -Xmx512m -Xns128m -Xgc:gencon -Xmanagement -Xnoopt -Dlog4j.configuration=file://${deploy.externalclasses.dir}/log4j-config.xml -Dweblogic.disableMBeanAuthorization=true ${deploy.debug.arguments}" /> 
     150 
    136151    </target> 
    137152