How to pass parameter to gradle task using tooling-api

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 ??

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

Hope that helps!

Thanks!!! That helped :slight_smile: