You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2011/05/20 09:45:28 UTC

svn commit: r1125265 - in /incubator/wookie/trunk: build.properties build.xml scratchpad/widgets/build.xml

Author: scottbw
Date: Fri May 20 07:45:28 2011
New Revision: 1125265

URL: http://svn.apache.org/viewvc?rev=1125265&view=rev
Log:
Updated build scripts so that sets of widgets (extras, scratchpad) can be deployed as part of a build using build properties, in exactly the same manner as features

Modified:
    incubator/wookie/trunk/build.properties
    incubator/wookie/trunk/build.xml
    incubator/wookie/trunk/scratchpad/widgets/build.xml

Modified: incubator/wookie/trunk/build.properties
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/build.properties?rev=1125265&r1=1125264&r2=1125265&view=diff
==============================================================================
--- incubator/wookie/trunk/build.properties (original)
+++ incubator/wookie/trunk/build.properties Fri May 20 07:45:28 2011
@@ -13,6 +13,11 @@ include.extra.features
 # Uncomment to include Scratchpad features
 #include.scratchpad.features
 
+# Uncomment to include Extra widgets
+include.extra.widgets
+# Uncomment to include Scratchpad widgets
+#include.scratchpad.widgets
+
 # The location of your servlets webapp directory, (required: defaults to location for
 # standalone server)
 servletEngine.webapp.dir=build/webapp

Modified: incubator/wookie/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/build.xml?rev=1125265&r1=1125264&r2=1125265&view=diff
==============================================================================
--- incubator/wookie/trunk/build.xml (original)
+++ incubator/wookie/trunk/build.xml Fri May 20 07:45:28 2011
@@ -59,14 +59,29 @@
 	<antcall target="post-deploy-webapp-features-scratchpad"/>  
   	<!-- deploy widgets -->
   	<delete dir="${widget.build.dir}"/>
+	<antcall target="post-deploy-webapp-widgets-extra"/>  
+	<antcall target="post-deploy-webapp-widgets-scratchpad"/>
+  </target>
+	
+  <target name="post-deploy-webapp-widgets-extra" if="include.extra.widgets">
   	<subant antfile="build.xml" target="deploy-widget" inheritall="true">
-  	  <property name="deployToDev" value="true"/>
-  	  <fileset dir="${wookie.widgets.dir}">
-  	  	<include name="${widget.deploy.include}"/>
-  	  	<exclude name="${widget.deploy.exclude}"/>
-  	  </fileset>
-  	</subant>
+  		<property name="deployToDev" value="true"/>
+  	  	  <fileset dir="${wookie.widgets.dir}">
+  	  	  	<include name="${widget.deploy.include}"/>
+  	  	  	<exclude name="${widget.deploy.exclude}"/>
+  	  	  </fileset>
+  	  	</subant>
   </target>
+	
+  <target name="post-deploy-webapp-widgets-scratchpad" if="include.scratchpad.widgets">
+    <subant antfile="build.xml" target="deploy-widget" inheritall="true">
+    	<property name="deployToDev" value="true"/>
+    	 <fileset dir="${user.dir}/scratchpad/widgets">
+    	  	 <include name="${widget.deploy.include}"/>
+    	  	 <exclude name="${widget.deploy.exclude}"/>
+    	 </fileset>
+    </subant>
+   </target>
 
   <target name="post-deploy-webapp-features-extra" if="include.extra.features">
 		<echo>deploying extra features</echo>

Modified: incubator/wookie/trunk/scratchpad/widgets/build.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/build.xml?rev=1125265&r1=1125264&r2=1125265&view=diff
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/build.xml (original)
+++ incubator/wookie/trunk/scratchpad/widgets/build.xml Fri May 20 07:45:28 2011
@@ -18,8 +18,14 @@
 <project default="build-widget" basedir="." name="Wookie_scratchpad_widgets_build_file">
     <property name="wookie.root.dir" location="../.."/>
     <property name="project.build.dir" location="${wookie.root.dir}/build"/>
-    <property name="wookie.widgets.dir" location="."/>
     <property name="widget.template.dir" value="${wookie.root.dir}/widgets/widget-template"/>
     
     <import file="${wookie.root.dir}/widgets/build.xml"/>
