Updates to build.xml to get lti to build under script

This commit is contained in:
Fred Dixon 2012-10-28 15:25:17 -04:00
parent 79cc2379d5
commit 02af99a3d8

View File

@ -7,6 +7,7 @@
<property name="ivy.home" value="${user.home}/.ant" /> <property name="ivy.home" value="${user.home}/.ant" />
<property name="ivy.jar.dir" value="${ivy.home}/lib" /> <property name="ivy.jar.dir" value="${ivy.home}/lib" />
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy-${ivy.install.version}.jar" /> <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy-${ivy.install.version}.jar" />
<property name="grails" value="grails" />
<target name="download-ivy" unless="offline"> <target name="download-ivy" unless="offline">
<available file="${ivy.jar.file}" property="ivy.available"/> <available file="${ivy.jar.file}" property="ivy.available"/>
@ -16,7 +17,7 @@
<target name="-download-ivy" unless="ivy.available"> <target name="-download-ivy" unless="ivy.available">
<mkdir dir="${ivy.jar.dir}"/> <mkdir dir="${ivy.jar.dir}"/>
<!-- download Ivy from web site so that it can be used even without any special installation --> <!-- download Ivy from web site so that it can be used even without any special installation -->
<get src="http://www.apache.org/dist/ant/ivy/${ivy.install.version}/apache-ivy-${ivy.install.version}-bin.zip" <get src="http://archive.apache.org/dist/ant/ivy/${ivy.install.version}/apache-ivy-${ivy.install.version}-bin.zip"
dest="${ivy.home}/ivy.zip" usetimestamp="true" verbose="true"/> dest="${ivy.home}/ivy.zip" usetimestamp="true" verbose="true"/>
<unzip src="${ivy.home}/ivy.zip" dest="${ivy.jar.dir}"> <unzip src="${ivy.home}/ivy.zip" dest="${ivy.jar.dir}">
<patternset> <patternset>
@ -115,8 +116,12 @@
<!-- ================================= <!-- =================================
target: war target: war
================================= --> ================================= -->
<target name="war" depends="-init-grails" description="--> Creates a WAR of a Grails application"> <target name="war" depends="-init-grails" description="--> Creates a WAR of a Grails application">
<grails script="War"/> <exec executable="${grails}" failonerror="true">
<arg value="war"/>
</exec>
<!--grails script="War"/-->
</target> </target>
<!-- ================================= <!-- =================================