--
You received this message because you are subscribed to the Google Groups "usr-ivybeans" group.
To post to this group, send email to usr-iv...@googlegroups.com.
To unsubscribe from this group, send email to usr-ivybeans...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/usr-ivybeans?hl=en.
To unsubscribe from this group, send email to usr-ivybeans...@googlegroups.com.
A couple of other things:
1. It is also good to specify the maven classifier (see laurent's last
post - note the xmlns specifier and m:classifier)
2. Also, check your ivy-impl.xml ant script, its <ivy:retrieve> probably
only retrieves type=jar (and therefore not type=javadoc or source)
If you want the other files retrieved (rather than just in the cache)
then you'll need type="jar,javadoc,source"
If you build ivybeans from trunk, and install that, you can instead just
put
ivy-retrieve.type=jar,javadoc,source
in project.properties to over-ride the default value of "jar". This was
added in a recent commit (R300).
Bruce
>
>
> On Oct 6, 11:52 am, Soupdragon<Malcolm.McMa...@costcutter.com> wrote:
>> So the trick is to specify the right type for these extra artefacts
>> rather than anything to do with configurations?
>>
>> They are currently included as .jar files, but I put them in a
>> separate configuration.
>>
>> On Oct 6, 11:03 am, Laurent For�t<laurent.fo...@gmail.com> wrote:
>>
>>> While resolving dependencies we get all ModuleDescriptor and for
>>> and for each ModuleDescriptor resolved we get the 3 type of artifacts we
>>> are interested by : the "jar" the "source" and the "javadoc".
>>> Hope It Helps.
>>> Laurent For�thttp://www.devcoop.fr,http://laurentforet.org
Set the maven classifier, no effect. Added javadoc,sources to
retrieve, now dowloads source but netbeans doesn't treat is as such
(and it will be added to the classpath, which isn't a good thing). I'd
much rather it accessed the source and javadocs from the ivy cache,
rather than downloading into the project.
I've been having a quick look at the IvyBeans source, and AFAIKS,
netbeans is supposed to pick up the sources from the
SourceForBinaryQueryImpl class, which will be populated not by the ant
script retrieve but from ivy being accessed directly by
IvyLibraryController. In fact it doesn't look to me like the ant
script will affect this sources list at all.
(BTW why can't Netbeans find import org.openide.util.Lookup when
examining the ivybeans code?)
The really weird thing is that when I open the debugger sources
window, what I'm seeing is a complete list of the class jars from ivy
dependencies, directed at the ivy cache. No sign of my source jars.
The class jars have no business being on this list.
One of the things I'm going to need to do is to publish source and,
generally, javadoc with library modules being built under netbeans, in
fact this is more important that getting the source for 3rd party
libraries.
Our current company policy is not to use external repositories, by the
way.
To unsubscribe from this group, send email to usr-ivybeans...@googlegroups.com.
To unsubscribe from this group, send email to usr-ivybeans...@googlegroups.com.
I had this problem using NB visual API which depends on Lookup.
up till NB 6.8 org.openide.util.Lookup was in the utilities module. in
6.9 it has moved to its own module which the utilities module now
depends on. I have the details at work, but don't have access to them
from home where I am now.
If for example you are following a pre 6.9 netbeans platform tutorial
that says depend on the utilities, then you will possibly need the
Lookup one as well (which is where I got stuck ).
I hope this answers your BTW, and points you in the right direction.
Bruce
Aha! The difference appears to be that I was setting the dependency
for my own module to "latest.integration" whereas the 3rd party
library I put an exact version into.
I changed the dependency of the main module to an specific version and
the source and javadoc are now working.
On the other hand I set up the source for a 3rd party module, and the
flag appeared on it's node in ivy libraries, but on a subsequent
"Force Resolve" the flag has gone, without me changing anything.
On Oct 7, 5:02 pm, Soupdragon <Malcolm.McMa...@costcutter.com> wrote:
> Well, I'm not quite there, but it's a step in the right direction.
> Seems to be working for the library I've been tinkering with, but the
> project I'm publishing, which as far as I can see has pretty much the
> same structure, still doesn't bring source and javadoc in, though the
> structure in the repository seems very similar.
>
> The Javadoc now appears to work, though.
>
> On Oct 7, 11:28 am, Laurent Forêt <laurent.fo...@gmail.com> wrote:
>
> > surely, because of that line :
>
> >http://code.google.com/p/ivybeans/source/browse/trunk/ivybeans/ivy-li...
>
> > Laurent
>
> > On Thu, Oct 7, 2010 at 12:22 PM, Soupdragon
> > <Malcolm.McMa...@costcutter.com>wrote:
>
> > > Is it possible that the artefacts need to have the same name as the
> > > primary classes jar, or of the jar to which they relate?
Exactly, excuse my first answer, I read too fast . The Lookup feature is very usefull untill the JDK7 will be out : http://download.java.net/jdk7/docs/api/java/util/ServiceLoader.html.