creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Ottlinger (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TENTACLES-6) Tentacles fails due to too long filenames
Date Tue, 12 Aug 2014 21:52:14 GMT
Philipp Ottlinger created TENTACLES-6:
-----------------------------------------

             Summary: Tentacles fails due to too long filenames
                 Key: TENTACLES-6
                 URL: https://issues.apache.org/jira/browse/TENTACLES-6
             Project: Apache Tentacles
          Issue Type: Bug
         Environment: Ubuntu 14.04 LTS, JDK8, Tentacles-trunk, Revision: 1617590
            Reporter: Philipp Ottlinger
            Assignee: Robert Burrell Donkin


Currently Tentacles is just appending the full path to the output files. Used on RAT itself
this results in filenames that are too long. The policy to name files should be to shorten
it such as some logging frameworks do.

{noformat}
orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-plugin/0.11/apache-rat-plugin-0.11-sources.jar
{noformat}
could become something like
{noformat}
o-1000/r/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/o/a/r/a/0.11/a-r-p-0.11-sources.jar
{noformat}

Currently a run showing this behaviour looks like this:
{noformat}
$ java -jar apache-tentacles-0.1-SNAPSHOT-jar-with-dependencies.jar https://repository.apache.org/content/repositories/orgapachecreadur-1000/
0 [main] INFO org.apache.creadur.tentacles.Main  - Launching Apache Tentacles ...
249 [main] INFO org.apache.creadur.tentacles.Main  - Remote repository: https://repository.apache.org/content/repositories/orgapachecreadur-1000/
249 [main] INFO org.apache.creadur.tentacles.Main  - Local root directory: orgapachecreadur-1000
890 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl https://repository.apache.org/content/repositories/orgapachecreadur-1000/
4363 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/
5049 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/
5943 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/
8375 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-core/
9313 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-core/0.11/
10898 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-plugin/
11980 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-plugin/0.11/
17325 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-project/
18723 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-project/0.11/
19458 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-tasks/
20024 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-tasks/0.11/
22055 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/
23274 [main] INFO org.apache.creadur.tentacles.NexusClient  - Crawl http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/0.11/
25936 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-core/0.11/apache-rat-core-0.11-javadoc.jar
26480 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-core/0.11/apache-rat-core-0.11-sources.jar
26927 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-core/0.11/apache-rat-core-0.11.jar
27365 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-plugin/0.11/apache-rat-plugin-0.11-javadoc.jar
28086 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-plugin/0.11/apache-rat-plugin-0.11-sources.jar
28677 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-plugin/0.11/apache-rat-plugin-0.11.jar
29119 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-tasks/0.11/apache-rat-tasks-0.11-javadoc.jar
29559 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-tasks/0.11/apache-rat-tasks-0.11-sources.jar
30113 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-tasks/0.11/apache-rat-tasks-0.11.jar
31644 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/0.11/apache-rat-0.11-bin.zip
32087 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/0.11/apache-rat-0.11-src.zip
32588 [main] INFO org.apache.creadur.tentacles.NexusClient  - Exists http://repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/0.11/apache-rat-0.11.jar
32589 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-tasks/0.11/apache-rat-tasks-0.11-javadoc.jar
32871 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-core/0.11/apache-rat-core-0.11-javadoc.jar
33376 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-plugin/0.11/apache-rat-plugin-0.11.jar
33401 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-tasks/0.11/apache-rat-tasks-0.11-sources.jar
33429 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/0.11/apache-rat-0.11-src.zip
34020 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/content/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/0.11/apache-rat-0.11-src.zip.contents/apache-rat-0.11/apache-rat-core/src/test/resources/elements/dummy.jar
34744 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-plugin/0.11/apache-rat-plugin-0.11-sources.jar
34781 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-tasks/0.11/apache-rat-tasks-0.11.jar
34808 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/0.11/apache-rat-0.11.jar
36626 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-core/0.11/apache-rat-core-0.11-sources.jar
37021 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-plugin/0.11/apache-rat-plugin-0.11-javadoc.jar
37162 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/0.11/apache-rat-0.11-bin.zip
37572 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/content/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat/0.11/apache-rat-0.11-bin.zip.contents/apache-rat-0.11/apache-rat-0.11.jar
38809 [main] INFO org.apache.creadur.tentacles.Main  - Unpack orgapachecreadur-1000/repo/http:/repository.apache.org/content/repositories/orgapachecreadur-1000/org/apache/rat/apache-rat-core/0.11/apache-rat-core-0.11.jar
Exception in thread "main" java.io.FileNotFoundException: orgapachecreadur-1000/http:.repository.apache.org.content.repositories.orgapachecreadur-1000.org.apache.rat.apache-rat-plugin.0.11.apache-rat-plugin-0.11-sources.jar.licenses.html
(Der Dateiname ist zu lang)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:156)
        at java.io.FileWriter.<init>(FileWriter.java:90)
        at org.apache.creadur.tentacles.IOSystem.writeString(IOSystem.java:56)
        at org.apache.creadur.tentacles.TemplateBuilder.write(TemplateBuilder.java:70)
        at org.apache.creadur.tentacles.Main.reportDeclaredLicenses(Main.java:202)
        at org.apache.creadur.tentacles.Main.reportOn(Main.java:143)
        at org.apache.creadur.tentacles.Main.main(Main.java:118)
        at org.apache.creadur.tentacles.Main.main(Main.java:109)
{noformat}





--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message