Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-328

Switch from Cobertura code coverage to Jacoco code coverage as all commons projects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

       

      Move the file `src/site/resources/profile.cobertura` to `src/site/resources/profile.jacoco` to do this.
       
       
      Errors:
       

      
      
      ParseException in STDINParseException in STDINLast useful checkpoint: "org.apache.commons.fileupload2.FileUploadBase.parseParameterMap(RequestContext)"Encountered " ">" "> "" at line 389, column 81.Was expecting one of:    "assert" ...    "boolean" ...    "byte" ...    "char" ...    "double" ...    "enum" ...    "false" ...    "float" ...    "int" ...    "long" ...    "new" ...    "null" ...    "short" ...    "super" ...    "this" ...    "true" ...    "void" ...    <INTEGER_LITERAL> ...    <FLOATING_POINT_LITERAL> ...    <CHARACTER_LITERAL> ...    <STRING_LITERAL> ...    <IDENTIFIER> ...    "(" ...    "!" ...    "~" ...    "++" ...    "--" ...    "+" ...    "-" ...[WARN] JavaNCSS got an error while parsing the java file /Users/abernal/IdeaProyect/commons-fileupload/src/main/java/org/apache/commons/fileupload2/util/FileItemHeadersImpl.javaParseException in STDINLast useful checkpoint: "org.apache.commons.fileupload2.util.FileItemHeadersImpl.addHeader(String,String)"Encountered " ">" "> "" at line 90, column 95.Was expecting one of:    "assert" ...    "boolean" ...    "byte" ...    "char" ...    "double" ...    "enum" ...    "false" ...    "float" ...    "int" ...    "long" ...    "new" ...    "null" ...    "short" ...    "super" ...    "this" ...    "true" ...    "void" ...    <INTEGER_LITERAL> ...    <FLOATING_POINT_LITERAL> ...    <CHARACTER_LITERAL> ...    <STRING_LITERAL> ...    <IDENTIFIER> ...    "(" ...    "!" ...    "~" ...    "++" ...    "--" ...    "+" ...    "-" ...[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/FileItem.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/FileItemFactory.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/FileItemHeaders.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/FileItemHeadersSupport.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/FileItemIterator.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/FileItemStream.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/ProgressListener.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/RequestContext.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/UploadContext.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.[INFO] Data file does not contain instrumentation information for the file org/apache/commons/fileupload2/util/Closeable.java.  Ensure this class was instrumented, and this data file contains the instrumentation information.Report time: 360ms
      [ERROR] net.sourceforge.cobertura.javancss.parser.ParseException: Encountered " ">" "> "" at line 389, column 81.Was expecting one of:    "assert" ...    "boolean" ...    "byte" ...    "char" ...    "double" ...    "enum" ...    "false" ...    "float" ...    "int" ...    "long" ...    "new" ...    "null" ...    "short" ...    "super" ...    "this" ...    "true" ...    "void" ...    <INTEGER_LITERAL> ...    <FLOATING_POINT_LITERAL> ...    <CHARACTER_LITERAL> ...    <STRING_LITERAL> ...    <IDENTIFIER> ...    "(" ...    "!" ...    "~" ...    "++" ...    "--" ...    "+" ...    "-" ...
       at net.sourceforge.cobertura.javancss.parser.JavaParser.generateParseException(JavaParser.java:10490) at net.sourceforge.cobertura.javancss.parser.JavaParser.jj_consume_token(JavaParser.java:10366) at net.sourceforge.cobertura.javancss.parser.JavaParser.UnaryExpression(JavaParser.java:3175) at net.sourceforge.cobertura.javancss.parser.JavaParser.MultiplicativeExpression(JavaParser.java:3090) at net.sourceforge.cobertura.javancss.parser.JavaParser.AdditiveExpression(JavaParser.java:3085) at net.sourceforge.cobertura.javancss.parser.JavaParser.ShiftExpression(JavaParser.java:3027) at net.sourceforge.cobertura.javancss.parser.JavaParser.RelationalExpression(JavaParser.java:2990) at net.sourceforge.cobertura.javancss.parser.JavaParser.InstanceOfExpression(JavaParser.java:2977) at net.sourceforge.cobertura.javancss.parser.JavaParser.AssigmentExpression(JavaParser.java:2959) at net.sourceforge.cobertura.javancss.parser.JavaParser.EqualityExpression(JavaParser.java:2886) at net.sourceforge.cobertura.javancss.parser.JavaParser.AndExpression(JavaParser.java:2860) at net.sourceforge.cobertura.javancss.parser.JavaParser.ExclusiveOrExpression(JavaParser.java:2843) at net.sourceforge.cobertura.javancss.parser.JavaParser.InclusiveOrExpression(JavaParser.java:2826) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalAndExpression(JavaParser.java:2808) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalOrExpression(JavaParser.java:2790) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalExpression(JavaParser.java:2774) at net.sourceforge.cobertura.javancss.parser.JavaParser.Expression(JavaParser.java:2718) at net.sourceforge.cobertura.javancss.parser.JavaParser.ArgumentList(JavaParser.java:3632) at net.sourceforge.cobertura.javancss.parser.JavaParser.Arguments(JavaParser.java:3610) at net.sourceforge.cobertura.javancss.parser.JavaParser.PrimarySuffix(JavaParser.java:3511) at net.sourceforge.cobertura.javancss.parser.JavaParser.PrimaryExpression(JavaParser.java:3384) at net.sourceforge.cobertura.javancss.parser.JavaParser.PostfixExpression(JavaParser.java:3330) at net.sourceforge.cobertura.javancss.parser.JavaParser.UnaryExpressionNotPlusMinus(JavaParser.java:3237) at net.sourceforge.cobertura.javancss.parser.JavaParser.UnaryExpression(JavaParser.java:3171) at net.sourceforge.cobertura.javancss.parser.JavaParser.MultiplicativeExpression(JavaParser.java:3090) at net.sourceforge.cobertura.javancss.parser.JavaParser.AdditiveExpression(JavaParser.java:3061) at net.sourceforge.cobertura.javancss.parser.JavaParser.ShiftExpression(JavaParser.java:3027) at net.sourceforge.cobertura.javancss.parser.JavaParser.RelationalExpression(JavaParser.java:2990) at net.sourceforge.cobertura.javancss.parser.JavaParser.InstanceOfExpression(JavaParser.java:2977) at net.sourceforge.cobertura.javancss.parser.JavaParser.AssigmentExpression(JavaParser.java:2959) at net.sourceforge.cobertura.javancss.parser.JavaParser.EqualityExpression(JavaParser.java:2886) at net.sourceforge.cobertura.javancss.parser.JavaParser.AndExpression(JavaParser.java:2860) at net.sourceforge.cobertura.javancss.parser.JavaParser.ExclusiveOrExpression(JavaParser.java:2843) at net.sourceforge.cobertura.javancss.parser.JavaParser.InclusiveOrExpression(JavaParser.java:2826) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalAndExpression(JavaParser.java:2808) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalOrExpression(JavaParser.java:2790) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalExpression(JavaParser.java:2774) at net.sourceforge.cobertura.javancss.parser.JavaParser.Expression(JavaParser.java:2718) at net.sourceforge.cobertura.javancss.parser.JavaParser.VariableInitializer(JavaParser.java:1744) at net.sourceforge.cobertura.javancss.parser.JavaParser.VariableDeclarator(JavaParser.java:1672) at net.sourceforge.cobertura.javancss.parser.JavaParser.LocalVariableDeclaration(JavaParser.java:4019) at net.sourceforge.cobertura.javancss.parser.JavaParser.BlockStatement(JavaParser.java:3941) at net.sourceforge.cobertura.javancss.parser.JavaParser.Block(JavaParser.java:3934) at net.sourceforge.cobertura.javancss.parser.JavaParser.Statement(JavaParser.java:3765) at net.sourceforge.cobertura.javancss.parser.JavaParser.ForStatement(JavaParser.java:4445) at net.sourceforge.cobertura.javancss.parser.JavaParser.Statement(JavaParser.java:3815) at net.sourceforge.cobertura.javancss.parser.JavaParser.BlockStatement(JavaParser.java:3984) at net.sourceforge.cobertura.javancss.parser.JavaParser.Block(JavaParser.java:3934) at net.sourceforge.cobertura.javancss.parser.JavaParser.MethodDeclaration(JavaParser.java:1987) at net.sourceforge.cobertura.javancss.parser.JavaParser.ClassBodyDeclaration(JavaParser.java:1039) at net.sourceforge.cobertura.javancss.parser.JavaParser.ClassBody(JavaParser.java:898) at net.sourceforge.cobertura.javancss.parser.JavaParser.UnmodifiedClassDeclaration(JavaParser.java:824) at net.sourceforge.cobertura.javancss.parser.JavaParser.ClassDeclaration(JavaParser.java:728) at net.sourceforge.cobertura.javancss.parser.JavaParser.TypeDeclaration(JavaParser.java:575) at net.sourceforge.cobertura.javancss.parser.JavaParser.CompilationUnit(JavaParser.java:318) at net.sourceforge.cobertura.javancss.parser.JavaParser.parse(JavaParser.java:100) at net.sourceforge.cobertura.javancss.Javancss._measureSource(Javancss.java:192) at net.sourceforge.cobertura.javancss.Javancss._measureRoot(Javancss.java:268) at net.sourceforge.cobertura.javancss.Javancss.<init>(Javancss.java:347) at net.sourceforge.cobertura.javancss.JavancssFactory.newInstance(JavancssFactory.java:40) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getFunctionMetricsForSingleFile(ComplexityCalculator.java:243) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getAccumlatedCCNForSingleFile(ComplexityCalculator.java:143) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForSourceFileNameInternal(ComplexityCalculator.java:273) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForPackageInternal(ComplexityCalculator.java:208) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForProject(ComplexityCalculator.java:174) at net.sourceforge.cobertura.reporting.html.HTMLReport.generateTableRowForTotal(HTMLReport.java:606) at net.sourceforge.cobertura.reporting.html.HTMLReport.generateOverview(HTMLReport.java:290) at net.sourceforge.cobertura.reporting.html.HTMLReport.generateOverviews(HTMLReport.java:231) at net.sourceforge.cobertura.reporting.html.HTMLReport.<init>(HTMLReport.java:74) at net.sourceforge.cobertura.reporting.html.HTMLReportFormatStrategy.save(HTMLReportFormatStrategy.java:18) at net.sourceforge.cobertura.reporting.NativeReport.export(NativeReport.java:31) at net.sourceforge.cobertura.reporting.CompositeReport.export(CompositeReport.java:19) at net.sourceforge.cobertura.reporting.ReportMain.parseArgumentsAndReport(ReportMain.java:91) at net.sourceforge.cobertura.reporting.ReportMain.generateReport(ReportMain.java:141) at net.sourceforge.cobertura.reporting.ReportMain.main(ReportMain.java:151)net.sourceforge.cobertura.javancss.parser.ParseException: Encountered " ">" "> "" at line 90, column 95.Was expecting one of:    "assert" ...    "boolean" ...    "byte" ...    "char" ...    "double" ...    "enum" ...    "false" ...    "float" ...    "int" ...    "long" ...    "new" ...    "null" ...    "short" ...    "super" ...    "this" ...    "true" ...    "void" ...    <INTEGER_LITERAL> ...    <FLOATING_POINT_LITERAL> ...    <CHARACTER_LITERAL> ...    <STRING_LITERAL> ...    <IDENTIFIER> ...    "(" ...    "!" ...    "~" ...    "++" ...    "--" ...    "+" ...    "-" ...
       at net.sourceforge.cobertura.javancss.parser.JavaParser.generateParseException(JavaParser.java:10490) at net.sourceforge.cobertura.javancss.parser.JavaParser.jj_consume_token(JavaParser.java:10366) at net.sourceforge.cobertura.javancss.parser.JavaParser.UnaryExpression(JavaParser.java:3175) at net.sourceforge.cobertura.javancss.parser.JavaParser.MultiplicativeExpression(JavaParser.java:3090) at net.sourceforge.cobertura.javancss.parser.JavaParser.AdditiveExpression(JavaParser.java:3085) at net.sourceforge.cobertura.javancss.parser.JavaParser.ShiftExpression(JavaParser.java:3027) at net.sourceforge.cobertura.javancss.parser.JavaParser.RelationalExpression(JavaParser.java:2990) at net.sourceforge.cobertura.javancss.parser.JavaParser.InstanceOfExpression(JavaParser.java:2977) at net.sourceforge.cobertura.javancss.parser.JavaParser.AssigmentExpression(JavaParser.java:2959) at net.sourceforge.cobertura.javancss.parser.JavaParser.EqualityExpression(JavaParser.java:2886) at net.sourceforge.cobertura.javancss.parser.JavaParser.AndExpression(JavaParser.java:2860) at net.sourceforge.cobertura.javancss.parser.JavaParser.ExclusiveOrExpression(JavaParser.java:2843) at net.sourceforge.cobertura.javancss.parser.JavaParser.InclusiveOrExpression(JavaParser.java:2826) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalAndExpression(JavaParser.java:2808) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalOrExpression(JavaParser.java:2790) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalExpression(JavaParser.java:2774) at net.sourceforge.cobertura.javancss.parser.JavaParser.Expression(JavaParser.java:2718) at net.sourceforge.cobertura.javancss.parser.JavaParser.ArgumentList(JavaParser.java:3632) at net.sourceforge.cobertura.javancss.parser.JavaParser.Arguments(JavaParser.java:3610) at net.sourceforge.cobertura.javancss.parser.JavaParser.PrimarySuffix(JavaParser.java:3511) at net.sourceforge.cobertura.javancss.parser.JavaParser.PrimaryExpression(JavaParser.java:3384) at net.sourceforge.cobertura.javancss.parser.JavaParser.PostfixExpression(JavaParser.java:3330) at net.sourceforge.cobertura.javancss.parser.JavaParser.UnaryExpressionNotPlusMinus(JavaParser.java:3237) at net.sourceforge.cobertura.javancss.parser.JavaParser.UnaryExpression(JavaParser.java:3171) at net.sourceforge.cobertura.javancss.parser.JavaParser.MultiplicativeExpression(JavaParser.java:3090) at net.sourceforge.cobertura.javancss.parser.JavaParser.AdditiveExpression(JavaParser.java:3061) at net.sourceforge.cobertura.javancss.parser.JavaParser.ShiftExpression(JavaParser.java:3027) at net.sourceforge.cobertura.javancss.parser.JavaParser.RelationalExpression(JavaParser.java:2990) at net.sourceforge.cobertura.javancss.parser.JavaParser.InstanceOfExpression(JavaParser.java:2977) at net.sourceforge.cobertura.javancss.parser.JavaParser.AssigmentExpression(JavaParser.java:2959) at net.sourceforge.cobertura.javancss.parser.JavaParser.EqualityExpression(JavaParser.java:2886) at net.sourceforge.cobertura.javancss.parser.JavaParser.AndExpression(JavaParser.java:2860) at net.sourceforge.cobertura.javancss.parser.JavaParser.ExclusiveOrExpression(JavaParser.java:2843) at net.sourceforge.cobertura.javancss.parser.JavaParser.InclusiveOrExpression(JavaParser.java:2826) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalAndExpression(JavaParser.java:2808) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalOrExpression(JavaParser.java:2790) at net.sourceforge.cobertura.javancss.parser.JavaParser.ConditionalExpression(JavaParser.java:2774) at net.sourceforge.cobertura.javancss.parser.JavaParser.Expression(JavaParser.java:2718) at net.sourceforge.cobertura.javancss.parser.JavaParser.VariableInitializer(JavaParser.java:1744) at net.sourceforge.cobertura.javancss.parser.JavaParser.VariableDeclarator(JavaParser.java:1672) at net.sourceforge.cobertura.javancss.parser.JavaParser.LocalVariableDeclaration(JavaParser.java:4019) at net.sourceforge.cobertura.javancss.parser.JavaParser.BlockStatement(JavaParser.java:3941) at net.sourceforge.cobertura.javancss.parser.JavaParser.Block(JavaParser.java:3934) at net.sourceforge.cobertura.javancss.parser.JavaParser.MethodDeclaration(JavaParser.java:1987) at net.sourceforge.cobertura.javancss.parser.JavaParser.ClassBodyDeclaration(JavaParser.java:1039) at net.sourceforge.cobertura.javancss.parser.JavaParser.ClassBody(JavaParser.java:898) at net.sourceforge.cobertura.javancss.parser.JavaParser.UnmodifiedClassDeclaration(JavaParser.java:824) at net.sourceforge.cobertura.javancss.parser.JavaParser.ClassDeclaration(JavaParser.java:728) at net.sourceforge.cobertura.javancss.parser.JavaParser.TypeDeclaration(JavaParser.java:575) at net.sourceforge.cobertura.javancss.parser.JavaParser.CompilationUnit(JavaParser.java:318) at net.sourceforge.cobertura.javancss.parser.JavaParser.parse(JavaParser.java:100) at net.sourceforge.cobertura.javancss.Javancss._measureSource(Javancss.java:192) at net.sourceforge.cobertura.javancss.Javancss._measureRoot(Javancss.java:268) at net.sourceforge.cobertura.javancss.Javancss.<init>(Javancss.java:347) at net.sourceforge.cobertura.javancss.JavancssFactory.newInstance(JavancssFactory.java:40) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getFunctionMetricsForSingleFile(ComplexityCalculator.java:243) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getAccumlatedCCNForSingleFile(ComplexityCalculator.java:143) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForSourceFileNameInternal(ComplexityCalculator.java:273) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForPackageInternal(ComplexityCalculator.java:208) at net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForProject(ComplexityCalculator.java:174) at net.sourceforge.cobertura.reporting.html.HTMLReport.generateTableRowForTotal(HTMLReport.java:606) at net.sourceforge.cobertura.reporting.html.HTMLReport.generateOverview(HTMLReport.java:290) at net.sourceforge.cobertura.reporting.html.HTMLReport.generateOverviews(HTMLReport.java:231) at net.sourceforge.cobertura.reporting.html.HTMLReport.<init>(HTMLReport.java:74) at net.sourceforge.cobertura.reporting.html.HTMLReportFormatStrategy.save(HTMLReportFormatStrategy.java:18) at net.sourceforge.cobertura.reporting.NativeReport.export(NativeReport.java:31) at net.sourceforge.cobertura.reporting.CompositeReport.export(CompositeReport.java:19) at net.sourceforge.cobertura.reporting.ReportMain.parseArgumentsAndReport(ReportMain.java:91) at net.sourceforge.cobertura.reporting.ReportMain.generateReport(ReportMain.java:141) at net.sourceforge.cobertura.reporting.ReportMain.main(ReportMain.java:151)
      
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            arturobernalg Arturo Bernal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: