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/04/14 23:53:35 UTC
DO NOT REPLY [Bug 44822] New: Unset reference warning message for
isreference task
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.
DO NOT REPLY [Bug 44822] Unset reference warning message for
isreference task
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44822
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |notifications@ant.apache.org
AssignedTo|notifications@ant.apache.org|bodewig@apache.org
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
DO NOT REPLY [Bug 44822] Unset reference warning message for
isreference task
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44822
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.8.0
--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2008-11-03 07:52:54 PST ---
this has been "fixed" in svn revision 572374 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=572374 ) because it has removed "forward
resolution" of references completely.
Just for good measure, svn revision 710086 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=710086 ) uses new (cleaner?) way to determine
whether a reference has been set.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.