Class WriteAction

    • Constructor Detail

      • WriteAction

        public WriteAction​(ActionRegistry actionRegistry,
                           com.google.common.collect.ImmutableSortedSet<Artifact> inputs,
                           com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs,
                           String contents,
                           boolean isExecutable)
        Create an instance of WriteAction
        Parameters:
        actionRegistry - the DefaultActionRegistry to register this action
        inputs - the input Artifact for this Action. They can be either outputs of other Actions or be source files
        outputs - the outputs for this Action
        contents - the contents to write
        isExecutable - whether the output is executable
      • WriteAction

        public WriteAction​(ActionRegistry actionRegistry,
                           com.google.common.collect.ImmutableSortedSet<Artifact> inputs,
                           com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs,
                           CommandLineArgs contents,
                           boolean isExecutable)
        Create an instance of WriteAction
        Parameters:
        actionRegistry - the DefaultActionRegistry to register this action
        inputs - the input Artifact for this Action. They can be either outputs of other Actions or be source files
        outputs - the outputs for this Action
        contents - the contents to write
        isExecutable - whether the output is executable
    • Method Detail

      • isCacheable

        public boolean isCacheable()
        Description copied from interface: Action
        TODO(bobyf): should we still have this or should we enforce everything to be cacheable
        Returns:
        whether the output Artifacts should be cached