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

Michael Wechner michael.wechner at wyona.com
Wed Feb 9 01:47:21 CET 2011


Hi Cedric

Thanks for providing this patch. It's committed now:

Sending        src/build/resource-types/GWT-RT.build.xml
Transmitting file data .
Committed revision 56653.

Thanks

Michael

On 2/8/11 2:33 PM, Cedric Staub wrote:
> 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



More information about the Yanel-development mailing list