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
ConstructorDescriptionInstallIfMissingStrategy
(String homeDir, InstallStrategy chainedStrategy) Creates strategy object and links it with supplied strategy. -
Method Summary
Modifier and TypeMethodDescriptionprotected File
getDestFile
(InstallableFile file) Returns the destination of supplied file.protected InputStream
getResourceAsStream
(String name) void
install
(InstallableFile file) This method invokes installation method on chained strategy if the file is missing.
-
Constructor Details
-
Method Details
-
getResourceAsStream