Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ivy4r does not resolve ivy.xml correctly in nested buildr projects #6

Closed
rsutphin opened this issue May 26, 2010 · 2 comments
Closed

Comments

@rsutphin
Copy link

If you have a buildr project with nested projects, ivy4r seems to always use the ivy.xml for the root project, even if the child has its own. A sample project to demonstrate.

Line 9 of the output shows the problem:

child ivy module: sample

The expected output would be

child ivy module: child
@rsutphin
Copy link
Author

Tracing through the code, the problem seems to come out of two things: the basedir for the ivy4r antwrap environment is always the root of the project and the #file accessor returns "ivy.xml" (i.e., a relative path).

I've monkey-patched ivy4r to avoid this problem like so:

class Buildr::Ivy::IvyConfig
  alias :base_file :file
  def file
    @project.path_to(base_file)
  end
end

This has gotten me around the immediate problem, but I'm not sure if it will have any other effects later.

@klaas1979
Copy link
Owner

will be in next release

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants