Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2364

No tasks are found when looking for "@todo" tasks

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • tasks-plugin
    • None
    • Platform: All, OS: All

      If I enter "@todo" into the task tag to look for, the task plugin will not find
      any tasks at all. But if I changed into "todo" it found 139 instances. @todo is
      used by doxygen to gather todo's in a report, but it would be nice if ther tasks
      plugin could find them.

      Steps to reproduce:
      1. Setup project to find @todo
      2. Create a file in the workspace containing " * @todo Move the default options
      to"
      3. Start the build

      Expected outcome:
      The task plugin would display 1 found task

      Actual outcome:
      No open tasks were found

      Tasks - 2.16
      Hudson 1.252

          [JENKINS-2364] No tasks are found when looking for "@todo" tasks

          Ulli Hafner added a comment -

          Any ideas how to get this working without influencing issue 1738?

          Ulli Hafner added a comment - Any ideas how to get this working without influencing issue 1738?

          redsolo added a comment -

          If you are only looking for words, cant "\s[TAG\s" work as the regex?

          redsolo added a comment - If you are only looking for words, cant "\s[TAG\s" work as the regex?

          Ulli Hafner added a comment -

          It's not that easy since words could be followed by punctuation characters.
          I need to parse the tags and change the expression depending on the first char.

          The following todos are valid now, please reopen if not:

          here is a @todo marker
          @todo at the beginning
          and one at the end @todo
          Text:@todo: this one, too
          Text@todo: this one, too

          Ulli Hafner added a comment - It's not that easy since words could be followed by punctuation characters. I need to parse the tags and change the expression depending on the first char. The following todos are valid now, please reopen if not: here is a @todo marker @todo at the beginning and one at the end @todo Text:@todo: this one, too Text@todo: this one, too

          Ulli Hafner added a comment -

          See TaskScannerTest.

          Ulli Hafner added a comment - See TaskScannerTest.

          Code changed in hudson
          User: : drulli
          Path:
          trunk/hudson/plugins/tasks/src/main/java/hudson/plugins/tasks/parser/TaskScanner.java
          trunk/hudson/plugins/tasks/src/test/java/hudson/plugins/tasks/parser/TaskScannerTest.java
          trunk/hudson/plugins/tasks/src/test/resources/hudson/plugins/tasks/parser/tasks-words-test.txt
          http://fisheye4.cenqua.com/changelog/hudson/?cs=12113
          Log:
          [FIXED JENKINS-2364] Adde support for tags with non-word characters (@todo)

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : drulli Path: trunk/hudson/plugins/tasks/src/main/java/hudson/plugins/tasks/parser/TaskScanner.java trunk/hudson/plugins/tasks/src/test/java/hudson/plugins/tasks/parser/TaskScannerTest.java trunk/hudson/plugins/tasks/src/test/resources/hudson/plugins/tasks/parser/tasks-words-test.txt http://fisheye4.cenqua.com/changelog/hudson/?cs=12113 Log: [FIXED JENKINS-2364] Adde support for tags with non-word characters (@todo)

            drulli Ulli Hafner
            redsolo redsolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: