Hello, thanks to help. Unfortunately, I need to analyze mostly archives in an unattended way (not via the web interface). From a cronjob, I guess I can use svn to retrieve the proper version of my application + build an archive and then cp2foss + fossjobs to trigger the analysis. But how can I retrieve the results? If I wget http://localhost:1234/repo/?mod=license&show=detail&upload=10&item=???, how can I find out what is the item number related to my upload? Do I have to query the Db? I know that REST is on the way but I would accept gladly a workaround. By the way, when do you expect the REST access to be available?
Cheers, -- Phil MARTIN -------- Message d'origine-------- De: Gobeille, Robert [mailto:[email protected]] Date: mer. 11/18/2009 17:26 À: MARTIN PHILIPPE PM Cc: [email protected] Objet : Re: [FOSSology] REST access & subversion URL Hello Phil, REST access is on the list for future versions of fossology. However, the one thing you can do today is submit a file to a fossology server and have it return the licenses found. To do this: 1) edit fossology/ui/plugins/agent-license-once.php. Around line 40 you should see: /** For anyone to access, without login, use: **/ // public $DBaccess = PLUGIN_DB_NONE; // public $LoginFlag = 0; /** To require login access, use: **/ public $DBaccess = PLUGIN_DB_ANALYZE; public $LoginFlag = 1; Uncomment the first two public lines, and comment the last two. This allows the plugin to work with no authentication. 2) Post the file to analyze (a single file, not an archive that must be unpacked) to http://yourfossology/?mod=agent_license_once The discovered license names will be returned. 2) For the upload protocol, are you just trying to use the command line to upload files to a fossology server? If so: man cp2foss man fossjobs Bob Gobeille On Nov 18, 2009, at 8:12 AM, Philippe PM Martin wrote: > > Hello, > > I am evaluating Fossology and I wonder if it is possible to drive a > fossology server from remote using a REST access for instance. It does > not seem to be available on version 1.1 but maybe it will be soon ? ;-) > Another question is about the protocol supported for upload: is it > possible to access SVN repositories via their URLS: http://server/.... > Thanks, > > -- Phil Martin > _______________________________________________ > fossology mailing list > [email protected] > http://fossology.org/mailman/listinfo/fossology
_______________________________________________ fossology mailing list [email protected] http://fossology.org/mailman/listinfo/fossology

