org.apache.tools.ant.taskdefs
Class Tar

java.lang.Object
  |
  +--org.apache.tools.ant.Task
        |
        +--org.apache.tools.ant.taskdefs.MatchingTask
              |
              +--org.apache.tools.ant.taskdefs.Tar

public class Tar
extends MatchingTask

Creates a TAR archive.

Author:
Stefano Mazzocchi stefano@apache.org

Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset, useDefaultExcludes
 
Fields inherited from class org.apache.tools.ant.Task
description, location, project, target, taskName, taskType, wrapper
 
Constructor Summary
Tar()
           
 
Method Summary
 void execute()
          Called by the project to let the task do it's work.
 void setBasedir(java.lang.String baseDirname)
          This is the base directory to look in for things to tar.
 void setTarfile(java.lang.String tarFilename)
          This is the name/location of where to create the tar file.
protected  void tarFile(java.io.File file, TarOutputStream tOut, java.lang.String vPath)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
createExclude, createInclude, createPatternSet, getDirectoryScanner, setDefaultexcludes, setExcludes, setExcludesfile, setIncludes, setIncludesfile, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tar

public Tar()
Method Detail

setTarfile

public void setTarfile(java.lang.String tarFilename)
This is the name/location of where to create the tar file.

setBasedir

public void setBasedir(java.lang.String baseDirname)
This is the base directory to look in for things to tar.

execute

public void execute()
             throws BuildException
Description copied from class: Task
Called by the project to let the task do it's work. Normally it does nothing.
Overrides:
execute in class Task
Following copied from class: org.apache.tools.ant.Task
Throws:
BuildException - if someting goes wrong with the build

tarFile

protected void tarFile(java.io.File file,
                       TarOutputStream tOut,
                       java.lang.String vPath)
                throws java.io.IOException


Copyright © 2000 Apache Software Foundation. All Rights Reserved.