How to pass parameter to gradle task using tooling-api


(jomblick.21) #1

Hi,

In GradleLauncher , we can pass parameters to task using ProjectProperties. Eg: something like this

Map<String,String> projectProperties = new HashMap<String, String>();
  projectProperties.put("Name", "xxxx");
  startParameterArgs.setProjectProperties(projectProperties);

How to achieve the same using gradle-tooling-api ??


(Szczepan Faber) #2

The javadoc contains the samples: http://gradle.org/docs/current/javadoc/org/gradle/tooling/BuildLauncher.html

Hope that helps!


(jomblick.21) #3

Thanks!!! That helped :slight_smile: