I'd prefer just the warning at runtime and in the doc. Using <java
jar=""> ensures no classpath is used at all, even coming from env.
vars., or automatically added by Ant.

I think it's better to stick to the current behavior and translate
<java jar="foo.jar"> to java -jar foo.jar    --DD

On 7/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>Bug: 39153
>Add notes (log+manual) that <java> does not handle
>jar+classpath together (more exactly Java itself does not).


On the other hand we could convert the jar-attribute to a path element,
so
   <java jar="one.jar" fork="true">
       <classpath>
           <pathelement path="two.jar"/>
       </classpath>
   </java>

becomes to
   <java mainclass="---" fork="true">
       <classpath>
           <pathelement path="one.jar"/>
           <pathelement path="two.jar"/>
       </classpath>
   </java>



Jan

---------------------------------------------------------------------
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