ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22521] New: - java.endorsed.dirs sysproperty not passed to in-process java task
Date Mon, 18 Aug 2003 15:11:31 GMT
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: dev@ant.apache.org
        ReportedBy: epritcha@wiley.co.uk


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message