Author: rgardler
Date: Wed Feb  1 00:18:37 2012
New Revision: 1238876

URL: http://svn.apache.org/viewvc?rev=1238876&view=rev
Log:
provide a build file that works when following the instructions in the readme 
(the addition of the adminWidgets folder broke the build)

Added:
    incubator/wookie/trunk/widgets/templates/widgets_build.xml
      - copied, changed from r1238032, 
incubator/wookie/trunk/widgets/templates/widgets/build.xml
Modified:
    incubator/wookie/trunk/widgets/templates/readme.txt

Modified: incubator/wookie/trunk/widgets/templates/readme.txt
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/readme.txt?rev=1238876&r1=1238875&r2=1238876&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/templates/readme.txt (original)
+++ incubator/wookie/trunk/widgets/templates/readme.txt Wed Feb  1 00:18:37 2012
@@ -263,9 +263,11 @@ for each widget to customise the common 
 *** Your own widgets directories
 You can create a widgets directory anywhere you want it. To create
 your own directory for widget definitions simply create the directory
-and copy [WOOKIE_HOME]/widgets/template/widgets/build.xml into your
-new directory. Then edit the value of the "wookie.root.dir" property
-so that it points to the root of your Wookie folder.
+and copy [WOOKIE_HOME]/widgets/templates/widgets_build.xml into your
+new directory with the name build.xml. 
+
+Now edit your build.xml file so that the value of the "wookie.root.dir" 
+property so that it points to the root of your Wookie folder.
 
 Each of your widget definitions will then be contained in a sub-folder
 of the directory you created above. That is, you will have a directory
@@ -284,11 +286,12 @@ structure like this:
            +- widget.properties
            +- ...
 
-You can, optionally, have multiple widget directories, each of which
+You can, optionally, have multiple widget sub-directories, each of which
 can be deployed individually or as a whole. In order to do this create
 your additional widget directories and then edit your build.xml file
 in your main widgets directory to ensure that they all get built when
-calling the target "generate-all-widgets".
+calling the target "generate-all-widgets". There is an exmple in the 
+build.xml file you created above.
 
 * Building templatised widgets
 

Copied: incubator/wookie/trunk/widgets/templates/widgets_build.xml (from 
r1238032, incubator/wookie/trunk/widgets/templates/widgets/build.xml)
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/widgets_build.xml?p2=incubator/wookie/trunk/widgets/templates/widgets_build.xml&p1=incubator/wookie/trunk/widgets/templates/widgets/build.xml&r1=1238032&r2=1238876&rev=1238876&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/templates/widgets/build.xml (original)
+++ incubator/wookie/trunk/widgets/templates/widgets_build.xml Wed Feb  1 
00:18:37 2012
@@ -21,18 +21,15 @@
 This is a template file for widget build directories that exist outside of
 the Wookie directory. It is useful for managing widgets in your own projects.
 
-For instructions on how to build and manage your own widgets see 
-http://incubator.apache.org/wookie/docs/widgets.html
-
-
 -->
 <project basedir="." name="widgets_build_file">
 
+    <!-- Edit the value of wookie.root.dir so that it points to your Wookie 
install -->
     <property name="wookie.root.dir" location="../../../"/>
+  
     <property name="default.widget.definitions.dir" location="."/>
     <property name="wookie.template.dir" 
location="${wookie.root.dir}/widgets/templates"/>
-    <property name="template.dir" location="${wookie.template.dir}"/>
-               
+    <property name="template.dir" location="${wookie.template.dir}"/>          
     <import file="${wookie.template.dir}/build.xml"/>
 
     <!-- Generate all widgets in one go. If you create a new
@@ -46,10 +43,13 @@ http://incubator.apache.org/wookie/docs/
        <property name="widget.definitions.dir" 
location="${default.widget.definitions.dir}"/>
       </ant>
 
-      <ant antfile="${wookie.template.dir}/build.xml"
-          target="generate-widgets">
-       <property name="widget.definitions.dir" location="adminWidgets"/>
-      </ant>
+      <!-- If you have subdirectories within your widgets directory, which 
contain
+           widgets then add ant elements to build those subdirectories, for 
ecample
+        <ant antfile="${wookie.template.dir}/build.xml"
+             target="generate-widgets">
+         <property name="widget.definitions.dir" 
location="widgetsSubDirectory"/>
+        </ant>
+      -->
     </target>
 
     <target name="_get-widgets-dir" unless="widget.definitions.dir">


Reply via email to