You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/12/03 22:10:50 UTC

DO NOT REPLY [Bug 32523] New: - manual specifies the wrong way to read PATH

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=32523>.
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=32523

           Summary: manual specifies the wrong way to read PATH
           Product: Ant
           Version: unspecified
          Platform: All
               URL: http://ant.apache.org/manual/CoreTasks/exec.html
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
        AssignedTo: dev@ant.apache.org
        ReportedBy: Brian.Gruber@morganstanley.com


The manual page for the exec task says that:
<exec ... >
  <env key="PATH" path="${java.library.path}:${basedir}/bin"/>
</exec>

adds ${basedir}/bin to the PATH of the system command.

But java.library.path doesn't contain the PATH of the system command.  The way
to do this seems to be <property environment="foo"/>, after which you can use
${foo.PATH}.  That seems to deserve a mention on the exec page, as it is likely
that someone setting environment variables will want to read them as well.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org