use of org.gradle.process.CommandLineArgumentProvider in project gradle by gradle.
the class JavaExecHandleBuilder method getAllArguments.
@Override
public List<String> getAllArguments() {
List<String> arguments = new ArrayList<String>(getAllJvmArgs());
arguments.add(mainClass);
arguments.addAll(getArgs());
for (CommandLineArgumentProvider argumentProvider : argumentProviders) {
Iterables.addAll(arguments, argumentProvider.asArguments());
}
return arguments;
}
use of org.gradle.process.CommandLineArgumentProvider in project gradle by gradle.
the class CompileOptions method getAllCompilerArgs.
/**
* Returns all compiler arguments, added to the {@link #getCompilerArgs()} or the {@link #getCompilerArgumentProviders()} property.
*
* @since 4.5
*/
@Internal
public List<String> getAllCompilerArgs() {
ImmutableList.Builder<String> builder = ImmutableList.builder();
builder.addAll(CollectionUtils.stringize(getCompilerArgs()));
for (CommandLineArgumentProvider compilerArgumentProvider : getCompilerArgumentProviders()) {
builder.addAll(compilerArgumentProvider.asArguments());
}
return builder.build();
}
use of org.gradle.process.CommandLineArgumentProvider in project gradle by gradle.
the class ProviderAwareCompilerDaemonForkOptions method getAllJvmArgs.
/**
* Returns the full set of arguments to use to launch the JVM for the compiler process. This includes arguments to define
* system properties, the minimum/maximum heap size, and the bootstrap classpath.
*
* @return The arguments. Returns an empty list if there are no arguments.
*/
@Internal
public List<String> getAllJvmArgs() {
ImmutableList.Builder<String> builder = ImmutableList.builder();
builder.addAll(CollectionUtils.stringize(getJvmArgs()));
for (CommandLineArgumentProvider argumentProvider : getJvmArgumentProviders()) {
builder.addAll(argumentProvider.asArguments());
}
return builder.build();
}
use of org.gradle.process.CommandLineArgumentProvider in project gradle by gradle.
the class DefaultJavaForkOptions method copyTo.
@Override
public JavaForkOptions copyTo(JavaForkOptions target) {
super.copyTo(target);
options.copyTo(target);
if (jvmArgumentProviders != null) {
for (CommandLineArgumentProvider jvmArgumentProvider : jvmArgumentProviders) {
target.jvmArgs(jvmArgumentProvider.asArguments());
}
}
return this;
}
use of org.gradle.process.CommandLineArgumentProvider in project MyLuaApp-Build-Core by dingyi222666.
the class CompileOptions method getAllCompilerArgs.
/**
* Returns all compiler arguments, added to the {@link #getCompilerArgs()} or the {@link #getCompilerArgumentProviders()} property.
*
* @since 4.5
*/
@Internal
public List<String> getAllCompilerArgs() {
ImmutableList.Builder<String> builder = ImmutableList.builder();
builder.addAll(CollectionUtils.stringize(getCompilerArgs()));
for (CommandLineArgumentProvider compilerArgumentProvider : getCompilerArgumentProviders()) {
builder.addAll(compilerArgumentProvider.asArguments());
}
return builder.build();
}
Aggregations