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

wrong path on classpathentry #9

Closed
ghost opened this issue Aug 24, 2010 · 5 comments
Closed

wrong path on classpathentry #9

ghost opened this issue Aug 24, 2010 · 5 comments

Comments

@ghost
Copy link

ghost commented Aug 24, 2010

https://issues.apache.org/jira/browse/BUILDR-494
Is this a buildr issue or an ivy4r issue?

This works:
ivy.ivy4r.property['ivy.home'] = path_to('lib')
but shouldn't this also work?:
ivy.ivy4r.property['ivy.lib.dir'] = path_to('lib')
I want a folder with the jars not the whole ivy cache

@klaas1979
Copy link
Owner

this is not an "issue" at all but the standard way ivy is supposed to work. See my comment at the buildr Bug https://issues.apache.org/jira/browse/BUILDR-494

What do you try to achive? Do you want to do an ivy:retrieve and copy the artifacts into your project dir? Then the eclipse target will not be of any use for you, because ivy4r should use the central cache.

Right now I cannot say what you should do or if ivy4r should work in a different way, because I am not sure what you try to do. Maybe you can comple an example?

Regards Klaas

@ghost
Copy link
Author

ghost commented Aug 27, 2010

If I am correct, what you said at jira is to configure ivysettings.xml instead of setting the ivy.ivy4r.property['ivy.home']. As I'm new to Ivy, can you tell me how to set ivy-home path at ivysettings.xml? Ivy documentation is a little confusing...

thank you for your time,
Nikos

@klaas1979
Copy link
Owner

no not really.

Ivy is like Maven (to simplify a bit). You have a central cache on your system that is used by all projects. Normally you should not have the ivy-home/cache within a single project but at some global location i.e. as default set by ivy "{user.home}/.ivy2"

If you find Ivy to complex you should consider using buildrs inbuild dependency mechanism. It is a lot simpler and may better suit your needs (no transitive dependencies though). I can not give you a shortcut in understanding ivy. It is a very complex system because of the complexity of dependency-management. You really need to wrap your head around ivy to rip it's benefits.

For configuration stuff ivy-settings: http://ant.apache.org/ivy/history/latest-milestone/settings.html

And then check out the "caches" and "resolvers"

@ghost
Copy link
Author

ghost commented Aug 27, 2010

Thanks! Now I have MY cache folder (using defaultCacheDir) and MY jars folder in it(using artifactPattern). Does buildr support changing the artifactPattern?

@klaas1979
Copy link
Owner

yeah it does this page is your friend from here you find all stuff related to configuration:
http://ant.apache.org/ivy/history/latest-milestone/reference.html
check out the Introduction and then Main Concepts, there you will find the Patterns:
http://ant.apache.org/ivy/history/latest-milestone/concept.html

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

1 participant