hm, i just tried, not much examples in ant-contrib docs.

<loadfile srcFile="T:\test\wordfile_move_email.txt" property="wordfile_move"/>

<urlencode name="wordfile_email" location="${wordfile_move}" />
        
<echo file = "T:\test/infomail.txt" append="true">
file://\\lan.xxx.xx/bla/${wordfile_email}
</echo>

gives me :

file://\\lan.xxx.xx/bla/T%3A%5CIT13RG%5Cproject_Modul+Test+Application_r_1_5_0_rc43_pe_T7_TS_150142.doc%0D%0A

but this link doesn't work

Maybe the wrong syntax, but there are no examples with file:// in ant-contrib 
docs.

Gilbert

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 3:31 PM
To: [EMAIL PROTECTED]
Subject: AW: problem generating file link with blanks


Would http://ant-contrib.sourceforge.net/tasks/urlencode.html help?

Jan


> -----Ursprüngliche Nachricht-----
> Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 14. Dezember 2004 15:12
> An: ant_user (E-Mail)
> Betreff: problem generating file link with blanks
> 
> 
> Hi,
> 
> i'm generating a file:// link out of a filenameproperty.
> 
> Works fine, but if filename contains a blank it fails :
> 
> file://\\lan.xxx.xx/bla/prc\test\04_12\ Base 
> Application_r_1_5_0_rc43.doc
> 
> The file is moved to that location before.
> 
> So, i have to trim the blanks out of the file name, rename 
> it, then move
> and set the link.
> 
> How to trim the blanks out of a filename and rename it with result ?
> 
> Gilbert
> 
>  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to