ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <>
Subject [PATCH] Shar - Task to create self-extracting Shell archive
Date Tue, 10 Jun 2003 14:54:03 GMT
The Shar task creates a Unix shell script that extracts
one or more files from within its body and executes 
additional shell commands.  It UUEncodes the files 
added to the archive unless specified otherwise.

Foreseen use-cases include being able to create
an installer with Ant as its internal engine and
distributing the installer with no pre-requisites
(like Java or Ant) being installed on the
deploymant machine - the self extracting archive
would itself include a JRE and Ant in it.

This task may be used as follows:

<shar destFile="">
  <fileset dir="${dir}" includes="**/*.jar"/>
  echo "Hello World!"

This task will create the self-extracting script such 
that the script creates sub directories as needed
when unarchiving itself.

The user of would just type


at the shell prompt to start the installation process.


Worthwhile addition?


View raw message