if (arguments != null) {
DefaultCommandLineConverter converter = new DefaultCommandLineConverter();
try {
converter.convert(arguments, startParameter);
} catch (CommandLineArgumentException e) {
throw new InternalUnsupportedBuildArgumentException(
"Problem with provided build arguments: " + arguments + ". "
+ "\n" + e.getMessage()
+ "\nEither it is not a valid build option or it is not supported in the target Gradle version."
+ "\nNot all of the Gradle command line options are supported build arguments."
+ "\nExamples of supported build arguments: '--info', '-u', '-p'."