BuildManagement:Ant
Aus Alexander's Wiki
Version vom 16. Oktober 2015, 06:24 Uhr von Admin (Diskussion | Beiträge)
Existenz von Variablen
<if>
<isset property="TEST_CASE" />
<then>
<echo>Variable existiert und Zuweisung folgt</echo>
<property name="propertiesFile" value="import/${TEST_CASE}" />
</then>
<else>
<echo>Variable existiert NICHT</echo>
</else>
</if>
Java ausführen
<target name="Targetname" depends="Abhängigkeit">
<java classname="package.Klasse" failonerror="true" fork="yes">
<arg line="properties1"/>
<classpath refid="Projekt.classpath"/>
</java>
</target>
Return code zurückgeben
<target name="runtex2pdf">
<exec executable="/bin/bash"
dir="."
resultproperty="App.state"
failonerror="true">
<arg line="tex2pdf.sh"/>
</exec>
<echo message="LaTeX generation state: ${App.state}" />
</target>