com.atlassian.bamboo.agent.installer.strategy
Class CopyStrategy

java.lang.Object
  extended by com.atlassian.bamboo.agent.installer.strategy.CopyStrategy
All Implemented Interfaces:
InstallStrategy

public class CopyStrategy
extends java.lang.Object


Field Summary
protected static boolean IS_UNIX
           
 
Constructor Summary
CopyStrategy()
           
 
Method Summary
protected  java.io.File getDestFile(InstallableFile file)
          Returns the destination of supplied file.
protected  java.io.InputStream getResourceAsStream(java.lang.String name)
           
 void install(InstallableFile file)
           
protected  void setExecutable(InstallableFile file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_UNIX

protected static final boolean IS_UNIX
Constructor Detail

CopyStrategy

public CopyStrategy()
Method Detail

install

public void install(InstallableFile file)
             throws java.io.IOException
Throws:
java.io.IOException

setExecutable

protected void setExecutable(InstallableFile file)

getDestFile

protected java.io.File getDestFile(InstallableFile file)
Returns the destination of supplied file.

Parameters:
file - the file for which we would like to know the installation destination path
Returns:
destination file

getResourceAsStream

protected java.io.InputStream getResourceAsStream(java.lang.String name)


Copyright © 2011 Atlassian. All Rights Reserved.