On 20/08/2011 18:44, Peter Niederwieser wrote:
You can use project properties (-P)
Yes, I just tried that, but it is a bit inflexible, I fear. Or perhaps I
must find a creative way of using them...
and/or task rules
(http://gradle.org/current/docs/userguide/userguide_single.html#N10DA8). In
Interesting, but still hard to use. Or perhaps I just lacks imagination.
I just found there the application plugin, but apparently it just
provides shortcuts to comm
theory you could also fiddle with gradle.startParameter.taskNames, but I'd
only do this as a last resort.
Mmm...
I wonder if Gradle could have some special kind of project properties,
filling an array (or a List, apparenty) with the parameters following
it. Of course, such parameter should be last in the command line.
Something like:
gradle -Pt=someClass run -A tvf -X -o="a dir" "file name with spaces"
But there is an extra difficulty with handling the OS conventions:
Windows accepts only double quotes, Unix-based systems are more
flexible, etc.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email