[Yanel-dev] Doc update: Rapid development
Mehmet Birgi
mehmet.birgi at wyona.com
Fri Mar 26 10:16:59 CET 2010
Hi
I have updated the best practices for rapid development (
http://yanel.wyona.org/en/documentation/best-practices/rapid-development-of=
-components.html)
to be - at least for me - a little clearer. Here is the new version for
reviewing:
Rapid Development of Components
When developing Yanel components, often there is no need to compile
everything. Two cases where this applies are *webapp classes* and *resource
classes*.
Efficiently building webapp classes
Webapp classes are all classes that are under
{yanel.home}/src/webapp/src/java/org/wyona/yanel/servlet. In order to build
and test these classes efficiently, one can run:
{yanel.home}/build.sh compile-webapp copy-basic-webapp-libs
copy-webapp-files-to-tomcat-cluster-node1
instead of running the whole build process. This will build only the webapp
and redeploy it, and should reduce the waiting time from a couple of minutes
to a couple of seconds.
Efficiently building resource classes
Resource classes are the classes that are found in separate directories
under {yanel.home}/src/contributions/resources. These classes all have their
own build.xml files, so to compile them efficiently, one can run the build
as
{yanel.home}/build.sh -f
src/contributions/resources/{resource.dir.name}/build.xml
instead of running the whole build process. Again, this will reduce the
building time significantly, as only the changed resource will be built.
Cheers,
Memo
-- =
Mehmet Birgi
www.wyona.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010032=
6/54dd6300/attachment.htm
More information about the Yanel-development
mailing list