This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tcommon-studio-se/org.talend.selenium.tac.test/Server.xml
fzhong 60bb859a5c SWTBot: rename folder 'refactor'
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@73182 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-11-25 10:44:41 +00:00

46 lines
1.2 KiB
XML

<project name="server" default="server" basedir=".">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<target name="os">
<condition property="is.unix">
<os family="unix"/>
</condition>
<condition property="is.windows">
<os family="windows"/>
</condition>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: server
- - - - - - - - - - - - - - - - - -->
<target name="server" depends="os">
<if>
<isset property="is.windows"/>
<then>
<exec executable="cmd" dir="${server.home}/bin"
spawn="true">
<arg value="/c"/>
<arg line="${command}"/>
</exec>
</then>
<else>
<exec executable="sh" dir="${server.home}/bin"
spawn="true">
<arg value="-c"/>
<arg line="sh ${command}"/>
</exec>
</else>
</if>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: jar-path-server
- - - - - - - - - - - - - - - - - -->
<target name="jar-server">
<java jar="${jar.path}" fork="true" spawn="true">
<arg line="${command}"/>
</java>
</target>
</project>