Class GoCompileStep

  • All Implemented Interfaces:

    public class GoCompileStep
    extends ShellStep
    • Constructor Detail

      • GoCompileStep

        public GoCompileStep​(Path workingDirectory,
                   <String,​String> environment,
                   <String> compilerCommandPrefix,
                   <String> flags,
                             Path packageName,
                             Iterable<Path> srcs,
                             Iterable<Path> asmSrcs,
                   <Path,​Path> importPathMap,
                   <Path> includeDirectories,
                             Optional<Path> asmHeaderPath,
                             boolean allowExternalReferences,
                             com.facebook.buck.features.go.GoPlatform platform,
                             Optional<Path> asmSymabisPath,
                             Path output)
    • Method Detail

      • getShellCommandInternal

        protected<String> getShellCommandInternal​(ExecutionContext context)
        Description copied from class: ShellStep
        Implementations of this method should not have any observable side-effects.
        Specified by:
        getShellCommandInternal in class ShellStep
      • getEnvironmentVariables

        public<String,​String> getEnvironmentVariables​(ExecutionContext context)
        Description copied from class: ShellStep
        Returns the environment variables to include when running this ShellStep.

        By default, this method returns an empty map.

        getEnvironmentVariables in class ShellStep
        context - that may be useful when determining environment variables to include.
      • getShortName

        public String getShortName()
        a short name/description for the command, such as "javac". Should fit on one line.