ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Duffey <andjar...@yahoo.com>
Subject Re: When using Ivy, how do you get your IDE "code completion" to see the jar files that your build grabs via Ivy?
Date Mon, 07 Jul 2008 18:24:48 GMT
Thank you for the fast reply! This is what we figured we'd do as well. So everyone on the team
basically when they pull out a project that uses Ivy for dependencies, does a build (dist,
etc) to pull down the ivy dependencies. Question tho, do you normally set up a local cache
that the dependent jars get pulled down to, then after that first build, you go into the project/properties,
and point to that cache location to find the jars? The only problem that might occur with
this is, and this depends on your IDE  I suppose, but we develop on windows, mac, linux and
solaris. I know at least with the JSR-311 plugin that Netbeans uses, it hardcoded the absolute
path to the jar files. This caused my project to not work when moving from mac to windows
to develop on. If we set a project up to look at a specific local cache, I am guessing that
cache directory should be inside of the project itself (not necessarily commited to say SVN
or something tho), so that no
 matter what platform the project is being worked on, the project properties always use a
relative path to the project root to find those jar files... does that seem correct? 

Thanks again.




----- Original Message ----
From: "Loehr, Ruel" <rloehr@pointserve.com>
To: "ivy-user@ant.apache.org" <ivy-user@ant.apache.org>
Sent: Monday, July 7, 2008 10:28:07 AM
Subject: RE: When using Ivy, how do you get your IDE "code completion" to see the jar files
that your build grabs via Ivy?

Yes.   You must at least run the build once to get the dependencies, then you refresh your
ivy classpath container.

-----Original Message-----
From: Kevin Duffey [mailto:andjarnic@yahoo.com]
Sent: Monday, July 07, 2008 12:25 PM
To: ivy-user@ant.apache.org
Subject: When using Ivy, how do you get your IDE "code completion" to see the jar files that
your build grabs via Ivy?

We are starting to use Ivy in our build scripts. We're wondering how the "initial" use of
Ivy works such that, if project A depends on B, when I use Netbeans to do something like code
completion on a class in B.jar, it wont initially pop up because I have not yet run my build
so that Ivy can pull down B for the build to work. After the initial build, even so, if the
B.jar is in some location outside my normal <project>/lib (or what have you) path, my
IDE still wont see the jar to allow code completion and such to work.

So what does the Ivy community at large do about this? Do they do a "precompile" to pull down
the jar dependencies? Do they specify in there project a ivy local cache to find jar files
in.. (and thus, do a pre-build to pull down the dependencies so that they are there when adding
the jars to the IDE project)?

Thanks.


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message