Gerhard Wiesinger wrote:

Hello!

I want to use the exec task on Windows NT 4.0 SP5 and it works well with
Sun JDK 1.2.2.

With Sun JDK 1.3.1_01 it doesn't work.

<property name="jidl.dir" location="${SRCROOT}/libext/bin"/>

<target name="idl" depends="checkparams">
    <exec dir="${jidl.dir}" executable="jidl">
      <arg line="--output-dir ${dst.java.dir} --tie ${my.idl}"/>
    </exec>
</target>

Specifiying
    <exec executable="${jidl.dir}/jidl.exe">
      <arg line="--output-dir ${dst.java.dir} --tie ${my.idl}"/>
    </exec>

works well.


Gerhard, this behaviour really comes from the Runtime.exec implementation of the JVM. You can use an attribute vmlauncher="false" to not use the VM based facilities. This will use the features of the Windows shell which should remove the need to specify .exe on the command name.

Alternatively, you could create a symbolic link on Unix from jidl.exe to jidl. Pretty distasteful but it would work, I guess.

Let me know of any problems.


Conor





Reply via email to