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 44822] New: Unset reference warning message for isreference task
Date Mon, 14 Apr 2008 21:53:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44822

           Summary: Unset reference warning message for isreference task
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: charles_honton@intuit.com


The following ant script gives an unexpected warning:

<?xml version="1.0" encoding="UTF-8"?>

<project name="test" basedir="." default="compile">
    <target name="init">
        <property name="part.src.dir" value="${ant.project.name}/src"/>
    </target>

    <target name="-check">
        <condition property="has.part.src.path">
            <isreference refid="part.src.path"/>
        </condition>
    </target>

    <target name="-create" depends="-check" unless="has.part.src.path">
        <path id="part.src.path">
            <dirset dir="${part.src.dir}"/>
        </path>
    </target>

    <target name="compile" depends="init,-create"/>

</project>



The output is as follows:

Buildfile: test.xml

init:

-check:
Warning: Reference part.src.path has not been set at runtime, but was found
during
build file parsing, attempting to resolve. Future versions of Ant may support
 referencing ids defined in non-executed targets.

-create:

compile:

BUILD SUCCESSFUL
Total time: 0 seconds


The Warning is unexpected, as the use of the refid is protected by an
isreference condition.


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

Mime
View raw message