| de.masters_of_disaster.ant.tasks.ar.Ar
Ar | public class Ar extends MatchingTask (Code) | | Creates an ar archive.
|
Inner Class :public static class ArFileSet extends FileSet | |
Inner Class :public static class ArLongFileMode extends EnumeratedAttribute | |
Method Summary | |
protected void | arFile(File file, ArOutputStream aOut, ArFileSet arFileSet) | 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. | public ArFileSet | createArFileSet() | public void | execute() | public void | setBasedir(File baseDir) This is the base directory to look in for things to ar. | public void | setDestFile(File destFile) Set the name/location of where to create the ar file. | public void | setLongfile(ArLongFileMode mode) Set how to handle long files, those with a name>16 chars or containing spaces. |
arFile | protected void arFile(File file, ArOutputStream aOut, ArFileSet arFileSet) throws IOException(Code) | | ar a file
Parameters: file - the file to ar Parameters: aOut - the output stream Parameters: arFileSet - the fileset that the file came from. throws: IOException - on error |
archiveIsUpToDate | protected boolean archiveIsUpToDate(String[] files, File dir)(Code) | | 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. true if the archive is up to date. |
createArFileSet | public ArFileSet createArFileSet()(Code) | | Add a new fileset with the option to specify permissions
the ar fileset to be used as the nested element. |
execute | public void execute() throws BuildException(Code) | | do the business
throws: BuildException - on error |
setBasedir | public void setBasedir(File baseDir)(Code) | | This is the base directory to look in for things to ar.
Parameters: baseDir - the base directory. |
setDestFile | public void setDestFile(File destFile)(Code) | | Set the name/location of where to create the ar file.
Parameters: destFile - The output of the tar |
setLongfile | public void setLongfile(ArLongFileMode mode)(Code) | | Set how to handle long files, those with a name>16 chars or containing spaces.
Optional, default=warn.
Allowable values are
- truncate - names are truncated to the maximum length, spaces are replaced by '_'
- fail - names greater than the maximum cause a build exception
- warn - names greater than the maximum cause a warning and TRUNCATE is used
- bsd - BSD variant is used if any names are greater than the maximum.
- gnu - GNU variant is used if any names are greater than the maximum.
- omit - files with a name greater than the maximum are omitted from the archive
Parameters: mode - the mode to handle long file names. |
|
|