Author: rgardler
Date: Wed Nov 16 10:54:44 2011
New Revision: 1202631
URL: http://svn.apache.org/viewvc?rev=1202631&view=rev
Log:
allow a single widgets, or a family of widgets to be deployed
Modified:
incubator/wookie/trunk/widgets/templates/build.xml
incubator/wookie/trunk/widgets/templates/readme.txt
Modified: incubator/wookie/trunk/widgets/templates/build.xml
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/build.xml?rev=1202631&r1=1202630&r2=1202631&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/templates/build.xml (original)
+++ incubator/wookie/trunk/widgets/templates/build.xml Wed Nov 16 10:54:44 2011
@@ -32,19 +32,25 @@
<target name="generate-widgets"
description="Generate all the required widgets from the templates">
+
+ <property name="widget.include" value="*"/>
+
<echo message="+------------------------------------------+"/>
<echo message="| |"/>
<echo message="| Generating widgets |"/>
+ <echo message="| include: ${widget.include} |"/>
<echo message="| in: ${basedir} |"/>
<echo message="| |"/>
<echo message="+------------------------------------------+"/>
+
<subant target="_generate_and_deploy_widget"
genericantfile="${basedir}/build.xml"
inheritall="true">
<dirset dir="widgets">
- <include name="*"/>
+ <include name="${widget.include}"/>
+ <exclude name="common"/>
</dirset>
</subant>
</target>
Modified: incubator/wookie/trunk/widgets/templates/readme.txt
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/readme.txt?rev=1202631&r1=1202630&r2=1202631&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/templates/readme.txt (original)
+++ incubator/wookie/trunk/widgets/templates/readme.txt Wed Nov 16 10:54:44 2011
@@ -403,5 +403,9 @@ versions of the templates.
** Building the real widgets
To build and deploy the Rave in Context widgets run "ant
-generate-widgets".
+generate-widgets". You can optionally add
+"-Dwidget.include=WIDGET_PATTERN" where "WIDGET_PATTERN" is an include
+pattern that describes which widgets should be generated and
+deployed. For example, "and generate-widgets -Dwidget.include=*browse"
+will generate all widgets that have a name ending in "browse".