Class DCompileStep

  • All Implemented Interfaces:
    Step

    public class DCompileStep
    extends ShellStep
    • Constructor Detail

      • DCompileStep

        public DCompileStep​(AbsPath workingDirectory,
                            com.google.common.collect.ImmutableMap<String,​String> environment,
                            com.google.common.collect.ImmutableList<String> compiler,
                            com.google.common.collect.ImmutableList<String> flags,
                            Path output,
                            com.google.common.collect.ImmutableCollection<Path> inputs)
    • Method Detail

      • getShellCommandInternal

        protected com.google.common.collect.ImmutableList<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 com.google.common.collect.ImmutableMap<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.

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

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

        public static String getObjectNameForSourceName​(String sourceName)
        Parameters:
        sourceName - name of the source file
        Returns:
        the object file name for the given source file name.