+	
+	   <target name="build-widget" depends="_init">
+		    <zip destfile="${widget.build.dir}/${widget.shortname}.wgt"
+		         basedir="${wookie.root.dir}/scratchpad/widgets/${widget.shortname}"
+		    />
+	   		<echo>Widget package created at ${widget.build.dir}/${widget.shortname}.wgt</echo>
+	    </target>
 </project>
\ No newline at end of file



Re: svn commit: r1125265 - in /incubator/wookie/trunk: build.properties build.xml scratchpad/widgets/build.xml

Posted by Ross Gardler <rg...@apache.org>.
On 20/05/2011 09:59, Scott Wilson wrote:
> On 20 May 2011, at 09:44, Ross Gardler wrote:
>
>> Don't forget to document this
>
> Doing it now... :-)

Thank you. I think we need to be more rigid about our documentation (I 
noticed you helping with the migration too, thanks)

Ross

>
>>
>> Sent from my mobile device (so please excuse typos)
>>
>> On 20 May 2011, at 08:45, scottbw@apache.org wrote:
>>
>>> Author: scottbw
>>> Date: Fri May 20 07:45:28 2011
>>> New Revision: 1125265
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1125265&view=rev
>>> Log:
>>> Updated build scripts so that sets of widgets (extras, scratchpad) can be deployed as part of a build using build properties, in exactly the same manner as features
>>>
>>> Modified:
>>>    incubator/wookie/trunk/build.properties
>>>    incubator/wookie/trunk/build.xml
>>>    incubator/wookie/trunk/scratchpad/widgets/build.xml
>>>
>>> Modified: incubator/wookie/trunk/build.properties
>>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/build.properties?rev=1125265&r1=1125264&r2=1125265&view=diff
>>> ==============================================================================
>>> --- incubator/wookie/trunk/build.properties (original)
>>> +++ incubator/wookie/trunk/build.properties Fri May 20 07:45:28 2011
>>> @@ -13,6 +13,11 @@ include.extra.features
>>> # Uncomment to include Scratchpad features
>>> #include.scratchpad.features
>>>
>>> +# Uncomment to include Extra widgets
>>> +include.extra.widgets
>>> +# Uncomment to include Scratchpad widgets
>>> +#include.scratchpad.widgets
>>> +
>>> # The location of your servlets webapp directory, (required: defaults to location for
>>> # standalone server)
>>> servletEngine.webapp.dir=build/webapp
>>>
>>> Modified: incubator/wookie/trunk/build.xml
>>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/build.xml?rev=1125265&r1=1125264&r2=1125265&view=diff
>>> ==============================================================================
>>> --- incubator/wookie/trunk/build.xml (original)
>>> +++ incubator/wookie/trunk/build.xml Fri May 20 07:45:28 2011
>>> @@ -59,14 +59,29 @@
>>>    <antcall target="post-deploy-webapp-features-scratchpad"/>
>>>       <!-- deploy widgets -->
>>>       <delete dir="${widget.build.dir}"/>
>>> +<antcall target="post-deploy-webapp-widgets-extra"/>
>>> +<antcall target="post-deploy-webapp-widgets-scratchpad"/>
>>> +</target>
>>> +
>>> +<target name="post-deploy-webapp-widgets-extra" if="include.extra.widgets">
>>>       <subant antfile="build.xml" target="deploy-widget" inheritall="true">
>>> -<property name="deployToDev" value="true"/>
>>> -<fileset dir="${wookie.widgets.dir}">
>>> -<include name="${widget.deploy.include}"/>
>>> -<exclude name="${widget.deploy.exclude}"/>
>>> -</fileset>
>>> -</subant>
>>> +<property name="deployToDev" value="true"/>
>>> +<fileset dir="${wookie.widgets.dir}">
>>> +<include name="${widget.deploy.include}"/>
>>> +<exclude name="${widget.deploy.exclude}"/>
>>> +</fileset>
>>> +</subant>
>>>   </target>
>>> +
>>> +<target name="post-deploy-webapp-widgets-scratchpad" if="include.scratchpad.widgets">
>>> +<subant antfile="build.xml" target="deploy-widget" inheritall="true">
>>> +<property name="deployToDev" value="true"/>
>>> +<fileset dir="${user.dir}/scratchpad/widgets">
>>> +<include name="${widget.deploy.include}"/>
>>> +<exclude name="${widget.deploy.exclude}"/>
>>> +</fileset>
>>> +</subant>
>>> +</target>
>>>
>>>   <target name="post-deploy-webapp-features-extra" if="include.extra.features">
>>>        <echo>deploying extra features</echo>
>>>
>>> Modified: incubator/wookie/trunk/scratchpad/widgets/build.xml
>>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/build.xml?rev=1125265&r1=1125264&r2=1125265&view=diff
>>> ==============================================================================
>>> --- incubator/wookie/trunk/scratchpad/widgets/build.xml (original)
>>> +++ incubator/wookie/trunk/scratchpad/widgets/build.xml Fri May 20 07:45:28 2011
>>> @@ -18,8 +18,14 @@
>>> <project default="build-widget" basedir="." name="Wookie_scratchpad_widgets_build_file">
>>>     <property name="wookie.root.dir" location="../.."/>
>>>     <property name="project.build.dir" location="${wookie.root.dir}/build"/>
>>> -<property name="wookie.widgets.dir" location="."/>
>>>     <property name="widget.template.dir" value="${wookie.root.dir}/widgets/widget-template"/>
>>>
>>>     <import file="${wookie.root.dir}/widgets/build.xml"/>
>>> +
>>> +<target name="build-widget" depends="_init">
>>> +<zip destfile="${widget.build.dir}/${widget.shortname}.wgt"
>>> +                 basedir="${wookie.root.dir}/scratchpad/widgets/${widget.shortname}"
>>> +            />
>>> +<echo>Widget package created at ${widget.build.dir}/${widget.shortname}.wgt</echo>
>>> +</target>
>>> </project>
>>> \ No newline at end of file
>>>
>>>
>


-- 
rgardler@apache.org
@rgardler

Re: svn commit: r1125265 - in /incubator/wookie/trunk: build.properties build.xml scratchpad/widgets/build.xml

Posted by Scott Wilson <sc...@gmail.com>.
On 20 May 2011, at 09:44, Ross Gardler wrote:

> Don't forget to document this

Doing it now... :-)

> 
> Sent from my mobile device (so please excuse typos)
> 
> On 20 May 2011, at 08:45, scottbw@apache.org wrote:
> 
>> Author: scottbw
>> Date: Fri May 20 07:45:28 2011
>> New Revision: 1125265
>> 
>> URL: http://svn.apache.org/viewvc?rev=1125265&view=rev
>> Log:
>> Updated build scripts so that sets of widgets (extras, scratchpad) can be deployed as part of a build using build properties, in exactly the same manner as features
>> 
>> Modified:
>>   incubator/wookie/trunk/build.properties
>>   incubator/wookie/trunk/build.xml
>>   incubator/wookie/trunk/scratchpad/widgets/build.xml
>> 
>> Modified: incubator/wookie/trunk/build.properties
>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/build.properties?rev=1125265&r1=1125264&r2=1125265&view=diff
>> ==============================================================================
>> --- incubator/wookie/trunk/build.properties (original)
>> +++ incubator/wookie/trunk/build.properties Fri May 20 07:45:28 2011
>> @@ -13,6 +13,11 @@ include.extra.features
>> # Uncomment to include Scratchpad features
>> #include.scratchpad.features
>> 
>> +# Uncomment to include Extra widgets
>> +include.extra.widgets
>> +# Uncomment to include Scratchpad widgets
>> +#include.scratchpad.widgets
>> +
>> # The location of your servlets webapp directory, (required: defaults to location for
>> # standalone server)
>> servletEngine.webapp.dir=build/webapp
>> 
>> Modified: incubator/wookie/trunk/build.xml
>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/build.xml?rev=1125265&r1=1125264&r2=1125265&view=diff
>> ==============================================================================
>> --- incubator/wookie/trunk/build.xml (original)
>> +++ incubator/wookie/trunk/build.xml Fri May 20 07:45:28 2011
>> @@ -59,14 +59,29 @@
>>   <antcall target="post-deploy-webapp-features-scratchpad"/>  
>>      <!-- deploy widgets -->
>>      <delete dir="${widget.build.dir}"/>
>> +    <antcall target="post-deploy-webapp-widgets-extra"/>  
>> +    <antcall target="post-deploy-webapp-widgets-scratchpad"/>
>> +  </target>
>> +    
>> +  <target name="post-deploy-webapp-widgets-extra" if="include.extra.widgets">
>>      <subant antfile="build.xml" target="deploy-widget" inheritall="true">
>> -        <property name="deployToDev" value="true"/>
>> -        <fileset dir="${wookie.widgets.dir}">
>> -            <include name="${widget.deploy.include}"/>
>> -            <exclude name="${widget.deploy.exclude}"/>
>> -        </fileset>
>> -      </subant>
>> +          <property name="deployToDev" value="true"/>
>> +              <fileset dir="${wookie.widgets.dir}">
>> +                  <include name="${widget.deploy.include}"/>
>> +                  <exclude name="${widget.deploy.exclude}"/>
>> +              </fileset>
>> +            </subant>
>>  </target>
>> +    
>> +  <target name="post-deploy-webapp-widgets-scratchpad" if="include.scratchpad.widgets">
>> +    <subant antfile="build.xml" target="deploy-widget" inheritall="true">
>> +        <property name="deployToDev" value="true"/>
>> +         <fileset dir="${user.dir}/scratchpad/widgets">
>> +               <include name="${widget.deploy.include}"/>
>> +               <exclude name="${widget.deploy.exclude}"/>
>> +         </fileset>
>> +    </subant>
>> +   </target>
>> 
>>  <target name="post-deploy-webapp-features-extra" if="include.extra.features">
>>       <echo>deploying extra features</echo>
>> 
>> Modified: incubator/wookie/trunk/scratchpad/widgets/build.xml
>> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/build.xml?rev=1125265&r1=1125264&r2=1125265&view=diff
>> ==============================================================================
>> --- incubator/wookie/trunk/scratchpad/widgets/build.xml (original)
>> +++ incubator/wookie/trunk/scratchpad/widgets/build.xml Fri May 20 07:45:28 2011
>> @@ -18,8 +18,14 @@
>> <project default="build-widget" basedir="." name="Wookie_scratchpad_widgets_build_file">
>>    <property name="wookie.root.dir" location="../.."/>
>>    <property name="project.build.dir" location="${wookie.root.dir}/build"/>
>> -    <property name="wookie.widgets.dir" location="."/>
>>    <property name="widget.template.dir" value="${wookie.root.dir}/widgets/widget-template"/>
>> 
>>    <import file="${wookie.root.dir}/widgets/build.xml"/>
>> +    
>> +       <target name="build-widget" depends="_init">
>> +            <zip destfile="${widget.build.dir}/${widget.shortname}.wgt"
>> +                 basedir="${wookie.root.dir}/scratchpad/widgets/${widget.shortname}"
>> +            />
>> +               <echo>Widget package created at ${widget.build.dir}/${widget.shortname}.wgt</echo>
>> +        </target>
>> </project>
>> \ No newline at end of file
>> 
>> 


