<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] tFileList filemask regex in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileList-filemask-regex/m-p/2235762#M24705</link>
    <description>Hi
&lt;BR /&gt;Which version of TOS are you using? It is a compilation error, try ".*\\.xls.*"
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
    <pubDate>Thu, 21 Apr 2011 13:06:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-21T13:06:25Z</dc:date>
    <item>
      <title>[resolved] tFileList filemask regex</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileList-filemask-regex/m-p/2235761#M24704</link>
      <description>Hi All,
&lt;BR /&gt;In my job I am trying to delete from a directory all files that are not *.xls (*.xlsx). To do it I'm using tFileList -&amp;gt; tFileDelete.
&lt;BR /&gt;The tFileList has 'exclude filemask' set to "*.xls*" and 'Use Glob Expressions as Filemask' box checked. This config works ok when I run the job from TOS on my machine (Windows) but when I run on unix a script generated from the job it fails with following error:
&lt;BR /&gt;'java.lang.NoClassDefFoundError: org/apache/oro/text/GlobCompiler'
&lt;BR /&gt;I tried to change it and use Perl5 Regex Expressions ('Use Glob Expressions as Filemask' box unchecked) with ".*\.xls.*" exclude filemask but it fails with another error:
&lt;BR /&gt;'Unresolved compilation problem: Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )'
&lt;BR /&gt;Any advise?
&lt;BR /&gt;Thank you in advance</description>
      <pubDate>Sat, 16 Nov 2024 12:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFileList-filemask-regex/m-p/2235761#M24704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFileList filemask regex</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileList-filemask-regex/m-p/2235762#M24705</link>
      <description>Hi
&lt;BR /&gt;Which version of TOS are you using? It is a compilation error, try ".*\\.xls.*"
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 21 Apr 2011 13:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFileList-filemask-regex/m-p/2235762#M24705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-21T13:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFileList filemask regex</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileList-filemask-regex/m-p/2235763#M24706</link>
      <description>also keep in mind that Regular expressions are a bit trickier in Java due to the double interpolation of your regular expression. 
&lt;BR /&gt;i.e. to match a single backslash with a Java regex, the expression must "double-escape" because the regex string is interpolated twice: 
&lt;BR /&gt;"\\\\" ---read to regex object --&amp;gt; "\\" -- regex string parsed --&amp;gt; "\" 
&lt;BR /&gt;The error you received is most likely due to an unescaped character class such as "\w+" instead of "\\w+"</description>
      <pubDate>Thu, 21 Apr 2011 18:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFileList-filemask-regex/m-p/2235763#M24706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-21T18:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFileList filemask regex</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileList-filemask-regex/m-p/2235764#M24707</link>
      <description>Finally resolved!
&lt;BR /&gt;The real problem here was the first error message (missing GlobCompiler class). The "*.xls*" filmask is ok.
&lt;BR /&gt;The job worked ok on Windows as there I have the TOS installed which contains all the standard Talend libraries but it failed on unix because there is no TOS at all, I just execute there the java scripts generated by Talend so the libraries are missing.
&lt;BR /&gt;My solution was:
&lt;BR /&gt;1. The missing GlobCompiler class required for regular expressions is included in jakarta-oro-2.0.8.jar library, so I've added it to the user libraries in Talend preferences (Preferences -&amp;gt; Java -&amp;gt; Build Path -&amp;gt; User Libraries). When it is added to the preferences the library is added to 'lib' folder created by Talend when the java scripts are generated.
&lt;BR /&gt;2. The GlobCompiler needs to be imported to a job using tLibraryLoad component.
&lt;BR /&gt;Now everything works ok.</description>
      <pubDate>Thu, 05 May 2011 11:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFileList-filemask-regex/m-p/2235764#M24707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-05T11:49:26Z</dc:date>
    </item>
  </channel>
</rss>

