|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.container.configuration.FileConfig
public class FileConfig
Contains data about configuration files that should be used for the container. This option only works with StandaloneLocal containers. The toDir and toFile are used to tell Cargo where to install the file in reference to the containers home location. toDir and toFile can be used independently or together. If toDir is undefined/null and toFile is foo, the destination of the file will be ${cargo.home}/foo If toDir is foo and the toFile is undefined/null, the destination of the new file will be ${cargo.home}/foo/${original file's name} If toDir is foo and toFile is bar, the destination of the new file will be ${cargo.home}/foo/bar
Constructor Summary | |
---|---|
FileConfig()
Constructor. |
Method Summary | |
---|---|
boolean |
getConfigfile()
Returns true if the file is marked as a configuration file |
java.lang.String |
getFile()
Returns the name of the file to be used. |
boolean |
getOverwrite()
Return true if the file should overwrite an existing file. |
java.lang.String |
getToDir()
Returns the name of the destination directory. |
java.lang.String |
getToFile()
Returns the name of the destination file. |
void |
setConfigfile(boolean configfile)
Set if the destination should be considered a configuration file |
void |
setConfigfile(java.lang.String configfile)
Set if the destination should be considered a configuration file |
void |
setFile(java.lang.String file)
Sets the file to be used. |
void |
setOverwrite(boolean overwrite)
Set if the destination file should be overwritten. |
void |
setOverwrite(java.lang.String overwrite)
Set if the destination file should be overwritten. |
void |
setToDir(java.lang.String todir)
Sets the destination directory to use. |
void |
setToFile(java.lang.String tofile)
Sets the destination file name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileConfig()
Method Detail |
---|
public java.lang.String getFile()
public java.lang.String getToFile()
public java.lang.String getToDir()
public boolean getOverwrite()
public boolean getConfigfile()
public void setFile(java.lang.String file)
file
- The file to usepublic void setToFile(java.lang.String tofile)
tofile
- The destination file namepublic void setToDir(java.lang.String todir)
todir
- The destination directorypublic void setOverwrite(java.lang.String overwrite)
overwrite
- Set to true if files should overwritepublic void setOverwrite(boolean overwrite)
overwrite
- Set to true if files should overwritepublic void setConfigfile(java.lang.String configfile)
configfile
- Set to true if file is a configfilepublic void setConfigfile(boolean configfile)
configfile
- Set to true if file is a configfile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |