On Aug 9, 2011, at 7:45 AM, bob.lan...@smals.be wrote:

> is it possible to filter out  jars from an uploaded package using buckets? 
> It would be handy to have a list of all jar-files with their associated 
> license. 
> 
> I tried making a bucket that looks for "filename .*jar" but it doesn't work. 

This should have worked.  I created one just to make sure there isn't a bug:
1) create a new bucketpool record
2) create a new bucket_def record for that bucketpool, with bucket_type 5, and 
using a file named "jars"
3) create a file jars in /var/lib/fossology/bucketpools/x  where x is your 
bucketpool_pk
File jars contains one line "filename .*\.jar"

But there is still no joy in this because the output probably isn't what you 
want:

http://repo.fossology.org/simpleIndex.php?mod=bucketbrowser&show=detail&upload=135&item=47665351

Clicking on "Show" shows you all the files in the jars plus extra files that 
probably shouldn't be shown (looks like a bug).  I don't think this is what you 
are looking for.  More on this at the end.


> I ran the "helloworld" EXEC bucket. From what I can tell this is because 
> jar-files are not treated as a whole, which makes sense since it's an archive 
> of files. There's a property with an interesting name  (SRCPKGNAME) but it 
> comes up empty. 

SRCPKGNAME is the name of the Debian or RPM package name of the file being 
scanned.  


I think what you want is a list of jars and what licenses are found in those 
jars.  Something like:

1) aidaref.jar  GPLv2
2) jakarta.jar   MPL, NPL
...

Then you can click on the jar name to drill down into the individual files.  Is 
that right?  
Finding the jar's is easy, just point the browser at your upload, then click on 
"Search" in the top yellow mini-menu and search on %.jar.  But that report only 
shows you the list of jar files, not their licenses.

Enhancement possibilities:
1) show licenses in the search results.
2) let search work with the license/bucket/copyright browser (so you can search 
for .jar and the results are in license/bucket/copyright browser format).
3)???

How do you think it should work?

Bob Gobeille
_______________________________________________
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology

Reply via email to