Maven Plugin Tools
  1. Maven Plugin Tools
  2. MPLUGIN-220

Can not use regex in @Parameter(defaultValue)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.2
    • Component/s: Plugin Plugin
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When transform a javadoc default value

      default-value="[a-zA-Z]{2,}-\\d+"
      

      to

      defaultValue = "[a-zA-Z]{2,}-\\\\d+"
      

      I have when building :

      Caused by: com.thoughtworks.qdox.parser.ParseException: Illegal escape character 'd' @[295,85] in file:/home/tchemit/projets/apache/maven/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/plugin/changelog/ChangeLogReport.java
      	at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:1018)
      	at com.thoughtworks.qdox.parser.impl.Parser.convertString(Parser.java:1126)
      	at com.thoughtworks.qdox.parser.impl.Parser.toString(Parser.java:1233)
      	at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1800)
      	at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:999)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:353)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:381)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:377)
      	at com.thoughtworks.qdox.JavaDocBuilder$2.visitFile(JavaDocBuilder.java:467)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:464)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:453)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.discoverClasses(JavaAnnotationsMojoDescriptorExtractor.java:453)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.discoverClasses(JavaAnnotationsMojoDescriptorExtractor.java:443)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.discoverClasses(JavaAnnotationsMojoDescriptorExtractor.java:422)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.scanJavadoc(JavaAnnotationsMojoDescriptorExtractor.java:188)
      	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.execute(JavaAnnotationsMojoDescriptorExtractor.java:106)
      	at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:108)
      	at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:233)
      
      

        Issue Links

          Activity

          Hide
          Robert Scholte added a comment -

          Another reason for me to finally release the first beta versions of QDox 2.0, which include this fix.

          Show
          Robert Scholte added a comment - Another reason for me to finally release the first beta versions of QDox 2.0, which include this fix.
          Hide
          Robert Scholte added a comment -

          Added r1405438
          This confirms that the QDox-1.12.1 patch release will fix this.

          Show
          Robert Scholte added a comment - Added r1405438 This confirms that the QDox-1.12.1 patch release will fix this.
          Hide
          Robert Scholte added a comment -

          Fixed in r1405658

          Show
          Robert Scholte added a comment - Fixed in r1405658

            People

            • Assignee:
              Robert Scholte
              Reporter:
              Tony Chemit
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: