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.

Reply via email to