Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
GWT Ant Task
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pjaol  
View profile  
 More options Jan 8 2007, 3:37 pm
From: "pjaol" <cork...@gmail.com>
Date: Mon, 08 Jan 2007 20:37:52 -0000
Local: Mon, Jan 8 2007 3:37 pm
Subject: GWT Ant Task
Hey folks

Was playing around with GWT and found it a little annoying using either
shell scripts or cumbersome ant targets to compile the code, so I've
written an Ant task extension, and made it available on my site
http://www.nsshutdown.com/viewcvs/viewcvs.cgi/GWTAntTasks/

It essentially creates a new ant task gwtcompile, allowing you to
simply have targets like:

<target name="compile">
        <gwtcompile src="src" out="www" module="com.pjaol.test"
loglevel="error"/>
</target>

I'll contribute it to the google repository, once I have time to deal
with the paper work and of course
if google will accept it. But please feel free to use it in the mean
time.

Thanks
Patrick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Stirling  
View profile  
 More options Jan 8 2007, 4:15 pm
From: "Scott Stirling" <scottstirl...@gmail.com>
Date: Mon, 8 Jan 2007 16:15:26 -0500
Local: Mon, Jan 8 2007 4:15 pm
Subject: Re: [gwt-contrib] GWT Ant Task
Occam's razor. Why is this needed? Does it provide any features I
can't use by calling the compiler with a <java> task element? I'm sure
it was a useful exercise for you, but what does adding one more way to
invoke the compiler from Ant get me? Note, it may seem less
cumbersome, but to use a custom task requires a new configuration step
in build scripts that isn't required otherwise.

Scott Stirling
Framingham, MA

On 1/8/07, pjaol <cork...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pjaol  
View profile  
 More options Jan 8 2007, 4:28 pm
From: "pjaol" <cork...@gmail.com>
Date: Mon, 08 Jan 2007 21:28:40 -0000
Local: Mon, Jan 8 2007 4:28 pm
Subject: Re: GWT Ant Task
Most things in life are not needed, but desired
Quote from the making it better page
http://code.google.com/webtoolkit/makinggwtbetter.html
**Cut
So that's what GWT is all about. It's also useful to say what kinds of
things GWT isn't about...
Language wars
    Why does GWT support the Java programming language instead of
language X? In a word, tools. There are lots of good Java tools. That's
the entire explanation. It isn't that we don't like language X or that
we think the Java programming language is somehow superior. We just
like the tools.
**Paste

Here is a step that simply makes it easier for developers, an addition
to the tool that makes it simpler. Is that not the Zen of GWT?

A standard java task for compiling looks like:
<java classpathref="gwt.path" fork="true"
                classname="com.google.gwt.dev.GWTCompiler">
                <jvmarg line="-XstartOnFirstThread"/>
                <arg line="-out www/"/>
                <arg line="com.pjaol.test"/>
</java>

This simply takes the hassle out of it, and reduces it down to
<gwtcompile src="src" out="www" module="com.pjaol.test" >

Thanks
Patrick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Blum  
View profile  
 More options Jan 8 2007, 4:40 pm
From: "Scott Blum" <sco...@google.com>
Date: Mon, 8 Jan 2007 16:40:42 -0500
Local: Mon, Jan 8 2007 4:40 pm
Subject: Re: [gwt-contrib] GWT Ant Task

We actually had a GWT compile Ant task internally, but then we discovered
the new Ant 1.6 features like <macrodef> and <import>.  I'm thinking at this
point the thing that would require the least amount of configuration would
be a really well-written macrodef.  Something better than the "gwtc" task in
here:

http://google-web-toolkit.googlecode.com/svn/trunk/samples/common.ant...

Scott

On 1/8/07, pjaol <cork...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pjaol  
View profile  
 More options Jan 8 2007, 4:50 pm
From: "pjaol" <cork...@gmail.com>
Date: Mon, 08 Jan 2007 21:50:02 -0000
Local: Mon, Jan 8 2007 4:50 pm
Subject: Re: GWT Ant Task
I like it - Simplicity is good, it also leads to quick adoption!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Stirling  
View profile  
 More options Jan 8 2007, 4:57 pm
From: "Scott Stirling" <scottstirl...@gmail.com>
Date: Mon, 8 Jan 2007 16:57:21 -0500
Local: Mon, Jan 8 2007 4:57 pm
Subject: Re: [gwt-contrib] Re: GWT Ant Task
On 1/8/07, pjaol <cork...@gmail.com> wrote:

> Most things in life are not needed, but desired

I don't think that maxim is as useful in software dev as is Occam's Razor.

> A standard java task for compiling looks like:
> <java classpathref="gwt.path" fork="true"
>                 classname="com.google.gwt.dev.GWTCompiler">
>                 <jvmarg line="-XstartOnFirstThread"/>
>                 <arg line="-out www/"/>
>                 <arg line="com.pjaol.test"/>
> </java>

> This simply takes the hassle out of it, and reduces it down to
> <gwtcompile src="src" out="www" module="com.pjaol.test" >

I dislike it because it needlessly removes one's ability to inspect
the command line parameters, such as the JVM -X option you passed.

Custom tasks in Ant were once very useful as the *only* way to
seriously extend Ant. But then a canon of custom tasks emerged and
tasks like <macrodef>, <script>, <java> and <exec> allow you to do
most things in Ant without writing a task that needs to be compiled,
deployed and configured.

Scott Stirling
Framingham, MA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Blum  
View profile  
 More options Jan 8 2007, 7:36 pm
From: "Scott Blum" <sco...@google.com>
Date: Mon, 8 Jan 2007 19:36:20 -0500
Local: Mon, Jan 8 2007 7:36 pm
Subject: Re: [gwt-contrib] Re: GWT Ant Task

On 1/8/07, Scott Stirling <scottstirl...@gmail.com> wrote:

> I dislike it because it needlessly removes one's ability to inspect
> the command line parameters, such as the JVM -X option you passed.

The one nice thing a task/macrodef gets you is the ability to infer where
GWT is installed (from a system property or environment variable) and the
ability to set default values for certain things (like out="www",
src="src").  In theory, you could have a gwt compile that looked like:

<gwtc module="com.pjaol.test"/>

The one nice thing this gives you is not typing the same values over and
over.  So if your convention changes, you just modify the task.  Of course,
this is a lot more useful in a large project than in a project where you're
only using gwtc once.

> Custom tasks in Ant were once very useful as the *only* way to
> seriously extend Ant. But then a canon of custom tasks emerged and
> tasks like <macrodef>, <script>, <java> and <exec> allow you to do
> most things in Ant without writing a task that needs to be compiled,
> deployed and configured.

Yeah, Ant is much better now than it used to be as far as reuse goes.  Back
in the day, you had to copy-paste everywhere!

Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »