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 2016/09/28 20:31:52 UTC

[Bug 60185] New: "record" task doesn't work when invoked from another build

https://bz.apache.org/bugzilla/show_bug.cgi?id=60185

            Bug ID: 60185
           Summary: "record" task doesn't work when invoked from another
                    build
           Product: Ant
           Version: 1.9.7
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
          Assignee: notifications@ant.apache.org
          Reporter: bz.apache.org@worldware.com

Created attachment 34309
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34309&action=edit
example of the problem.

The record tasks writes relative to the current directory, not relative to its
build.xml directory. This is an issue when invoking one build.xml file from
another with the "ant" task.

All other tasks (mkdir, copy, javac, etc.) write relative to the build
directory. The current behavior makes builds break when the initialization for
"record" makes the directory in one place, but record tries to write in
another.

Minimal reproducing case attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60185] "record" task doesn't work correctly when invoked from another build

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60185

--- Comment #2 from Tom hill <bz...@worldware.com> ---
Note that my patch does change behavior, in the case where one build file
invokes another file,  which then ecords. 

If complete backwards compatibility is desired, a new parameter which has the
correct behavior could be added. (Correct in the sense that it behaves like
other ant core tasks). I'd suggest "file".

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60185] "record" task doesn't work correctly when invoked from another build

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60185

--- Comment #3 from Tom hill <bz...@worldware.com> ---
Oh, well. It looks like this is a duplicate of
https://bz.apache.org/bugzilla/show_bug.cgi?id=17781

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60185] "record" task doesn't work when invoked from another build

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60185

Tom hill <bz...@worldware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bz.apache.org@worldware.com

--- Comment #1 from Tom hill <bz...@worldware.com> ---
Created attachment 34310
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34310&action=edit
Patch for issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60185] "record" task doesn't work correctly when invoked from another build

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60185

Tom hill <bz...@worldware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|"record" task doesn't work  |"record" task doesn't work
                   |when invoked from another   |correctly when invoked from
                   |build                       |another build

-- 
You are receiving this mail because:
You are the assignee for the bug.