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 37694] - Calling ant via java does not set "basedir" property
Date Sun, 10 Sep 2006 22:46:20 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=37694>.
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=37694


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From peterreilly@apache.org  2006-09-10 22:46 -------
I do not see the problem:
I build an build.xml like:
<project default="call">
    <target name="call">
        <property environment="env"/>
        <java
            classname="org.apache.tools.ant.launch.Launcher"
            fork="true"
            failonerror="true"
            dir="."
            timeout="4000000"
            >
            <classpath>
                <pathelement location="${env.ANT_HOME}/lib/ant-launcher.jar"/>
            </classpath>
            <arg value="-buildfile"/><arg file="build.xml"/>
            <arg value="callee"/>
        </java>
        
    </target>
    <target name="callee">
        <echo>basedir is ${basedir}</echo>
    </target>
</project>

basedir gets outputed correctly in ant.1.6.5.

basedir gets set in ProjectHelper2 when it
is parsing the <project> tag of the build file.

Marking as NEEDINFO, could you run the build file?


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


Mime
View raw message