[izpack-users] Find and Replace in string

dinh thi thu thao thuthao_d at yahoo.com
Mon Oct 9 04:32:00 CEST 2006


Thanks Fabrice,
But how can I change $FILE_SEPARATOR value?

Because I want to change the slash of Window path to "/" before I use this path to configure my application.

Thanks.
Thach Thao.

----- Original Message ----
From: miraodb <miraodb at hotmail.com>
To: izpack-users at lists.berlios.de
Sent: Wednesday, October 4, 2006 9:59:59 PM
Subject: Re: [izpack-users] Find and Replace in string

Hi,

Then your problem is easier than i thought.
You can simply use the builtin variable called $FILE_SEPARATOR.
This will determine which of backslash or forwardslash is needed depending 
on the OS you're running.

Cheers,
Fabrice
----- Original Message ----- 
From: "dinh thi thu thao" <thuthao_d at yahoo.com>
To: <izpack-users at lists.berlios.de>
Sent: Wednesday, October 04, 2006 6:23 AM
Subject: Re: [izpack-users] Find and Replace in string


Hi Fabrice,

Thanks for yor answer,
But, my problem is:
- I have UserInput to receive TOMCAT_HOME.
- On Window, the slash in path is "\".
- I want to change it to "/" or "\\" for my configuration.
( This value will be used to parse after installing)

How can I do it?


Thanks for your support and Best Regards,
Thach Thao.

----- Original Message ----
From: miraodb <miraodb at hotmail.com>
To: izpack-users at lists.berlios.de
Sent: Wednesday, October 4, 2006 11:12:38 AM
Subject: Re: [izpack-users] Find and Replace in string

Hi,

I'm not sure to understand what you actually want to do.
Do you wish to act on a string that has been defined in the userinput ?
It's not quite clear to me. If that's the case, you cannot do it wih only
userinputpanel.
You'll have to either use processpanel with a script to do the job or create
your own custompanel to do the job.
This can easily be done for your purpose by deriving userinputpanel and
adding your search/replace routine to the panelActivate() method.

A good example for you to look at, is the ConditionalUserInputPanel.

Hope this helps.
If you need help with the code itself, don't hesitate to post here with more
details.

Cheers,
Fabrice
----- Original Message ----- 
From: "thach thao" <thuthao_d at yahoo.com>
To: <izpack-users at lists.berlios.de>
Sent: Tuesday, October 03, 2006 11:13 PM
Subject: [izpack-users] Find and Replace in string


>
> Hi all,
>
> I want to find and replace a substring in a string. This string is an
> userinput, and i want to replace something before using.
>
> How can I do it with izpack.
>
>
> Best regards,
>
> Thach Thao.
> -- 
> View this message in context:
> http://www.nabble.com/Find-and-Replace-in-string-tf2380127.html#a6633013
> Sent from the izpack users mailing list archive at Nabble.com.
>
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
>
>

_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-users









--------------------------------------------------------------------------------


> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
> 

_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-users






-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20061008/ea9f3ab8/attachment.html 


More information about the izpack-users mailing list