[izpack-devel] Additions to executefile element and ProcessPanel panel
berlios.de at tisc.de
Wed Jan 4 11:50:29 CET 2006
On Wed, Jan 04, 2006 at 11:40:07AM +0200, donald wrote:
> I have made the following additions to the ProcessPanel code which I
> could add to the patch manager if anyone thinks they might need them or
> would like to suggest changes or improvements:
> 1] stdin element in executefile
> Added an stdin element to the executefile element to allow input from a
> user or from a named pipe.
> Many console based executables require simple input eg answering yes or
> no to accept a license. This change allows the display of a text box in
> the ProcessPanel only for those executefile's that have an stdin element.
> Source Files:
> ProcessPanel.java, ProcessPanelWorker.java, AbstractUIProcessHandler
> (ProcessPanelAutomationHelper due to interface changes in
> <executefile name="$JAVA_HOME/jai-1_1_2_01-lib-linux-i586-jre.bin"
> pwd="$JAVA_HOME" >
> <stdin type="user"> <!-- user input (text box in
> ProcessPanel) -->
So, does the user see the question he's asked?
> 2] pwd attribute for executefile element
> 3] env elements for executefile element
Sounds useful too.
> Added a env element similar to the arg element for executefile that
> allows the user to specify environment variables when executing the
> specified application.
> There may be occasions when a application requires a environment
> variable to be set eg LD_LIBRARY_PATH.
> <executefile name="/bin/bash" pwd="/" >
I'd use a pure XML syntax here:
<env name="CC" value="..." />
or maybe support
Cool stuff, should be very useful, so please add the patches.
More information about the izpack-devel