Class Expand


  • public class Expand
    extends Object
    Unzip a file.
    Since:
    Ant 1.1 @ant.task category="packaging" name="unzip" name="unjar" name="unwar"
    Author:
    costin@dnt.ro, Stefan Bodewig, Magesh Umasankar
    • Constructor Detail

      • Expand

        public Expand()
    • Method Detail

      • execute

        public void execute()
                     throws Exception
        Do the work.
        Throws:
        Exception - Thrown in unrecoverable error.
      • setDest

        public void setDest​(File d)
        Set the destination directory. File will be unzipped into the destination directory.
        Parameters:
        d - Path to the directory.
      • setSrc

        public void setSrc​(File s)
        Set the path to zip-file.
        Parameters:
        s - Path to zip-file.
      • setOverwrite

        public void setOverwrite​(boolean b)
        Parameters:
        b - Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?