Class PBXShellScriptBuildPhase
- java.lang.Object
-
- com.facebook.buck.apple.xcode.xcodeproj.PBXObject
-
- com.facebook.buck.apple.xcode.xcodeproj.PBXContainerItem
-
- com.facebook.buck.apple.xcode.xcodeproj.PBXProjectItem
-
- com.facebook.buck.apple.xcode.xcodeproj.PBXBuildPhase
-
- com.facebook.buck.apple.xcode.xcodeproj.PBXShellScriptBuildPhase
-
public class PBXShellScriptBuildPhase extends PBXBuildPhase
Build phase which represents running a shell script.
-
-
Constructor Summary
Constructors Constructor Description PBXShellScriptBuildPhase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getInputFileListPaths()
Returns the list (possibly empty) of .xcfilelist files that contain inputs for the scriptList<String>
getInputPaths()
Returns the list (possibly empty) of files passed as input to the shell script.List<String>
getOutputFileListPaths()
Returns the list (possibly empty) of .xcfilelist files that contain inputs for the scriptList<String>
getOutputPaths()
Returns the list (possibly empty) of files created as output of the shell script.String
getShellPath()
Returns the path to the shell under which the script is to be executed.String
getShellScript()
Gets the contents of the shell script to execute under the shell returned bygetShellPath()
.String
isa()
void
serializeInto(XcodeprojSerializer s)
Populates the serializer with the fields of this object.protected com.dd.plist.NSArray
serializeStringList(List<String> list)
Converts List of Strings into NSArray of NSStringsvoid
setShellPath(String shellPath)
Sets the path to the shell under which the script is to be executed.void
setShellScript(String shellScript)
Sets the contents of the script to execute.-
Methods inherited from class com.facebook.buck.apple.xcode.xcodeproj.PBXBuildPhase
getFiles, getName, setName, setRunOnlyForDeploymentPostprocessing
-
Methods inherited from class com.facebook.buck.apple.xcode.xcodeproj.PBXObject
generateGid, getGlobalID, setGlobalID, stableHash, toString
-
-
-
-
Method Detail
-
isa
public String isa()
- Overrides:
isa
in classPBXProjectItem
- Returns:
- Type name of the serialized object.
-
getInputPaths
public List<String> getInputPaths()
Returns the list (possibly empty) of files passed as input to the shell script. May not be actual paths, because they can have variable interpolations.
-
getInputFileListPaths
public List<String> getInputFileListPaths()
Returns the list (possibly empty) of .xcfilelist files that contain inputs for the script
-
getOutputPaths
public List<String> getOutputPaths()
Returns the list (possibly empty) of files created as output of the shell script. May not be actual paths, because they can have variable interpolations.
-
getOutputFileListPaths
public List<String> getOutputFileListPaths()
Returns the list (possibly empty) of .xcfilelist files that contain inputs for the script
-
getShellPath
@Nullable public String getShellPath()
Returns the path to the shell under which the script is to be executed. Defaults to "/bin/sh".
-
setShellPath
public void setShellPath(String shellPath)
Sets the path to the shell under which the script is to be executed.
-
getShellScript
@Nullable public String getShellScript()
Gets the contents of the shell script to execute under the shell returned bygetShellPath()
.
-
setShellScript
public void setShellScript(String shellScript)
Sets the contents of the script to execute.
-
serializeInto
public void serializeInto(XcodeprojSerializer s)
Description copied from class:PBXObject
Populates the serializer with the fields of this object.- Overrides:
serializeInto
in classPBXBuildPhase
-
-