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 2007/10/29 00:25:35 UTC

DO NOT REPLY [Bug 43716] New: - position of import task cannot be after their references

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

           Summary: position of import task cannot be after their references
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: bobmoe@gmail.com


When I use ant tool version 1.7.0 the script generates errors if the any
reference to another file is before the import task. For instance:

<project name="Booking" default="deploy" basedir=".">

(...)

	<zipfileset id="example.war.webinf.lib.extra" 
    	    prefix="WEB-INF/lib"
    	     refid="extra.seam.jar"/> <!-- here is the reference to a property in
another file --->

(...)

	<import file="../../build.xml"/>

(...)

</project>

This script return the following message:

BUILD FAILED
C:\Java\jboss-seam-1.0.0.GA\build.xml:252: The following error occurred while
executing this line:
C:\Java\jboss-seam-1.0.0.GA\examples\booking\build.xml:29: Reference
extra.seam.jar not found.

When the version of ant is 1.6.5 I don't have this problem, thus in the version
1.6.5 the position of import task doesn't matter (what I think better).

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


DO NOT REPLY [Bug 43716] - position of import task cannot be after their references

Posted by bu...@apache.org.
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=43716>.
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=43716


bodewig@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|dev@ant.apache.org          |notifications@ant.apache.org




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


DO NOT REPLY [Bug 43716] - position of import task cannot be after their references

Posted by bu...@apache.org.
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=43716>.
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=43716





------- Additional Comments From stevel@apache.org  2007-10-29 03:55 -------
I think we will probably mark as a WONTFIX; changes to reference resolution
and/or import are the root cause.

the key thing is that you shouldnt have any forward references in a build file
at all. Ant lets you get away with it in the same file, but tells you off in ant
1.7, because there is no guarantee the execution path will actually configure
the reference before it is needed. 

You can modify the build file to work by having the zipfileset definition being
in  some initialisation target, that is set up to depend on a target in the
imported 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