Author: rgardler
Date: Wed Mar 9 22:36:46 2011
New Revision: 1080039
URL: http://svn.apache.org/viewvc?rev=1080039&view=rev
Log:
Don't require deploy-widget to be run from root directory. This was confusing
users since the seed-widget is done from the widgets directory.
Now it works from either root or widgets
Modified:
incubator/wookie/trunk/widgets/build.xml
Modified: incubator/wookie/trunk/widgets/build.xml
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/build.xml?rev=1080039&r1=1080038&r2=1080039&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/build.xml (original)
+++ incubator/wookie/trunk/widgets/build.xml Wed Mar 9 22:36:46 2011
@@ -17,6 +17,7 @@
-->
<project default="build-widget" basedir="." name="Wookie_widgets_build_file">
<property name="project.build.dir" location="../build"/>
+ <property name="widget.deploy.dir"
location="../build/webapp/wookie/deploy"/>
<property name="wookie.widgets.dir" location="."/>
<property name="widget.template.dir"
value="${wookie.widgets.dir}/widget-template"/>
<property name="widget.build.dir" value="${project.build.dir}/widgets"/>
@@ -55,15 +56,11 @@
unless="widget.width">
<input message="What is the default width of the widget you
wish to create?" addproperty="widget.width" defaultvalue="320"/>
</target>
-
- <target name="_validate">
- <fail unless="deployToDev" message="Please run your ant targets
from within the root directory of Wookie to ensure your environment is
correctly set up."/>
- </target>
<target name="_clean">
</target>
- <target name="_init" depends="_validate, _get-widget-name, _clean">
+ <target name="_init" depends="_get-widget-name, _clean">
<delete file="${widget.build.dir}/${widget_name}" failonerror="false"/>
<mkdir dir="${widget.build.dir}"/>
</target>