[Yanel-dev] Building GWT resource fails if htdocs directory is missing

Cedric Staub cedric.staub at wyona.com
Tue Feb 8 15:33:41 CET 2011


Hello there.

When building a GWT-based resource, htdocs files are created. But if the
htdocs directory isn't present yet, the build task fails.

Steps to re-create:
* Delete src/contributions/resources/policymanager/htdocs
* Try to build Yanel (including GWT)
* See the build process fail (policymanager will fail to compile)

This is kind of annoying, as the htdocs directory is empty otherwise and
isn't being used by anything else. More specifically, I ran into this
when playing around with the Mercurial mirror. Apparently the
hgsubversion extension that pulls Subversion commits into Mercurial
ignores empty directories.

My suggestion: Just let ant create the target directory if it doesn't
already exist, same as with other build directories. All of our other
build tasks already to this anyway (as far as I can tell).

I even made a patch, and it's just a single line ;-).

Cheers
Cedric
-------------- next part --------------
Index: src/build/resource-types/GWT-RT.build.xml
===================================================================
--- src/build/resource-types/GWT-RT.build.xml	(working copy)
+++ src/build/resource-types/GWT-RT.build.xml	(working copy)
@@ -57,2 +57,3 @@
     <property name="component.build.dir" value="${resource.home.dir}/htdocs"/>
+    <mkdir dir="${component.build.dir}"/>
     <!--property name="component.resources.build.dir" value="${component.build.dir}"/--><!--/resources-->


More information about the Yanel-development mailing list