In this case file 'redacted.h' is not readable by the jenkins user.
(say it was created with wong umask)
instead of aborting the whole analysis, can cpd just warn log about the file and continue!?
19:55:12 java.io.FileNotFoundException: redacted.h (Permission denied)
19:55:12 at java.io.FileInputStream.open(Native Method)
19:55:12 at java.io.FileInputStream.<init>(FileInputStream.java:120)
19:55:12 at net.sourceforge.pmd.cpd.SourceCode$FileCodeLoader.getReader(SourceCode.java:73)
19:55:12 at net.sourceforge.pmd.cpd.SourceCode$CodeLoader.load(SourceCode.java:42)
19:55:12 at net.sourceforge.pmd.cpd.SourceCode$CodeLoader.getCode(SourceCode.java:31)
19:55:12 at net.sourceforge.pmd.cpd.SourceCode.getCodeBuffer(SourceCode.java:118)
19:55:12 at net.sourceforge.pmd.cpd.CPPTokenizer.tokenize(CPPTokenizer.java:17)
19:55:12 at net.sourceforge.pmd.cpd.CPD.add(CPD.java:107)
19:55:12 at net.sourceforge.pmd.cpd.CPD.add(CPD.java:73)
19:55:12 at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:83)
19:55:12 at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:68)
19:55:12 at net.sourceforge.pmd.cpd.CPD.main(CPD.java:200)</init>
Last edit: Anonymous 2013-11-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This looks like a file permissions issue. Do you have read/write permissions?
instead of aborting the whole analysis, can cpd just warn log about the
file and continue!?
Why would you want to scan a file that the user doesn't have permission to access to begin with?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
instead of aborting the whole analysis, can cpd just warn log about the file and continue!?
Why would you want to scan a file that the user doesn't have permission to
access to begin with?
Well, in real life this can happen, especially within a CI server such as Jenkins. Simply ignoring unreadable file could make sense, but this need to be implemented.
@Moncreg: I don't think anybody will do it but if you submit patch with the appropriate changes we will definitely look at it and try to apply it.
As there is already to many bug reports right now and it's more like a feature request than a real, blocking I close this entry (sorry).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Issues"
In this case file 'redacted.h' is not readable by the jenkins user.
(say it was created with wong umask)
instead of aborting the whole analysis, can cpd just warn log about the file and continue!?
19:55:12 java.io.FileNotFoundException: redacted.h (Permission denied)
19:55:12 at java.io.FileInputStream.open(Native Method)
19:55:12 at java.io.FileInputStream.<init>(FileInputStream.java:120)
19:55:12 at net.sourceforge.pmd.cpd.SourceCode$FileCodeLoader.getReader(SourceCode.java:73)
19:55:12 at net.sourceforge.pmd.cpd.SourceCode$CodeLoader.load(SourceCode.java:42)
19:55:12 at net.sourceforge.pmd.cpd.SourceCode$CodeLoader.getCode(SourceCode.java:31)
19:55:12 at net.sourceforge.pmd.cpd.SourceCode.getCodeBuffer(SourceCode.java:118)
19:55:12 at net.sourceforge.pmd.cpd.CPPTokenizer.tokenize(CPPTokenizer.java:17)
19:55:12 at net.sourceforge.pmd.cpd.CPD.add(CPD.java:107)
19:55:12 at net.sourceforge.pmd.cpd.CPD.add(CPD.java:73)
19:55:12 at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:83)
19:55:12 at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:68)
19:55:12 at net.sourceforge.pmd.cpd.CPD.main(CPD.java:200)</init>
Last edit: Anonymous 2013-11-26
This looks like a file permissions issue. Do you have read/write permissions?
instead of aborting the whole analysis, can cpd just warn log about the
file and continue!?
Why would you want to scan a file that the user doesn't have permission to access to begin with?
Well, in real life this can happen, especially within a CI server such as Jenkins. Simply ignoring unreadable file could make sense, but this need to be implemented.
@Moncreg: I don't think anybody will do it but if you submit patch with the appropriate changes we will definitely look at it and try to apply it.
As there is already to many bug reports right now and it's more like a feature request than a real, blocking I close this entry (sorry).