Dominique Devienne schrieb:
On 9/18/07, Jochen Theodorou <[EMAIL PROTECTED]> wrote:
I am currently looking for ways to fork the Groovy compile task Groovyc
(http://svn.groovy.codehaus.org/browse/groovy/trunk/groovy/groovy-core/src/main/org/codehaus/groovy/ant/Groovyc.java)
MatchingTask is a legacy from the past, it's best to avoid it, and
accept the filesets in your task directly. Not a big deal, but it's
considered better style these days to have explicit named filesets
than a single implement fileset.
it is supported by the task too I think..
I would like to be able to define a maxmem setting and a fork option,
like javac does. Is there a simple way to change an ant task to support
this? I really would like not to have to call the class using the java
task in my build file. Would be very nice if you can give me some
pointers. I looked in the javac task a bit, but it's quite big and I
didn't find the right place.
Use <java> in your code rather than in the build file. It's easy use a
helper task in a task, with the bindToOwner call (not sure of the
name). I've used this technique in the past, and it works well. The
technique does assume you have a command line entry point rich-enough
to specify exactly what you want done entirely on the command line.
then I take it there is no simple way for this... then I have to find
out, how to get the classpath from the taskdef :(
bye blackdrag
--
Jochen "blackdrag" Theodorou
Groovy Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]