At 08:47 AM 3/19/02, you wrote:
> It is pretty annoyed to use ant's <exec>. The
reason
>we want to use ant is to expect OS independent if
>could. However, for the following
>
> <exec executable="idl2java">
> <arg line="-DVISIGENIC -root_dir temp
>-I"${myenv.VITRIA}\interdef" -Isrc/idl
>src/idl/*.idl" />
> </exec>
>
> it works if using JDK1.2.2 on Windows (and
UNIX?),
>but fails if using JDK1.3.1 or JDK1.4. For later two
>JDKs, I have to use
>
> <exec executable="cmd.exe" os="Windows
2000:Windows
>NT" >
> <arg line="/C idl2java -DVISIGENIC -root_dir temp
>-I"${myenv.VITRIA}\interdef" -Isrc/idl
>src/idl/*.idl" />
> </exec>
>
> So ant's implementation drags us again into the
mire
>of using different things depending on different OSes
>and JDKs (for something that shouldn't be in that
>way).
>
> This probably can be traced to how different JDKs
>implement the Runtime.exec(). If we look at
>
>
>http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
>
>, we know the evil is indeed from JDK.
>
> Any good thought about this?
>
> Note I am using ant 1.4.1. I also tried value
>attribute for <arg>. It seems it does not help
>anything.
>
> Zhou
>
>
>
>__________________________________________________
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>