it is easy:
<property name="selenium.server.file" value="${src.dir}\_tools\selenium\selenium-server.jar" />
<property name="selenium.grid.hub.file" value="${src.dir}\_tools\selenium\selenium-grid-hub-standalone-1.0.4.jar" />
<property name="selenium.grid.rc.file" value="${src.dir}\_tools\selenium\selenium-grid-remote-control-standalone-1.0.4.jar" />
start hub:
<target name="start.selenium.grid.hub">
<exec program="java" verbose="true" failonerror="false">
<arg value="-jar" />
<arg value="${selenium.grid.hub.file}" />
</exec>
</target>
start rc:
<target name="start.selenium.grid.rc">
<exec program="java" verbose="true" failonerror="false">
<arg value="-classpath" />
<arg value="${selenium.server.file};${selenium.grid.rc.file}" />
<arg value="com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringRemoteControlLauncher" />
</exec>
</target>
or simply from command line:
java -jar D:\work\SeleniumDesign\build_artifacts\artifacts\continuous\source_tools\selenium\selenium-grid-hub-standalone-1.0.4.jar
and
java -classpath D:\work\SeleniumDesign\build_artifacts\artifacts\continuous\source_tools\selenium\selenium-server.jar;D:\work\SeleniumDesign\build_artifacts\artifacts\continuous\source_tools\selenium\selenium-grid-remote-control-standalone-1.0.4.jar com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringRemoteControlLauncher