DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22521>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22521 java.endorsed.dirs sysproperty not passed to in-process java task Summary: java.endorsed.dirs sysproperty not passed to in-process java task Product: Ant Version: 1.5.4 Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When running the core <java> task with fork="false", <sysproperty> fails to set java.endorsed.dirs such that it is used by the JVM; i.e. I get a java.lang.NoClassDefFoundError exception. Works correctly as either <sysproperty> or "-D" <arg> when fork="true"; i.e. I don't get a java.lang.NoClassDefFoundError exception. JDK 1.4.2 Ant 1.5.4 Solaris 5.8 build.xml snippit (in non-working case): <target name="testsoap" depends="main"> <java classname="client.TestSOAPClient" fork="false"> <sysproperty key="java.endorsed.dirs" file="${jwsdp.endorsed.dir}"/> <classpath> <pathelement location="${build.dir}/${appname}/classes"/> <fileset refid="saaj.classpath"/> <fileset refid="jakata-commons.classpath"/> <fileset refid="j2ee.classpath"/> </classpath> </java> </target> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]