Permalink
Browse files

Add windows client courtesy of Chip. [HHQ-2812]

  • Loading branch information...
1 parent 100c5c0 commit 6ed3ef6c81ecdfdbd3bb4ce9360f10f5ce79391b Ryan Morgan committed Apr 16, 2009
Showing with 21 additions and 0 deletions.
  1. +19 −0 bin/hqapi.bat
  2. +2 −0 build.xml
View
@@ -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"
View
@@ -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>

0 comments on commit 6ed3ef6

Please sign in to comment.