Forums : Feedback Forum

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

Drill down into licenses

Somehow list files that contribute to a particular license. If a license is flagged as one thing, and shows others, I'd like to know why for my own safety.

Jason Birch about 17 years ago
 

Hi JBirch,

This is one of our continual internal gripes too. I've bumped up the priority - but it realistically will still be a few weeks.

Jason Allen about 17 years ago
 

Add a vote for this issue on my account. Ohloh reports the wicket project to have one file with LGPL, but I can't seem to find it.

Martijn Dashorst about 17 years ago
 

Hi dashorst,

This feature is in progress right now. In the meantime, I looked into our database to try to answer your question. The answer is sort of interesting.

Our parser identified LGPL in http://svn.apache.org/repos/asf/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/license/ILicenseHeaderHandler.java.

Here's the fragment that triggered our parser:

/**
* Get the license type of the file. F.ex. ASL2, ASL1.1, GPL, LGPL etc.
*
* @param file THe file to get the license type from.
* @return The license type of the file. Null if no license header in the file.
*/
String getLicenseType(File file);

Our parser found the license names in the comment, and assumed that this was a license declaration. Obviously our parser is not as smart as a real person :-).

It's not immediately obvious to me how Ohloh can avoid this. Ideas?

Robin Luckey about 17 years ago
 

Heh, I was figuring out when/where I posted this... Now I found your reply.

Typically licenses are declared in the top of each file, and not in a JavaDoc comment (for Java files), identified with /** instead of /*

I would limit the scanning for licenses to just the first comment block or something similar

Martijn Dashorst over 16 years ago