|
580 | 580 |
|
581 | 581 | The ``--license-url-template`` option sets the template URL used for the license reference URLs. |
582 | 582 |
|
583 | | - The default template URL is : [https://enterprise.dejacode.com/urn/urn:dje:license:{}] |
| 583 | + The default template URL is : [https://scancode-licensedb.aboutcode.org/{}] |
584 | 584 | In a template URL, curly braces ({}) are replaced by the license key. |
585 | 585 |
|
586 | | - So, by default the license reference URL points to the dejacode page for that license. |
| 586 | + So, by default the license reference URL points to the LicenseDB page for that license. |
587 | 587 |
|
588 | 588 | A scan example using the ``--license-url-template TEXT`` option :: |
589 | 589 |
|
590 | | - scancode -clpieu --json-pp output.json samples --license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.yml |
| 590 | + scancode -clpieu --json-pp output.json samples --license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE |
591 | 591 |
|
592 | 592 | In a normal scan, reference url for "ZLIB License" is as follows:: |
593 | 593 |
|
594 | | - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", |
| 594 | + "reference_url": "https://scancode-licensedb.aboutcode.org/zlib", |
595 | 595 |
|
596 | 596 | After using the option in the following manner:: |
597 | 597 |
|
598 | | - ``--license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}`` |
| 598 | + ``--license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE`` |
599 | 599 |
|
600 | | - the reference URL changes to this `zlib.yml file <https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.yml>`_:: |
| 600 | + the reference URL changes to this `zlib.LICENSE file <https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE>`_:: |
601 | 601 |
|
602 | | - "reference_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/zlib.yml", |
| 602 | + "reference_url": "https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE", |
603 | 603 |
|
604 | 604 | The reference URL changes for all detected licenses in the scan, across the scan result file. |
605 | 605 |
|
|
0 commit comments