ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.A.Dunphy" <madun...@bigfoot.com>
Subject Passing a property value by reference in an ant task
Date Thu, 12 Apr 2001 15:47:04 GMT
Hi all,

I've been trying to set a property value (in an ant task call) by reference
but I get the following error:

Reference mb.class.path not found.
Reference mb.class.path not found.
        at
org.apache.tools.ant.types.Reference.getReferencedObject(Reference.ja
va:93)
        at org.apache.tools.ant.taskdefs.Property.execute(Property.java:143)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:183)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java:532)
        at org.apache.tools.ant.Project.executeTargets(Project.java:506)
        at org.apache.tools.ant.Main.runBuild(Main.java:420)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second
C:\

    <!-- ===================================================================
-->
    <!--Build the organisation deliverables-->
    <!-- ===================================================================
-->
    <target name="org-build" description="Build the orgainsation
deliverables" depends="prepare">
        <ant dir="${org.build.dir}">
            <property name="build.lib" value="${mb.lib}"/>
            <property name="org.class.path" refid="mb.class.path"/>
        </ant>
    </target>

Any ideas?

Mick

Mime
View raw message