public class InstallIfMissingStrategy extends Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
IS_UNIX |
Constructor and Description |
---|
InstallIfMissingStrategy(InstallStrategy chainedStrategy)
Creates strategy object and links it with supplied strategy.
|
Modifier and Type | Method and Description |
---|---|
protected 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.
|
protected void |
setExecutable(InstallableFile file) |
public InstallIfMissingStrategy(InstallStrategy chainedStrategy)
chainedStrategy
- the strategy that will handle all installation requestspublic void install(InstallableFile file) throws IOException
file
- the file to installIOException
protected void setExecutable(InstallableFile file)
protected File getDestFile(InstallableFile file)
file
- the file for which we would like to know the installation destination pathprotected InputStream getResourceAsStream(String name)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.