You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by rg...@apache.org on 2010/02/06 23:02:49 UTC
svn commit: r907321 - in /incubator/wookie/trunk: build.xml
widgets/readme.txt
Author: rgardler
Date: Sat Feb 6 22:02:48 2010
New Revision: 907321
URL: http://svn.apache.org/viewvc?rev=907321&view=rev
Log:
Make it easier to build and deploy widgets. we can now deploy to a running instance of Wookie using ANT
Modified:
incubator/wookie/trunk/build.xml
incubator/wookie/trunk/widgets/readme.txt
Modified: incubator/wookie/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/build.xml?rev=907321&r1=907320&r2=907321&view=diff
==============================================================================
--- incubator/wookie/trunk/build.xml (original)
+++ incubator/wookie/trunk/build.xml Sat Feb 6 22:02:48 2010
@@ -50,6 +50,18 @@
</subant>
</target>
+ <target name="deploy-widget">
+ <input message="What is the short name of the widget you wish to deploy?"
+ addproperty="widget.shortname"/>
+ <ant antfile="${wookie.widgets.dir}/${widget.shortname}/build.xml" target="deploy-widget"/>
+ </target>
+
+ <target name="build-widget">
+ <input message="What is the short name of the widget you wish to build?"
+ addproperty="widget.shortname"/>
+ <ant antfile="${wookie.widgets.dir}/${widget.shortname}/build.xml" target="build-widget"/>
+ </target>
+
<target name="post-compile-core" depends="set-mysql-script-dir, set-derby-script-dir">
<!-- copy database resources -->
<copy file="${project.scripts.dir}/widgetdb.sql" tofile="${project.build.classes.dir}/widgetdb.sql"/>
Modified: incubator/wookie/trunk/widgets/readme.txt
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/readme.txt?rev=907321&r1=907320&r2=907321&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/readme.txt (original)
+++ incubator/wookie/trunk/widgets/readme.txt Sat Feb 6 22:02:48 2010
@@ -22,22 +22,22 @@
Build a Widget
==============
-cd WIDGET_SHORTNAME
-ant
+cd $WOOKIE_HOME
+ant build-widget
-Your widget package will be created in the build directory.
+You will be asked for the name of the widget you wish to build. this name should be the
+name of the folder containing the widget.
-Note, you can also run ant from the widget directory, in which case you will
-be asked for the shortname of the widget you wish to work with.
+Your widget package will be created in the widgets/build directory.
Deploy a widget
===============
-At present it is not possible to automatically deploy to a running widget server (we welcome
-your help on this).
-
-To deploy to a running server you will need to use the admin interface of the server.
-
+To deploy a widget to a running widget server use:
+cd £WOOKIE_HOME
+ant deploy-widget
+You will be asked for the name of the widget you wish to build. this name should be the
+name of the folder containing the widget.
\ No newline at end of file