Hi Greg,

Am 14.06.11 18:01, schrieb Greg Gigon:
Three questions:

   1. Is there a way to get a list of all the properties that are set
      on a project that were passed from the command line?

I think, there is no build-in support for listing only properties passed via command line. But you can append "properties" to your gradle call to list all properties of your build, including the ones passed via command line.

   1. I'm trying to use GradleBuild task to execute a build from
      another file. This other file defines multi project build. When
      I define tasks to execute as :someProject:fireAndForget, I got a
      complaint from Gradle saying that it cannot find task
      fireAndForget on project :someProject. I do specify the tasks on
      startupParameter as* ['* :someProject:fireAndForget']. Am I
      doing something wrong?

Try to pass the task to the GradleBuild task using the "tasks" property instead of the startsParameter property:
-------------
task gbuild(type GradleBuild){
    tasks << ':someProject:fireAndForget'
}
-------------

   1. What would be the bast way of using Gradle to invoke different
      tasks from different build files. I've got rather complex build
      and release scripts and would like one Gradle build script to
      execute tasks in particular order.

I am not sure if your different builds follow a specifc pattern. I would suggest to start with manual defined bunch of tasks based of type GradleBuild. If you follow a specific pattern, you may use some groovy scripting for dynamic creation of your GradleBuild typed tasks.

regards,
René

--
-----------------------
regards René

rene groeschke
http://www.breskeby.com
@breskeby

Reply via email to