You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by kristian_widjaja <kr...@yahoo.com> on 2010/02/22 05:32:42 UTC

Click-2.1.0 : Failed to run build.xml for target project-quick-start

Hi all,

To the point, i have been used Click 2.1.0 RC1 for my previous webapp
project that was iniated using ant project-quick-start successfully. Since
Click now is the best web MVC framework (in my opinion :D), so when the
version 2.1.0 is released, i try to build the new project using its project
quick start feature, but unfortunately i got this error as the build is
failed : 

D:\MiddleWare\click-2.1.0\build>ant project-quick-start
Buildfile: build.xml

project-quick-start:
    [input] Please enter the project name (e.g. quickstart): [quickstart]
member-area
    [input] Please enter the root package name (e.g. com.member-area):
[com.member-area]
com.gng.member.area
    [input] Please enter the web app context path: [member-area]
member
    [input] The directory 'D:\MiddleWare/member-area' will be deleted.
Continue (y/n)? (y, n)
y

BUILD FAILED
D:\MiddleWare\click-2.1.0\build\build.xml:950: Problem: failed to create
task or type package
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

I already run the ant get-deps before, so does anyone have the solution for
this? Thanks for all, it's been great using this framework.

Regards,
Kristian Widjaja.
-- 
View this message in context: http://n2.nabble.com/Click-2-1-0-Failed-to-run-build-xml-for-target-project-quick-start-tp4610188p4610188.html
Sent from the click-user mailing list archive at Nabble.com.

Re: Click-2.1.0 : Failed to run build.xml for target project-quick-start

Posted by kristian_widjaja <kr...@yahoo.com>.
Hi Bob,

Thanks for replying soon enough. I've been added the fragment taksdef, and
it's worked now. 

Regards,
Kristian W.
-- 
View this message in context: http://n2.nabble.com/Click-2-1-0-Failed-to-run-build-xml-for-target-project-quick-start-tp4610188p4610887.html
Sent from the click-user mailing list archive at Nabble.com.

Re: Click-2.1.0 : Failed to run build.xml for target project-quick-start

Posted by Bob Schellink <sa...@gmail.com>.
Hi Kristian,

Thanks, the project-quick-start target is missing a Task definition. I've checked in a fix to trunk 
but you can patch your local copy of <click-distribution>/build/build.xml as follows:

  <target name="project-quick-start" description="build application template">
     <!--
     Task Definitions
     -->
     <taskdef name="package"
              classname="org.apache.click.tools.devtasks.PackageTask"
              classpath="lib/click-dev-tasks-1.1.jar"/>

     ...
  </target>

Hope this helps.

kind regards

bob


On 22/02/2010 03:32 PM, kristian_widjaja wrote:
>
> Hi all,
>
> To the point, i have been used Click 2.1.0 RC1 for my previous webapp
> project that was iniated using ant project-quick-start successfully. Since
> Click now is the best web MVC framework (in my opinion :D), so when the
> version 2.1.0 is released, i try to build the new project using its project
> quick start feature, but unfortunately i got this error as the build is
> failed :
>
> D:\MiddleWare\click-2.1.0\build>ant project-quick-start
> Buildfile: build.xml
>
> project-quick-start:
>      [input] Please enter the project name (e.g. quickstart): [quickstart]
> member-area
>      [input] Please enter the root package name (e.g. com.member-area):
> [com.member-area]
> com.gng.member.area
>      [input] Please enter the web app context path: [member-area]
> member
>      [input] The directory 'D:\MiddleWare/member-area' will be deleted.
> Continue (y/n)? (y, n)
> y
>
> BUILD FAILED
> D:\MiddleWare\click-2.1.0\build\build.xml:950: Problem: failed to create
> task or type package
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any<presetdef>/<macrodef>  declarations have taken place.
>
> I already run the ant get-deps before, so does anyone have the solution for
> this? Thanks for all, it's been great using this framework.
>
> Regards,
> Kristian Widjaja.