[Yanel-dev] "-f" option and Bug 6898
Guillaume Déflache
guillaume.deflache at wyona.com
Mon Mar 16 12:29:49 CET 2009
Hi!
Michael Wechner schrieb:
> Hi
>
> I received the following error message when running
>
> ./build.sh -f src/contributions/resources/policymanager/build.xml
>
> WARN: Some resource-types may not yet support the '-f' option, please
> refer to bug 6898 for how to implement it.
Well, this is not an error, only a warning which only happens when
`build -f` fails for whatever (possibly unrelated) reason.
Before that, it only failed silently which had me scratching my head
quite a few times before realizing what was wrong, even though I was
familiar with the code involved.
> whereas it is refering to
>
> http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=6898
>
> but since this bug has a lot of comments it is not clear to me what
> really needs to be done.
Oops, I thought I summarized it somehow there, sorry...
> Can somebody quickly state what is the relevant information and I will
> be happy to create some documentation for this
Sure, here you are:
Basically to support `build -f` and other new niceties (like *hint hint"
:P building under Eclipse) your resource-types 'Ant build scripts should
now all look like this:
<project name="yanel-foo-resource">
<import
file="${yanel.source.home}/src/build/resource-types/resource-type.build.xml"/>
</project>
...that is unless you have to do something specific: then in the
importing file you can override the Ant targets defined in the imported
file ( see for example
https://svn.wyona.com/repos/public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/build.xml
), just like you would do it in Java. But better see
http://ant.apache.org/manual/CoreTasks/import.html for more complete
instructions.
Please make sure to link your documentation from build.sh then.
> Thanks
>
> Michi
You are welcome, thanks for asking! :)
Cheers,
Guillaume
More information about the Yanel-development
mailing list