[
https://issues.apache.org/jira/browse/CAMEL-12386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-12386.
---------------------------------
Resolution: Not A Bug
Assignee: Claus Ibsen
Fix Version/s: 2.22.0
You need to use the .single no ext, see the file language docs
http://camel.apache.org/file-language.html
> file:onlyname.noext gives wrong results
> ---------------------------------------
>
> Key: CAMEL-12386
> URL: https://issues.apache.org/jira/browse/CAMEL-12386
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.20.2
> Reporter: Ronny Aerts
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.22.0
>
>
> I have a filename as
> \\xxx\Integration\Tul\TULDPWorldReply\InProcess\20032018-1610u.41s.888.xml
> and I need only the filename. I do this by using ${file:onlyname.noext} in
> order to get 20032018-1610u.41s.888 but I get 20032018-1610u instead.
> It seems that the code is looking for the FIRST dot and skips everything
> after that while most code search for LAST dot and skips everything after
> that.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)