agent/make/saenv64.bat

changeset 435
a61af66fc99e
child 693
54499b980c23
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/agent/make/saenv64.bat	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,60 @@
     1.4 +@echo off
     1.5 +REM
     1.6 +REM Copyright 2003-2005 Sun Microsystems, Inc.  All Rights Reserved.
     1.7 +REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8 +REM
     1.9 +REM This code is free software; you can redistribute it and/or modify it
    1.10 +REM under the terms of the GNU General Public License version 2 only, as
    1.11 +REM published by the Free Software Foundation.
    1.12 +REM
    1.13 +REM This code is distributed in the hope that it will be useful, but WITHOUT
    1.14 +REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.15 +REM FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.16 +REM version 2 for more details (a copy is included in the LICENSE file that
    1.17 +REM accompanied this code).
    1.18 +REM
    1.19 +REM You should have received a copy of the GNU General Public License version
    1.20 +REM 2 along with this work; if not, write to the Free Software Foundation,
    1.21 +REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.22 +REM
    1.23 +REM Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.24 +REM CA 95054 USA or visit www.sun.com if you need additional information or
    1.25 +REM have any questions.
    1.26 +REM  
    1.27 +REM
    1.28 +
    1.29 +REM FIXME: How do I detect processor on Windows so that
    1.30 +REM AMD-64/IA-64 could be detected? Should I assume
    1.31 +REM MKS/Cygwin here?
    1.32 +
    1.33 +REM This is common environment settings for all SA
    1.34 +REM windows batch scripts
    1.35 +
    1.36 +REM set jre\bin and jre\bin\client (or server) in PATH
    1.37 +REM WINDBG_HOME must point to the Windows Debugging Tools
    1.38 +REM installation directory.
    1.39 +
    1.40 +if "%SA_JAVA%" == "" goto no_sa_java
    1.41 +
    1.42 +goto sa_java_set
    1.43 +
    1.44 +:no_sa_java
    1.45 +set SA_JAVA=java
    1.46 +
    1.47 +:sa_java_set
    1.48 +
    1.49 +set SA_CLASSPATH=..\build\classes;..\src\share\lib\maf-1_0.jar;..\src\share\lib\jlfgr-1_0.jar;..\src\share\lib\js.jar;sa.jar;lib\maf-1_0.jar;lib\jlfgr-1_0.jar;lib\js.jar
    1.50 +
    1.51 +REM For now, only AMD-64, IA-64 stack walking is not working anyway
    1.52 +set SA_LIBPATH=.\src\os\win32\windbg\amd64;.\win32\amd64
    1.53 +
    1.54 +set OPTIONS=-Dsun.jvm.hotspot.debugger.useWindbgDebugger
    1.55 +set OPTIONS=-Dsun.jvm.hotspot.debugger.windbg.imagePath="%PATH%" %OPTIONS%
    1.56 +set OPTIONS=-Dsun.jvm.hotspot.debugger.windbg.sdkHome="%WINDBG_HOME%" %OPTIONS%
    1.57 +
    1.58 +if "%SA_DISABLE_VERS_CHK%" == "" goto vers_chk
    1.59 +set OPTIONS="-Dsun.jvm.hotspot.runtime.VM.disableVersionCheck %OPTIONS%"
    1.60 +
    1.61 +:vers_chk
    1.62 +
    1.63 +set SA_JAVA_CMD=%SA_JAVA% -showversion -cp %SA_CLASSPATH% -Djava.library.path=.%SA_LIBPATH% %OPTIONS%

mercurial