Re: how to tell if a packaging is classpath

2011-07-12 Thread Brett Porter
On 11/07/2011, at 9:04 PM, Benson Margulies wrote: Why is it doing this at all? Jörg, Honestly, I have no idea -- I just happened to spot it on the way by. And when I thought some more, I realized that my question is mis-stated. The issue here isn't classpath, it's more related to

Re: how to tell if a packaging is classpath

2011-07-12 Thread Benson Margulies
Brett, I'm not working on a problem -- well, to be exact, there was an NPE in the code in question, but that's fixed. I happened to see this code while working on 'aggregate' and I wondered if it was entirely satisfactory. --benson On Tue, Jul 12, 2011 at 3:03 AM, Brett Porter br...@apache.org

Re: how to tell if a packaging is classpath

2011-07-12 Thread Brett Porter
On 12/07/2011, at 8:13 PM, Benson Margulies wrote: Brett, I'm not working on a problem -- well, to be exact, there was an NPE in the code in question, but that's fixed. I happened to see this code while working on 'aggregate' and I wondered if it was entirely satisfactory. Cool - it's

Re: how to tell if a packaging is classpath

2011-07-11 Thread Jörg Schaible
Hi Benson, Benson Margulies wrote: In the jxr plugin, I see: if ( !pom.equals( getProject().getPackaging().toLowerCase() ) ) { l.addAll( sourceDirs ); } This can't be good, can it? Isn't there some way to tell what are the classpath packagings? Why is it

Re: how to tell if a packaging is classpath

2011-07-11 Thread Benson Margulies
Why is it doing this at all? Jörg, Honestly, I have no idea -- I just happened to spot it on the way by. And when I thought some more, I realized that my question is mis-stated. The issue here isn't classpath, it's more related to yours: What's the configured java src directory, and is there

Re: how to tell if a packaging is classpath

2011-07-11 Thread Stephen Connolly
http://mojo.codehaus.org/build-helper-maven-plugin/xref/org/codehaus/mojo/buildhelper/AddSourceMojo.html#67 Don't limit yourself to just one directory... And then if this is not a Java based project, those directories might be not holding .java files... On 11 July 2011 12:04, Benson Margulies

Re: how to tell if a packaging is classpath

2011-07-11 Thread Jörg Schaible
Stephen Connolly wrote: http://mojo.codehaus.org/build-helper-maven- plugin/xref/org/codehaus/mojo/buildhelper/AddSourceMojo.html#67 Don't limit yourself to just one directory... Yeah, but this raises the question, if a JXR report over generated Java sources is actually wanted. And then

Re: how to tell if a packaging is classpath

2011-07-11 Thread Stephen Connolly
On 11 July 2011 12:37, Jörg Schaible joerg.schai...@scalaris.com wrote: Stephen Connolly wrote: http://mojo.codehaus.org/build-helper-maven- plugin/xref/org/codehaus/mojo/buildhelper/AddSourceMojo.html#67 Don't limit yourself to just one directory... Yeah, but this raises the question, if

how to tell if a packaging is classpath

2011-07-10 Thread Benson Margulies
In the jxr plugin, I see: if ( !pom.equals( getProject().getPackaging().toLowerCase() ) ) { l.addAll( sourceDirs ); } This can't be good, can it? Isn't there some way to tell what are the classpath packagings?