You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/02/18 02:30:19 UTC

DO NOT REPLY [Bug 44444] - When invoking task under ant, system props do not seem to be inherited as the docs imply they should be. CLB_POST

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.