Skip to content

Commit

Permalink
Add windows client courtesy of Chip. [HHQ-2812]
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Morgan committed May 21, 2009
1 parent 100c5c0 commit 6ed3ef6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bin/hqapi.bat
@@ -0,0 +1,19 @@
@echo off

setLocal EnableDelayedExpansion
set CLASSPATH="
for /R ..\ %%a in (*.jar) do (
set CLASSPATH=!CLASSPATH!;%%a
)
set CLASSPATH=!CLASSPATH!"

set _JAVACMD=%JAVACMD%

if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe

:noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=java.exe

"%_JAVACMD%" -cp %CLASSPATH% org.hyperic.hq.hqapi1.tools.Shell "%1"
2 changes: 2 additions & 0 deletions build.xml
Expand Up @@ -97,11 +97,13 @@
<copy todir="${client.dir}/bin">
<fileset dir="${basedir}/bin">
<include name="*.sh"/>
<include name="*.bat"/>
</fileset>
</copy>
<chmod perm="+x" type="file">
<fileset dir="${client.dir}/bin">
<include name="*.sh"/>
<include name="*.bat"/>
</fileset>
</chmod>

Expand Down

0 comments on commit 6ed3ef6

Please sign in to comment.