[izpack-users] path issues in TargetPanel

Eric Rose eric at forge.com.au
Thu Apr 27 08:57:05 CEST 2006


Hi,

One of the users of my installer ended up with  pathname that included a 
trailing space, when installing on Windows. The directory Windows created was 
spaceless, while the installer ended up with a variable that included the 
space in the pathname. When subsequently installing the contents of packs, 
all sorts of errors occurred indicating that the specified directory didn't 
exist.

My thought is that the best place to fix this is to trim the chosen path in 
actionPerformed() in PathSelectionPanel.

ie.

diff -r1.5 PathSelectionPanel.java
155c155
<                 String path = fc.getSelectedFile().getAbsolutePath();
---
>                 String path = fc.getSelectedFile().getAbsolutePath().trim();

While this means that people who want to use target paths with trailing spaces 
in non-windows environments may be inconvenienced, I think that the impact 
will be small.

Comments?

Eric

-- 
Eric Rose              | "Sed quis custodiet ipsos custodes?"
eric at integeo.com  |         Juvenal (Satires, VI.347-8)

***********************************************************************
This message contains privileged and confidential information intended
only for the use of the addressee named above.  If you are not the
intended recipient of this message you must not disseminate, copy or
take any action in reliance on it.  If you have received this message
in error please notify the sender immediately.  Any views expressed in
this message are those of the individual sender, except where the
sender specifically states them to be the views of another (including
a Body Corporate).

If you wish to opt out from future messages, send an email to
unsubscribe at integeo.com with the subject UNSUBSCRIBE
************************************************************************

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.berlios.de/pipermail/izpack-users/attachments/20060427/b94acb39/attachment.pgp 


More information about the izpack-users mailing list