Revision: 14434
http://gate.svn.sourceforge.net/gate/?rev=14434&view=rev
Author: valyt
Date: 2011-10-25 14:33:09 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
Use the same workaround (grails compile twice) when building the demo-app.
Modified Paths:
--------------
mimir/trunk/build.xml
Modified: mimir/trunk/build.xml
===================================================================
--- mimir/trunk/build.xml 2011-10-25 14:32:44 UTC (rev 14433)
+++ mimir/trunk/build.xml 2011-10-25 14:33:09 UTC (rev 14434)
@@ -124,21 +124,31 @@
<arg
file="${grails-plugin.dir}/grails-${mimir.web.plugin(name)}-${mimir.web.plugin(version)}.zip"
/>
</grails>
- <grails dir="${grails-demo-webapp.dir}">
- <arg value="dependency-report" />
- </grails>
-
- <grails dir="${grails-demo-webapp.dir}">
- <arg value="compile" />
- </grails>
- <echo>A new Grails application was created at ${grails-demo-webapp.name}.
Please edit the configuration according to your local set-up (see in particular
/grails-app/conf/MimirConfig.groovy). Check the user manual (in
doc/mimir-guide.pdf) for details of what the various configuration options
mean.</echo>
+ <!-- The first compile always fails due to GWT classes being added to the
+ classpath too late. When that happens, we need to run compile a second
time.
+ -->
+ <trycatch>
+ <try>
+ <grails dir="${grails-demo-webapp.dir}">
+ <arg value="compile" />
+ </grails>
+ </try>
+ <catch>
+ <echo>First Grails compilation failed (GWT not on the classpath?).
Re-trying...</echo>
+ <grails dir="${grails-demo-webapp.dir}">
+ <arg value="compile" />
+ </grails>
+ </catch>
+ </trycatch>
+
+ <echo>
+ A new Grails application was created at ${grails-demo-webapp.name}.
+ Please edit the configuration according to your local set-up (see in
+ particular /grails-app/conf/MimirConfig.groovy). Check the user manual (in
+ doc/mimir-guide.pdf) for details of what the various configuration options
+ mean.</echo>
</target>
- <target name="foo">
- <xmlproperty prefix="mimir.web" file="${grails-plugin.dir}/plugin.xml" />
- <echo>${mimir.web.plugin(name)}</echo>
- </target>
-
<target name="all" depends="core, plugins, grails-plugin" />
<target name="clean" depends="grails.command">
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs