git-svn-id: http://talendforge.org/svn/tis_shared/trunk@73182 f6f1c999-d317-4740-80b0-e6d1abc6f99e
46 lines
1.2 KiB
XML
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>
|
|
|