Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Steve Loughran
- You should specify unicode content in the XML as valid XML content, not escaped \u0123 style. -The task and things that use it set up the command line; there's a risk that it could get in the way and not preserve high unicode content. If so, its something we need to test for -A more rel

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Greg Roodt
Mark, Basically SK wants to pass a System Property into a Java programme executed by Ant. The problem is, that he wants to set non-ASCII characters as the System Property, which is a bit tricky. I agree with you, we need a clearer understanding of what SK is trying to achieve and perhaps BASE-64 o

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Mark Salter
Shashidhar Kotta wrote: > Hi, > > I have tried with your ANT code but it is displaying ?m?n??? only. Your code is encoding the String it sees into UTF-8, this is likely the right output, but not what you expected? You need to think through what you are trying to do, but from this result, I would

RE: Passing multi-byte strings from ANT using task

2008-12-11 Thread Shashidhar Kotta
Hi, I have tried with your ANT code but it is displaying ?m?n??? only. Here is the simple java code which I am using. OutputStreamWriter bos = new OutputStreamWriter(new FileOutputStream("D://testoutput.txt"),"UTF-8"); String username = System.getProperty("com.p

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Greg Roodt
Ok, could you send me a simplified version of your Java code that is writing the data to a file? Does this work correctly for you? On Thu, Dec 11, 2008 at 9:49 AM, Shashidhar Kotta <[EMAIL PROTECTED] > wrote: > > Hi, > > You mean Unicode escapes sequences like '\u0012'? > > We have t

RE: Passing multi-byte strings from ANT using task

2008-12-11 Thread Shashidhar Kotta
Hi, You mean Unicode escapes sequences like '\u0012'? We have tried by passing the Unicode escape sequence like > "" But when we call System.getProperty("com.param1") it is just giving us the same escapes sequences like '\u0012'. Surprisingly if we set this inside the java program(like the c

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Greg Roodt
This is a guess, but try using the Unicode escape sequences for your sysproperty. On Thu, Dec 11, 2008 at 7:12 AM, Shashidhar Kotta <[EMAIL PROTECTED] > wrote: > > Hi All, > > > > In our project we have requirement to pass multi-byte strings from ANT to > java program. We are passing multi-byte

Re: how to call the .py from wsadmin using ant

2008-12-11 Thread Francis Galiegue
Le jeudi 11 décembre 2008, Shaaf Syed M a écrit : > The following works okay for me. > > >failonerror="true" output="wsconfig.out"> > > > I don't know how it works with Windows, but using arg line="" is not a good idea. I don't know whether ant s

Re: how to call the .py from wsadmin using ant

2008-12-11 Thread Shaaf Syed M
The following works okay for me. Fail on error doesnt work if the file was not found. I am not sure if it works with wsadmin at all. Also wsadmin is in my PATH env already. Regards, -- Shaaf On Wed, Dec 10, 2008 at 4:24 PM, Francis Galiegue <[EMAI