Method Summary |
|
public void | add(ResourceCollection res) Add a collection of resources to archive. |
protected boolean | archiveIsUpToDate(String[] files) Is the archive up to date in relationship to a list of files. |
protected boolean | archiveIsUpToDate(String[] files, File dir) Is the archive up to date in relationship to a list of files.
Parameters: files - the files to check Parameters: dir - the base directory for the files. |
protected boolean | archiveIsUpToDate(Resource r) Is the archive up to date in relationship to a list of files. |
protected TarFileSet | asTarFileSet(ArchiveFileSet archiveFileSet) Copies fullpath, prefix and permission attributes from the
ArchiveFileSet to a new TarFileSet (or returns it unchanged if
it already is a TarFileSet). |
protected boolean | check(ResourceCollection rc) Checks whether the archive is out-of-date with respect to the resources
of the given collection. |
protected boolean | check(File basedir, String[] files) |
public TarFileSet | createTarFileSet() |
public void | execute() |
final protected static String[] | getFileNames(FileSet fs) Grabs all included files and directors from the FileSet and
returns them as an array of (relative) file names.
Parameters: fs - the fileset to operate on. |
final protected static boolean | isFileFileSet(ResourceCollection rc) whether the given resource collection is a (subclass of)
FileSet that only contains file system resources.
Parameters: rc - the resource collection to check. |
public void | setBasedir(File baseDir) This is the base directory to look in for things to tar. |
public void | setCompression(TarCompressionMethod mode) Set compression method. |
public void | setDestFile(File destFile) Set is the name/location of where to create the tar file. |
public void | setLongfile(String mode) Set how to handle long files, those with a path>100 chars. |
public void | setLongfile(TarLongFileMode mode) Set how to handle long files, those with a path>100 chars. |
public void | setTarfile(File tarFile) Set is the name/location of where to create the tar file. |
protected boolean | supportsNonFileResources() Whether this task can deal with non-file resources.
This implementation returns true only if this task is
<tar>. |
protected void | tar(ResourceCollection rc, TarOutputStream tOut) Adds the resources contained in this collection to the archive. |
protected void | tarFile(File file, TarOutputStream tOut, String vPath, TarFileSet tarFileSet) |
protected void | tarResource(Resource r, TarOutputStream tOut, String vPath, TarFileSet tarFileSet) |