com.jfw.update
Class GenericFileUpdate

java.lang.Object
  extended by com.jfw.update.JFWUpdate
      extended by com.jfw.update.GenericFileUpdate

public class GenericFileUpdate
extends JFWUpdate

Extract files from the file file. A valid name for the file file is one who start with file, example file-dateandtime.zip.


Field Summary
static java.lang.String GENERIC_FILE
          The name of the files update file.
 
Constructor Summary
GenericFileUpdate()
           
 
Method Summary
 boolean start()
          Elaborate the web files.
 
Methods inherited from class com.jfw.update.JFWUpdate
cleanWebWork, deleteFile, getFiles, getGenericFilePath, getUpdateSrcPath, getUpdateWebTargetPath, getWebappPath, getWebWorkPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERIC_FILE

public static final java.lang.String GENERIC_FILE
The name of the files update file. Only files start with this name will be elaborated by this class.

See Also:
Constant Field Values
Constructor Detail

GenericFileUpdate

public GenericFileUpdate()
Method Detail

start

public boolean start()
              throws java.lang.Exception
Elaborate the web files. The zip file will be extract in the directory set in key update_generic_file_path of jfw.properties.

Specified by:
start in class JFWUpdate
Returns:
true if has been found an update file, false in other case.
Throws:
java.lang.Exception