Java Code Examples for org.gradle.api.tasks.compile.ForkOptions#getMemoryMaximumSize()
The following examples show how to use
org.gradle.api.tasks.compile.ForkOptions#getMemoryMaximumSize() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JavaCompilerArgumentsBuilder.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void addLauncherOptions() { if (!includeLauncherOptions) { return; } ForkOptions forkOptions = spec.getCompileOptions().getForkOptions(); if (forkOptions.getMemoryInitialSize() != null) { args.add("-J-Xms" + forkOptions.getMemoryInitialSize().trim()); } if (forkOptions.getMemoryMaximumSize() != null) { args.add("-J-Xmx" + forkOptions.getMemoryMaximumSize().trim()); } if (forkOptions.getJvmArgs() != null) { args.addAll(forkOptions.getJvmArgs()); } }
Example 2
Source File: DaemonJavaCompiler.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
@Override protected DaemonForkOptions toDaemonOptions(JavaCompileSpec spec) { ForkOptions forkOptions = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions( forkOptions.getMemoryInitialSize(), forkOptions.getMemoryMaximumSize(), forkOptions.getJvmArgs(), Collections.<File>emptyList(), Collections.singleton("com.sun.tools.javac")); }
Example 3
Source File: JavaCompilerArgumentsBuilder.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void addLauncherOptions() { if (!includeLauncherOptions) { return; } ForkOptions forkOptions = spec.getCompileOptions().getForkOptions(); if (forkOptions.getMemoryInitialSize() != null) { args.add("-J-Xms" + forkOptions.getMemoryInitialSize().trim()); } if (forkOptions.getMemoryMaximumSize() != null) { args.add("-J-Xmx" + forkOptions.getMemoryMaximumSize().trim()); } if (forkOptions.getJvmArgs() != null) { args.addAll(forkOptions.getJvmArgs()); } }
Example 4
Source File: DaemonJavaCompiler.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public WorkResult execute(JavaCompileSpec spec) { ForkOptions forkOptions = spec.getCompileOptions().getForkOptions(); DaemonForkOptions daemonForkOptions = new DaemonForkOptions( forkOptions.getMemoryInitialSize(), forkOptions.getMemoryMaximumSize(), forkOptions.getJvmArgs(), Collections.<File>emptyList(), Collections.singleton("com.sun.tools.javac")); CompilerDaemon daemon = compilerDaemonManager.getDaemon(project.getRootProject().getProjectDir(), daemonForkOptions); CompileResult result = daemon.execute(delegate, spec); if (result.isSuccess()) { return result; } throw UncheckedException.throwAsUncheckedException(result.getException()); }
Example 5
Source File: JavaCompilerArgumentsBuilder.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void addLauncherOptions() { if (!includeLauncherOptions) { return; } ForkOptions forkOptions = spec.getCompileOptions().getForkOptions(); if (forkOptions.getMemoryInitialSize() != null) { args.add("-J-Xms" + forkOptions.getMemoryInitialSize().trim()); } if (forkOptions.getMemoryMaximumSize() != null) { args.add("-J-Xmx" + forkOptions.getMemoryMaximumSize().trim()); } if (forkOptions.getJvmArgs() != null) { args.addAll(forkOptions.getJvmArgs()); } }
Example 6
Source File: DaemonJavaCompiler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
@Override protected DaemonForkOptions toDaemonOptions(JavaCompileSpec spec) { ForkOptions forkOptions = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions( forkOptions.getMemoryInitialSize(), forkOptions.getMemoryMaximumSize(), forkOptions.getJvmArgs(), Collections.<File>emptyList(), Collections.singleton("com.sun.tools.javac")); }
Example 7
Source File: JavaCompilerArgumentsBuilder.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void addLauncherOptions() { if (!includeLauncherOptions) { return; } ForkOptions forkOptions = spec.getCompileOptions().getForkOptions(); if (forkOptions.getMemoryInitialSize() != null) { args.add("-J-Xms" + forkOptions.getMemoryInitialSize().trim()); } if (forkOptions.getMemoryMaximumSize() != null) { args.add("-J-Xmx" + forkOptions.getMemoryMaximumSize().trim()); } if (forkOptions.getJvmArgs() != null) { args.addAll(forkOptions.getJvmArgs()); } }
Example 8
Source File: DaemonJavaCompiler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public WorkResult execute(JavaCompileSpec spec) { ForkOptions forkOptions = spec.getCompileOptions().getForkOptions(); DaemonForkOptions daemonForkOptions = new DaemonForkOptions( forkOptions.getMemoryInitialSize(), forkOptions.getMemoryMaximumSize(), forkOptions.getJvmArgs(), Collections.<File>emptyList(), Collections.singleton("com.sun.tools.javac")); CompilerDaemon daemon = compilerDaemonManager.getDaemon(project.getRootProject().getProjectDir(), daemonForkOptions); CompileResult result = daemon.execute(delegate, spec); if (result.isSuccess()) { return result; } throw UncheckedException.throwAsUncheckedException(result.getException()); }
Example 9
Source File: DaemonScalaCompiler.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private DaemonForkOptions createJavaForkOptions(ScalaJavaJointCompileSpec spec) { ForkOptions options = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs()); }
Example 10
Source File: DaemonGroovyCompiler.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private DaemonForkOptions createJavaForkOptions(GroovyJavaJointCompileSpec spec) { ForkOptions options = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs()); }
Example 11
Source File: DaemonScalaCompiler.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private DaemonForkOptions createJavaForkOptions(ScalaJavaJointCompileSpec spec) { ForkOptions options = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs()); }
Example 12
Source File: DaemonGroovyCompiler.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private DaemonForkOptions createJavaForkOptions(GroovyJavaJointCompileSpec spec) { ForkOptions options = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs()); }
Example 13
Source File: DaemonScalaCompiler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private DaemonForkOptions createJavaForkOptions(ScalaJavaJointCompileSpec spec) { ForkOptions options = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs()); }
Example 14
Source File: DaemonGroovyCompiler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private DaemonForkOptions createJavaForkOptions(GroovyJavaJointCompileSpec spec) { ForkOptions options = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs()); }
Example 15
Source File: DaemonScalaCompiler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private DaemonForkOptions createJavaForkOptions(ScalaJavaJointCompileSpec spec) { ForkOptions options = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs()); }
Example 16
Source File: DaemonGroovyCompiler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private DaemonForkOptions createJavaForkOptions(GroovyJavaJointCompileSpec spec) { ForkOptions options = spec.getCompileOptions().getForkOptions(); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs()); }