... |
<target name="prepare" depends="checkup"> |
<!-- create property yul_present if a matching file was found with the name of the file as value --> |
<find dir="${tomcat}/common/lib" file="roxes-yul-*.jar" property="yul_present"/> |
|
<!-- call target install-yul if the file exists --> |
<call unless="yul_present" target="install-yul"/> |
|
<input validargs="Install YUL examples,Create new YUL web application,Nothing more" addproperty="option"> |
Select optional installations. |
</input> |
|
<compare arg1="${option}" arg2="Install YUL examples"> |
<equal property="install-examples"/> |
</compare> |
|
|
<condition property="windows-integration"> |
<and> |
<isset property="install-examples"/> |
<os family="windows"/> |
</and> |
</condition> |
<call if="windows-integration" target="install-windows-integration"/> |
|
|
<call if="install-examples" target="install-examples"/> |
|
|
<compare arg1="${option}" arg2="Create new YUL web application"> |
<equal property="install-new"/> |
</compare> |
<call if="install-new" target="install-new"/> |
</target> |
|
<target name="install-yul" depends="license"> |
<unzip src="dist/common.zip" dest="${tomcat}/common"/> |
</target> |
... |