On 22/06/2011 14:49, evgenyg wrote:
What do you think of the following feature suggestion to Gradle: being able
to easily alias commonly repeated commands combinations. For example, I run
*"gradle build deploy -PnoGroovy -x test -x about"* very frequently
(lightweight build&  deploy) and *"gradle clean build deploy"* less
frequently (full build&  deploy).

If I could map, say, "lightweight" or "l" to *"build deploy -PnoGroovy -x
test -x about"* and "full" or "f" to *"clean build deploy"* in
"build.gradle", then I could simply run "gradle lightweight" or "gradle l"
or "gradle f".

This is not a regular task dependency but merely a shortcut to command-line
combinations typed, mapped as a String to some shorter command.

Don't see this as a criticism of your suggestion, but as a possible workaround (before seeing the suggestion implemented?).

Why don't you use the shell facilities of your system to do such aliases? Since these are common tasks, it can be efficient to do it this way. Unix' shells certainly allows that, even Windows allows this (with the not-so-known doskey's macrofile option).

Advantage of your proposal is that such a solution built in Gradle would work on all systems (and comes with the build file).

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to