Add an attribute to the section
add a file under WEB-INF/lib/
add files under WEB-INF/classes
Add an attribute to the manifest - it is added to the main section.
Add an attribute to the section.
Allows the manifest for the archive file to be provided inline
in the build file rather than in an external file.
Add a section to the manifest
Add a continuation line from the Manifest file.
Inflater needs an extra dummy byte for nowrap - see
Inflater's javadocs.
Adds an extra fields - replacing an already present extra field
of the same type.
true when we are adding new files into the Zip file, as opposed
to adding back the unchanged files
add a file under WEB-INF/lib/
add files under WEB-INF/lib/
Ensure all parent dirs of a given entry have been added.
Add a new value to this attribute - making it multivalued.
files to add under WEB-INF;
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Adds Unix file permission and UID/GID fields as well as symbolic
link handling.
An attribute for the manifest.
Construct an empty attribute
Construct an attribute by parsing a line from the Manifest
Construct a manifest by specifying its name and value
The Class-Path Header is special - it can be duplicated
The From Header is disallowed in a Manifest
The standard manifest version header
The Name Attribute is the first in a named section
The standard Signature Version header
Index used to retain the attribute ordering
The section's attributes.
Get the available data that can be read from the current
entry in the archive.
An input stream that decompresses from the BZip2 format (without the file
header chars) to be read as any other stream.
An output stream that compresses into the BZip2 format (without the file
header chars) into another stream.
Length of central directory.
Start of central directory.
Extra field data in central directory - without
Header-ID or length specifier.
CFH_LEN - static field in class org.codehaus.plexus.archiver.zip.
ZipFile central file header signature
Try to get a handle to the setCompressedSize method.
The length of the checksum field in a header buffer.
Do any clean up necessary to allow this instance to be used again.
Make sure we don't think we already have a application.xml next
time this task gets executed.
Make sure we don't think we already have a MANIFEST next time this task
gets executed.
Make sure we don't think we already have a web.xml next time this task
gets executed.
Ends the TAR archive and closes the underlying OutputStream.
Closes this output stream and releases any system resources
associated with the stream.
Writes all necessary data for this entry.
perform the GZip compression operation.
subclasses must implement this method to do their compression
perform the GZip compression operation.
This method wraps the output stream with the
corresponding compression method
Helper for JDK 1.1 <-> 1.2 incompatibility.
compress a file to an output stream
compress a stream to an output stream
Compute the checksum of a tar entry header.
merged manifests added through addConfiguredManifest
Is this value included in the enumeration?
Copies the contents of the current tar archive entry directly into
an output stream.
Copies the specified file to the specified path, creating any ancestor directory
structure as necessary.
Instance used to calculate checksums.
CRC - class org.codehaus.plexus.archiver.bzip2.
CRC A simple class the hold and calculate the CRC for sanity checking
of the data.
CRC instance to avoid parsing DEFLATED data twice.
CRC() - constructor for class org.codehaus.plexus.archiver.bzip2.
CRC crc32Table - static field in class org.codehaus.plexus.archiver.bzip2.
CRC whether to really create the archive in createEmptyZip, will
get set in getResourcesToAdd.
Creates the correct ArchiveEntry instance for either a FILE or a
DIRECTORY.
Create the index list to speed up classloading.
For multivalued attributes, this is the index of the attribute
currently being defined.
Maps ZipEntrys to Longs, recording the offsets of the actual file data.
Data for local header data
data descriptor signature
This method wraps the input stream with the
corresponding decompression method
This Deflater object is used for output.
Default value for the dirmode attribute.
Default permissions bits for directories
Default permissions for directories.
Default value for the filemode attribute.
Default permissions bits for files
Default permissions for plain files.
Default permissions for symbolic links.
Default Manifest version if one is not specified
Writes next block of compressed data to the output stream.
Compression method for deflated entries.
our web.xml deployment descriptor
flag set if the descriptor is added
The length of the devices field in a header buffer.
The entry's major device number.
The entry's minor device number.
A plexus archiver implementation that stores the files to archive in a
directory.
Is this an entry for a directory?
Smallest date/time ZIP can handle.
Encoding to use for filenames, defaults to the platform's
default encoding.
The encoding to use for filenames and the file comment.
The encoding to use for filenames and the file comment.
Maps ZipEntrys to Longs, recording the offsets of the local
file headers.
List of ZipEntries written so far.
Helper class for attributes that can only take one of a fixed list
of values.
end of central dir signature
EOL - static field in class org.codehaus.plexus.archiver.jar.
Manifest The End-Of-Line marker in manifests
Determine if the two entries are equal.
Override to make two instances with same value equal.
Override to make two instances with same value equal.
Determine if the two entries are equal.
validate, then hand off to the subclass
ZipExtraField related methods
Get a attribute of the section
Get the value of the attribute with the name given.
Get the TAR Buffer's block size.
Get value as two bytes in big endian byte order.
Get value as two bytes in big endian byte order.
Retrieve the bytes for the given String in the encoding set for
this Stream.
Delegate to local file data.
The actual data to put central directory - without Header-ID or
length specifier.
The actual data to put central directory - without Header-ID or
length specifier.
Retrieves the extra data for the central directory.
Delegate to local file data.
Length of the extra field in the central directory - without
Header-ID or length specifier.
Length of the extra field in the central directory - without
Header-ID or length specifier.
Get this entry's checksum time.
Parse the checksum octal integer from a header buffer.
Override to make this class work in JDK 1.1 like a 1.2 class.
Get the current block number, zero based.
Get the current record number, within the current block, zero based.
Construct a manifest from Ant's default manifest file.
If this entry represents a file, and the file is a directory, return
an array of TarEntries for this entry's children.
The encoding to use for filenames and the file comment.
The encoding to use for filenames and the file comment.
Returns a named entry - or null
if no entry by
that name exists.
Retrieves the external file attributes.
Get this entry's group id.
Get this entry's group name.
Returns an InputStream for reading the contents of the given entry.
Retrieves the internal file attributes.
Get the attribute's Key - its name in lower case.
Get this entry's link name.
The actual data to put into local file data - without Header-ID
or length specifier.
The actual data to put into local file data - without Header-ID
or length specifier.
The actual data to put into local file data - without Header-ID
or length specifier.
Retrieves the extra data for the local file data.
Length of the extra field in the local file data - without
Header-ID or length specifier.
Length of the extra field in the local file data - without
Header-ID or length specifier.
Length of the extra field in the local file data - without
Header-ID or length specifier.
Parse an octal long integer from a header buffer.
Get the main section of the manifest
Get the version of the manifest
Get the file mode for given permissions with the correct file type.
Get this entry's modification time.
Determine the number of bytes in an entry name.
Get the next entry in this tar archive.
Parse an octal integer from a header buffer.
Platform specification to put into the "version made
by" part of the central file header.
Get the TAR Buffer's record size.
Get the record size being used by this stream's TarBuffer.
Get the record size being used by this stream's TarBuffer.
Get a particular section from the manifest
Get the section names in this manifest.
Get this entry's file size.
Retrieve a String from the given bytes using the encoding set
for this ZipFile.
TODO: support for SYMLINK?
Get this entry's user id.
Get this entry's user name.
Get the Attribute's value.
This is the only method a subclass needs to implement.
Get all the attribute's values.
Get valid enumeration values.
Get valid enumeration values.
Get valid enumeration values
Get the warnings for this manifest.
Get the warnings for this section.
The length of the group id field in a header buffer.
globalCrc - field in class org.codehaus.plexus.archiver.bzip2.
CRC The length of the group name field in a header buffer.
permissible values for longfile attribute
The namr of the GNU tar entry which contains a long name.
The magic tag representing a GNU tar archive.
Grab lists of all root-level files and all directories
contained in the given archive.
flag set if finding the webxml is to be expected.
Static registry of known extra fields.
the index of the selected value in the array.
jar index is JDK 1.3+ only
Path containing jars that shall be indexed in addition to this archive.
get the index of a value in this enumeration.
Initialization common to all constructors.
method for subclasses to override
method for subclasses to override
override of parent; validates configuration
before initializing the output stream.
Determine if the given entry is a descendant of this entry.
Is this entry a directory?
Return whether or not this entry represents a directory.
Determine if an archive record indicate End of Archive.
Indicate if this entry is a GNU long name block
Is this entry a symbolic link?
This method indicates whether this archive is writing to a seekable stream (i.e., to a random
access file).
Compression level for next entry.
Character device file type.
Identifies the *next* file on the tape as having a long name.
LF_ constants represent the "link flag" of an entry, or more commonly,
the "entry type".
Number of bytes in local file header up to the "length of
filename" entry.
local file header signature
File this entry points to, if it is a symbolic link.
Indicates symbolic links.
Extra field data in local file data - without
Header-ID or length specifier.
Offset for CRC entry in the local file header data for the
current entry starts here.
Fail if a long file name is required in the archive.
GNU tar extensions are used to store long file names in the archive.
Long paths will be truncated in the archive.
Indicates whether the user has been warned about long files already.
The length of the magic field in a header buffer.
The main section of this manifest
the manifest specified by the 'manifest' attribute *
Holds the data of a jar manifest.
Construct an empty manifest
Read a manifest file from the given reader
The encoding to use when reading in a manifest file
Exception thrown indicating problems in a JAR Manifest
Constructs an exception with the given descriptive message.
The file found from the 'manifest' attribute.
The version of this manifest
Since we do not support marking just yet, we do nothing.
Since we do not support marking just yet, we return false.
The max length of a line in a Manifest
Maximum length of a user's name in the tar file
Max length of a line section which is continued.
Merge the contents of the given manifest into this manifest
Merge the contents of the given manifest into this manifest
Merges the central directory fields of the given ZipExtraFields.
Merges the local file data fields of the given ZipExtraFields.
whether to merge the main section of fileset manifests;
value is true if filesetmanifest is 'merge'
Default compression method for next entry.
Convert millis to seconds
Standard Unix stat(2) file mode.
mode - field in class org.codehaus.plexus.archiver.tar.
TarEntry The entry's permission mode.
The length of the mode field in a header buffer.
The entry's modification time.
The length of the modification time field in a header buffer.
Split the array into ExtraFields and populate them with the
give data.
Parse a line into name and value pairs
Populate data from this array as if it was in local file data.
Populate data from this array as if it was in local file data.
Populate data from this array as if it was in local file data.
Parse an entry name from a header buffer.
Parse an octal string from a header buffer.
Parse an entry's header information from a header buffer.
Invoke setCompressedSize via reflection.
Bits used for permissions (and sticky bit)
Reads the central directory of the given archive and populates
the internal tables with ZipEntry instances.
Searches for the "End of central dir record", parses
it and positions the stream at the first central directory
record.
Put an entry on the output stream.
Begin writing next entry.
Optional random access output.
Reads a byte from the current tar archive entry.
Read a section through a reader.
Reads bytes from the current tar archive entry.
Reads bytes from the current tar archive entry.
Read a record from the input stream and return the data.
Register a ZipExtraField implementation.
Remove tge given attribute from the section
Makes this instance reset all attributes to their default
values and forget all children.
Since we do not support marking just yet, we do nothing.
Walks through all recorded entries and adds the data available
from the local file header.
ROLE - static field in class org.codehaus.plexus.archiver.
Archiver Stores all files that are in the root of the archive (i.e.
Whether the file modification times will be rounded up to the
next even number of seconds.
shadow of the above if upToDate check alters the value
A manifest section - you can nest attribute elements into sections.
Index of sections - used to retain order of sections in manifest
The named sections of this manifest
File to incorporate as application.xml.
Sets the debugging flag in this stream's TarBuffer.
Set decompression algorithm to use; default=none.
Make this class work in JDK 1.1 like a 1.2 class.
Set the debugging flag for the buffer.
Override AbstractArchiver.setDefaultDirectoryMode to
update TarOptions.
Override AbstractArchiver.setDefaultFileMode to
update TarOptions.
the required destination file.
Indicate whether this entry is a directory.
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0755
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0755
Sets the encoding to assume for file names and comments.
No encoding support in Untar.
The encoding to use for filenames and the file comment.
Sets the external file attributes.
Unfortunately java.util.zip.ZipOutputStream
seems to access the extra data
directly, so overriding getExtra doesn't help - we need to
modify super's data directly.
Throws an Exception if extra data cannot be parsed into extra fields.
Replaces all currently attached extra fields with the new array.
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0644
Behavior when a Manifest is found in a zipfileset or zipgroupfileset file.
If true, emulate Sun's jar utility by not adding parent directories;
optional, defaults to false.
The GID for the tar entry; optional, default="0"
This is not the same as the group name.
The groupname for the tar entry; optional, default=""
This is not the same as the GID.
Set this entry's group id.
Set this entry's group name.
Convenience method to set this entry's group and user ids.
Set whether or not to create an index list for classes.
Sets the internal file attributes.
Sets the compression level for subsequent entries.
Indicate that this entry is a symbolic link to the given filename.
Set how to handle long files, those with a path>100 chars.
The manifest file to use.
Set whether or not to create an index list for classes.
Sets the default compression method for subsequent entries.
Set the mode for this entry
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0644
Set this entry's modification time.
Set this entry's modification time.
Set the Attribute's name; required
The name of the section; optional -default is the main section.
Convenience method to set this entry's group and user names.
Should we overwrite files in dest, even if they are newer than
the corresponding entries in the archive?
Flag to indicates whether leading `/'s should
be preserved in the file names.
Whether the file modification times will be rounded up to the
next even number of seconds.
Set this entry's file size.
the file to compress; required.
The uid for the tar entry
This is not the same as the User name.
Sets Unix permissions in a way that is understood by Info-Zip's
unzip command.
Set this entry's user id.
The username for the tar entry
This is not the same as the UID.
Set this entry's user name.
Invoked by IntrospectionHelper
.
Set the Attribute's value; required
set the deployment descriptor to use (WEB-INF/web.xml);
required unless update=true
size - field in class org.codehaus.plexus.archiver.tar.
TarEntry The entry's size.
The length of the size field in a header buffer.
Skip bytes in the input buffer.
Skip over a record on the input stream.
Store an attribute and update the index.
Compression method for deflated entries.
The TarBuffer class implements the tar archive concept
of a buffered input stream.
Extract files in tar with bzip2 compression
Valid Modes for Compression attribute to Tar Task
Valid Modes for Compression attribute to Tar Task
This interface contains all the definitions used in the package.
This class represents an entry in a Tar archive.
Construct an empty entry and prepares the header values.
Construct an entry from an archive's header bytes.
Construct an entry for a file.
Construct an entry with only a name.
Construct an entry with a name an a link flag.
Extract files in tar with gzip compression
The TarInputStream reads a UNIX tar archive as an InputStream.
Set of options for long file handling in the task.
Constructor, defaults to "warn"
Valid Modes for Compression attribute to Tar Task
The TarOutputStream writes a UNIX tar archive as an OutputStream.
This class provides static utility methods to work with byte streams.
The magic tag representing a POSIX tar archive.
Convert a Date object to a DOS date/time field.
Convert the value to its string form.
Convert the manifest to its string representation
permissible values for longfile attribute
An extension of <jar> to create a WAR archive.
permissible values for longfile attribute
Warnings for this section
Writes bytes to the current tar archive entry.
Writes bytes to the current tar archive entry.
Writes bytes to ZIP entry.
modified by Oliver Merkel, 010128
Writes a byte to the current tar archive entry.
Writes a single byte to ZIP entry.
Write the manifest out to a print writer.
Write the attribute out to a print writer.
Write the section out to a print writer.
Write a TarBuffer block to the archive.
Writes the "End of central dir record"
Writes the central file header entry
Writes the data descriptor entry
Write an entry's header information to a header buffer.
Write an EOF (end of archive) record to the tar archive.
Writes the directory entries from the first and the filenames
from the second list to the given writer, one entry per line.
Write a single Manifest line.
Writes the local file header entry
Write bytes to output or random access file
Write bytes to output or random access file
Write an archive record to the archive.
Write an archive record to the archive, where the record may be
inside of a larger array buffer.
Write a single attribute value out.
Count the bytes written to out.
Extension that adds better handling of extra fields and provides
access to the internal and external file attributes.
Creates a new zip entry with fields taken from the specified zip entry.
Creates a new zip entry with fields taken from the specified zip entry.
Creates a new zip entry with the specified name.
General format of extra field data.
Replacement for java.util.ZipFile
.
Opens the given file for reading, assuming the platform's
native encoding for file names.
Opens the given file for reading, assuming the specified
encoding for file names.
Adds a new entry to the archive, takes care of duplicates as well.
Overridden from Zip class to deal with manifests and index lists.
Method that gets called when adding from java.io.File instances.
Overridden from ZipArchiver class to deal with application.xml
Overridden from ZipArchiver class to deal with web.xml
Opens the given file for reading, assuming the platform's
native encoding for file names.
Opens the given file for reading, assuming the specified
encoding for file names.
Utility class that represents a four byte integer with conversion
rules for the big endian byte order of ZIP files.
Create instance from bytes.
Create instance from the four bytes starting at offset.
Create instance from a number.
Reimplementation of java.util.zip.ZipOutputStream
that does handle the extended
functionality of this package, especially internal/external file
attributes and extra fields with different layouts for local file
data and central directory entries.
Creates a new ZIP OutputStream writing to a File.
Creates a new ZIP OutputStream filtering the underlying stream.
Utility class that represents a two byte integer with conversion
rules for the big endian byte order of ZIP files.
Create instance from bytes.
Create instance from the two bytes starting at offset.
Create instance from a number.