forked from btraceio/btrace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial
- Loading branch information
A. Sundararajan
committed
Mar 6, 2008
1 parent
5a758fd
commit 12545e7
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@echo off | ||
|
||
rem %~dp0 is expanded pathname of the current script under NT | ||
set DEFAULT_BTRACE_HOME=%~dp0.. | ||
|
||
if "%BTRACE_HOME%"=="" set BTRACE_HOME=%DEFAULT_BTRACE_HOME% | ||
set DEFAULT_BTRACE_HOME= | ||
|
||
if not exist "%BTRACE_HOME%\build\btrace-client.jar" goto noBTraceHome | ||
|
||
if "%JAVA_HOME%" == "" goto noJavaHome | ||
%JAVA_HOME%/bin/java -cp %BTRACE_HOME%/build/btrace-client.jar;%JAVA_HOME%/lib/tools.jar com.sun.btrace.compiler.Compiler %* | ||
goto end | ||
:noJavaHome | ||
echo Please set JAVA_HOME before running this script | ||
goto end | ||
:noBTraceHome | ||
echo Please set BTRACE_HOME before running this script | ||
:end |