Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-367

Need a rule element / condition to search any file by regular expression

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Final
    • 2.0.0.Beta4
    • None
    • None
    • None

      This probably means we should create a new rule addon for plain files (or repurpose the XML file rules addon to be generic to "Files" of various types.

      FileContent.matches("Some\\s+Pattern.*Of\\s+Words").inFilesNamed("\\.*.html")
      

      This should probably register patterns of interest (similar to the Java TypeInterestFactory) and then run these against files during a parsing phase (I think we probably want to introduce a parsing phase when all parse events actually run on a file at the same time (probably in a Scanner or something equivalent.)) It's too bad that the Java Regex API doesn't support streaming --> One option is: https://code.google.com/p/streamflyer/

              jsightle@redhat.com Jess Sightler
              lincolnthree Lincoln Baxter III (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: