ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44444] - When invoking <java> task under ant, system props do not seem to be inherited as the docs imply they should be. CLB_POST
Date Mon, 18 Feb 2008 01:30:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44444>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44444





------- Additional Comments From upstreamnet@yahoo.com  2008-02-17 17:30 -------
Hey... maybe this is not a bug.. Or at least i figured out a workaround....

Workaround is to use syspropertyset, as follows:

<project name="demo" default="run" basedir="." >
  <path id="classpath.runjava">
            <path location="${basedir}"/>
  </path>

    <target name="run"  >
      <echo level="info" message=" dumping out value of property in ant, right
before invoking java task: ${prop}"/>
      <java classname="PropTest" clonevm="true" fork="true">
          <classpath refid="classpath.runjava"/>
          <syspropertyset>
                  <propertyref builtin="commandline"/>
          </syspropertyset>
      </java>
    </target>
</project>



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message