Two Questions

View: New views
2 Messages — Rating Filter:   Alert me  

Two Questions

by Peter BetBasoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just started using IzPack and it's great. I have two questions.

1. In the language selection dialog, why are all the unselected flags
grayed out? How can I change that. It does not make sense to gray them
out, because they all look the same and it defeats the purpose of having
an identifiable icon for each language.

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?

Tanks!

--
_______________________________________
Peter BetBasoo
Servant of Assyria

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Two Questions

by Earl Hood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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