On October 22, 2009 at 04:57, Peter BetBasoo wrote:
> 2. My installer adds a shell script to launch my Java app in a
> Linux/Unix environment, but the script file is not given execute
> permission when it is copied over. How do you do that? I am setting the
> type to "Application." Should not IzPack change set it to executable?
Use the <executable> element within your <pack> definition. Make sure
to review the attributes for it and set them accordingly.
If the script is not intended to be launched as part of the
installation process and is a script that is part of your application,
make sure to set keep="true" and stage="never". For example:
<executable targetfile="$INSTALL_PATH/bin/myscript"
os="unix" stage="never" failure="warn" keep="true"/>
Otherwise, izpack will remove it since the default semantics
for <executable> is for running scripts as part of the installation
process.
Java does not know anything about executable bits, that is an
OS-specific thing. I believe izpack, on unix, will just shell
out to chmod for any <executable> statements.
--ewh
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email