Class InstallIfMissingStrategy
java.lang.Object
com.atlassian.bamboo.agent.bootstrap.shared.installation.strategy.InstallIfMissingStrategy
- All Implemented Interfaces:
InstallStrategy
This strategy will install a file only if it does not exist already.
It has no real installation method, instead, it delegates the call to supplied chained strategy.
-
Constructor Summary
ConstructorsConstructorDescriptionInstallIfMissingStrategy(String homeDir, InstallStrategy chainedStrategy) Creates strategy object and links it with supplied strategy. -
Method Summary
Modifier and TypeMethodDescriptionprotected FilegetDestFile(InstallableFile file) Returns the destination of supplied file.protected InputStreamgetResourceAsStream(String name) voidinstall(InstallableFile file) This method invokes installation method on chained strategy if the file is missing.
-
Constructor Details
-
Method Details
-
getResourceAsStream