Skip to content

Commit

Permalink
Stop passing unused --temp_dir flag to turbine
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 274719762
  • Loading branch information
cushon authored and copybara-github committed Oct 15, 2019
1 parent 4c514f4 commit b8b7454
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ private Artifact createHeaderCompilationAction(
// see b/31371210
builder.addJavacOpt("-Aexperimental_turbine_hjar");
}
builder.setTempDirectory(tempDir(headerJar, ruleContext.getLabel()));
builder.setOutputJar(headerJar);
builder.setOutputDepsProto(headerDeps);
builder.setStrictJavaDeps(attributes.getStrictJavaDeps());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import com.google.devtools.build.lib.rules.java.JavaPluginInfoProvider.JavaPluginInfo;
import com.google.devtools.build.lib.util.LazyString;
import com.google.devtools.build.lib.util.Pair;
import com.google.devtools.build.lib.vfs.PathFragment;
import com.google.devtools.build.lib.view.proto.Deps;
import com.google.protobuf.ExtensionRegistry;
import java.io.IOException;
Expand Down Expand Up @@ -87,7 +86,6 @@ public class JavaHeaderCompileActionBuilder {
private ImmutableList<Artifact> bootclasspathEntries = ImmutableList.of();
@Nullable private Label targetLabel;
@Nullable private String injectingRuleKind;
private PathFragment tempDirectory;
private StrictDepsMode strictJavaDeps = StrictDepsMode.OFF;
private NestedSet<Artifact> directJars = NestedSetBuilder.emptySet(Order.NAIVE_LINK_ORDER);
private NestedSet<Artifact> compileTimeDependencyArtifacts =
Expand Down Expand Up @@ -191,16 +189,6 @@ public JavaHeaderCompileActionBuilder setInjectingRuleKind(@Nullable String inje
return this;
}

/**
* Sets the path to a temporary directory, e.g. for extracting sourcejar entries to before
* compilation.
*/
public JavaHeaderCompileActionBuilder setTempDirectory(PathFragment tempDirectory) {
checkNotNull(tempDirectory, "tempDirectory must not be null");
this.tempDirectory = tempDirectory;
return this;
}

/** Sets the Strict Java Deps mode. */
public JavaHeaderCompileActionBuilder setStrictJavaDeps(StrictDepsMode strictJavaDeps) {
checkNotNull(strictJavaDeps, "strictJavaDeps must not be null");
Expand Down Expand Up @@ -230,7 +218,6 @@ public void build(JavaToolchainProvider javaToolchain, JavaRuntimeInfo hostJavab
checkNotNull(sourceJars, "sourceJars must not be null");
checkNotNull(classpathEntries, "classpathEntries must not be null");
checkNotNull(bootclasspathEntries, "bootclasspathEntries must not be null");
checkNotNull(tempDirectory, "tempDirectory must not be null");
checkNotNull(strictJavaDeps, "strictJavaDeps must not be null");
checkNotNull(directJars, "directJars must not be null");
checkNotNull(compileTimeDependencyArtifacts, "compileTimeDependencyArtifacts must not be null");
Expand Down Expand Up @@ -319,7 +306,6 @@ public void build(JavaToolchainProvider javaToolchain, JavaRuntimeInfo hostJavab
CustomCommandLine.builder()
.addExecPath("--output", outputJar)
.addExecPath("--output_deps", outputDepsProto)
.addPath("--temp_dir", tempDirectory)
.addExecPaths("--bootclasspath", bootclasspathEntries)
.addExecPaths("--sources", sourceFiles)
.addExecPaths("--source_jars", sourceJars)
Expand Down

0 comments on commit b8b7454

Please sign in to comment.