Re: svn commit: r1125265 - in /incubator/wookie/trunk: build.properties build.xml scratchpad/widgets/build.xml

Posted by Ross Gardler <rg...@apache.org>.
Don't forget to document this

Sent from my mobile device (so please excuse typos)

On 20 May 2011, at 08:45, scottbw@apache.org wrote:

> Author: scottbw
> Date: Fri May 20 07:45:28 2011
> New Revision: 1125265
> 
> URL: http://svn.apache.org/viewvc?rev=1125265&view=rev
> Log:
> Updated build scripts so that sets of widgets (extras, scratchpad) can be deployed as part of a build using build properties, in exactly the same manner as features
> 
> Modified:
>    incubator/wookie/trunk/build.properties
>    incubator/wookie/trunk/build.xml
>    incubator/wookie/trunk/scratchpad/widgets/build.xml
> 
> Modified: incubator/wookie/trunk/build.properties
> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/build.properties?rev=1125265&r1=1125264&r2=1125265&view=diff
> ==============================================================================
> --- incubator/wookie/trunk/build.properties (original)
> +++ incubator/wookie/trunk/build.properties Fri May 20 07:45:28 2011
> @@ -13,6 +13,11 @@ include.extra.features
> # Uncomment to include Scratchpad features
> #include.scratchpad.features
> 
> +# Uncomment to include Extra widgets
> +include.extra.widgets
> +# Uncomment to include Scratchpad widgets
> +#include.scratchpad.widgets
> +
> # The location of your servlets webapp directory, (required: defaults to location for
> # standalone server)
> servletEngine.webapp.dir=build/webapp
> 
> Modified: incubator/wookie/trunk/build.xml
> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/build.xml?rev=1125265&r1=1125264&r2=1125265&view=diff
> ==============================================================================
> --- incubator/wookie/trunk/build.xml (original)
> +++ incubator/wookie/trunk/build.xml Fri May 20 07:45:28 2011
> @@ -59,14 +59,29 @@
>    <antcall target="post-deploy-webapp-features-scratchpad"/>  
>       <!-- deploy widgets -->
>       <delete dir="${widget.build.dir}"/>
> +    <antcall target="post-deploy-webapp-widgets-extra"/>  
> +    <antcall target="post-deploy-webapp-widgets-scratchpad"/>
> +  </target>
> +    
> +  <target name="post-deploy-webapp-widgets-extra" if="include.extra.widgets">
>       <subant antfile="build.xml" target="deploy-widget" inheritall="true">
> -        <property name="deployToDev" value="true"/>
> -        <fileset dir="${wookie.widgets.dir}">
> -            <include name="${widget.deploy.include}"/>
> -            <exclude name="${widget.deploy.exclude}"/>
> -        </fileset>
> -      </subant>
> +          <property name="deployToDev" value="true"/>
> +              <fileset dir="${wookie.widgets.dir}">
> +                  <include name="${widget.deploy.include}"/>
> +                  <exclude name="${widget.deploy.exclude}"/>
> +              </fileset>
> +            </subant>
>   </target>
> +    
> +  <target name="post-deploy-webapp-widgets-scratchpad" if="include.scratchpad.widgets">
> +    <subant antfile="build.xml" target="deploy-widget" inheritall="true">
> +        <property name="deployToDev" value="true"/>
> +         <fileset dir="${user.dir}/scratchpad/widgets">
> +               <include name="${widget.deploy.include}"/>
> +               <exclude name="${widget.deploy.exclude}"/>
> +         </fileset>
> +    </subant>
> +   </target>
> 
>   <target name="post-deploy-webapp-features-extra" if="include.extra.features">
>        <echo>deploying extra features</echo>
> 
> Modified: incubator/wookie/trunk/scratchpad/widgets/build.xml
> URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/build.xml?rev=1125265&r1=1125264&r2=1125265&view=diff
> ==============================================================================
> --- incubator/wookie/trunk/scratchpad/widgets/build.xml (original)
> +++ incubator/wookie/trunk/scratchpad/widgets/build.xml Fri May 20 07:45:28 2011
> @@ -18,8 +18,14 @@
> <project default="build-widget" basedir="." name="Wookie_scratchpad_widgets_build_file">
>     <property name="wookie.root.dir" location="../.."/>
>     <property name="project.build.dir" location="${wookie.root.dir}/build"/>
> -    <property name="wookie.widgets.dir" location="."/>
>     <property name="widget.template.dir" value="${wookie.root.dir}/widgets/widget-template"/>
> 
>     <import file="${wookie.root.dir}/widgets/build.xml"/>
> +    
> +       <target name="build-widget" depends="_init">
> +            <zip destfile="${widget.build.dir}/${widget.shortname}.wgt"
> +                 basedir="${wookie.root.dir}/scratchpad/widgets/${widget.shortname}"
> +            />
> +               <echo>Widget package created at ${widget.build.dir}/${widget.shortname}.wgt</echo>
> +        </target>
> </project>
> \ No newline at end of file
> 
>