You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by tomasz bandura <to...@gmail.com> on 2010/02/23 06:10:13 UTC
click 2.1.0 quickstart problem
Hello,
I,ve just tried to use quickstart from "8.2 Running Quickstart
chapter" but it cannot generate template.
The required variables are set correctly and libraries are downloaded .
My env: java: 1.6.0_17-b04, OS: Linux
The full log is below:
$ ant project-quick-start
Buildfile: /home/tomasz/Tools/java/click-2.1.0/build/build.xml
project-quick-start:
[input] Please enter the project name (e.g. quickstart): [quickstart]
[input] Please enter the root package name (e.g. com.quickstart):
[com.quickstart]
[input] Please enter the web app context path: [quickstart]
[input] The directory '/home/tomasz/Tools/java/quickstart' will be
deleted. Continue (y/n)? (y, n)
y
[delete] Deleting directory /home/tomasz/Tools/java/quickstart
BUILD FAILED
/home/tomasz/Tools/java/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.
Total time: 4 seconds
What should i do to run it?
Best regards
Tomasz
Re: click 2.1.0 quickstart problem
Posted by Malcolm Edgar <ma...@gmail.com>.
I am looking forward to Click 2.2.0 as well. The next release will be
out much sooner that the long wait for 2.1.0.
regards Malcolm Edgar
On Tue, Feb 23, 2010 at 8:29 PM, Joseph Schmidt
<jo...@yahoo.com> wrote:
>> I,ve just tried to use quickstart from "8.2 Running Quickstart
>> chapter" but it cannot generate template.
>
> There seems to be an assigned request for an improved QuickStart tool:
> https://issues.apache.org/jira/browse/CLK-531
> that is also on the wishlist for the next Click version 2.2.0
> http://cwiki.apache.org/CLICK/click-22-wishlist.html
>
> It looks like it will be possible to generate various types of Click web
> applications depending on the user needs, and since it will run in several
> modes (not just as ANT task), it will be simpler to get started with Click.
>
> Can't wait for Click 2.2.0 :)
>
> Joseph.
>
>
Re: click 2.1.0 quickstart problem
Posted by Joseph Schmidt <jo...@yahoo.com>.
> I,ve just tried to use quickstart from "8.2 Running Quickstart
> chapter" but it cannot generate template.
There seems to be an assigned request for an improved QuickStart tool:
https://issues.apache.org/jira/browse/CLK-531
that is also on the wishlist for the next Click version 2.2.0
http://cwiki.apache.org/CLICK/click-22-wishlist.html
It looks like it will be possible to generate various types of Click web
applications depending on the user needs, and since it will run in
several modes (not just as ANT task), it will be simpler to get started
with Click.
Can't wait for Click 2.2.0 :)
Joseph.
Re: click 2.1.0 quickstart problem
Posted by tomasz bandura <to...@gmail.com>.
Thank you,
It solves that error.
Best regards,
Tomasz
2010/2/23 Bob Schellink <sa...@gmail.com>:
> Hi Tomasz,
>
> This came up yesterday as well, so I'll just paste my reply below:
>
>
> 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 23/02/2010 04:10 PM, tomasz bandura wrote:
>>
>> Hello,
>>
>> I,ve just tried to use quickstart from "8.2 Running Quickstart
>> chapter" but it cannot generate template.
>> The required variables are set correctly and libraries are downloaded .
>>
>> My env: java: 1.6.0_17-b04, OS: Linux
>>
>>
>> The full log is below:
>>
>> $ ant project-quick-start
>> Buildfile: /home/tomasz/Tools/java/click-2.1.0/build/build.xml
>>
>> project-quick-start:
>> [input] Please enter the project name (e.g. quickstart): [quickstart]
>>
>> [input] Please enter the root package name (e.g. com.quickstart):
>> [com.quickstart]
>>
>> [input] Please enter the web app context path: [quickstart]
>>
>> [input] The directory '/home/tomasz/Tools/java/quickstart' will be
>> deleted. Continue (y/n)? (y, n)
>> y
>> [delete] Deleting directory /home/tomasz/Tools/java/quickstart
>>
>> BUILD FAILED
>> /home/tomasz/Tools/java/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.
>>
>>
>> Total time: 4 seconds
>>
>>
>> What should i do to run it?
>>
>> Best regards
>>
>> Tomasz
>>
>
>
Re: click 2.1.0 quickstart problem
Posted by Bob Schellink <sa...@gmail.com>.
Hi Tomasz,
This came up yesterday as well, so I'll just paste my reply below:
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 23/02/2010 04:10 PM, tomasz bandura wrote:
> Hello,
>
> I,ve just tried to use quickstart from "8.2 Running Quickstart
> chapter" but it cannot generate template.
> The required variables are set correctly and libraries are downloaded .
>
> My env: java: 1.6.0_17-b04, OS: Linux
>
>
> The full log is below:
>
> $ ant project-quick-start
> Buildfile: /home/tomasz/Tools/java/click-2.1.0/build/build.xml
>
> project-quick-start:
> [input] Please enter the project name (e.g. quickstart): [quickstart]
>
> [input] Please enter the root package name (e.g. com.quickstart):
> [com.quickstart]
>
> [input] Please enter the web app context path: [quickstart]
>
> [input] The directory '/home/tomasz/Tools/java/quickstart' will be
> deleted. Continue (y/n)? (y, n)
> y
> [delete] Deleting directory /home/tomasz/Tools/java/quickstart
>
> BUILD FAILED
> /home/tomasz/Tools/java/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.
>
>
> Total time: 4 seconds
>
>
> What should i do to run it?
>
> Best regards
>
> Tomasz
>