#14 explain paths better for pphash.html#idx_realFileExists

closed
None
5
2003-04-30
2003-04-30
Ralf Hauser
No

Provide an example on "native paths" in
http://fmpp.sourceforge.net/pphash.html#idx_realFileExists

I used:
<#if
pp.realFileExists("c:\data\bin\Java\jars\eclipse\workspace\myProject\${pathFileName}")>

and got in fmpp.log:
<<!!! ERROR
> Exception:
freemarker.template.ParseException: Token manager error:
freemarker.template.TokenMgrError: Lexical error at
line 15, column 32.
Encountered: "d" (100), after : "\"c:\\"
> Java stack trace:
freemarker.template.ParseException: Token manager
error: freemarker.template.Tok
enMgrError: Lexical error at line 15, column 32.
Encountered: "d" (100), after
: "\"c:\\"
at
freemarker.template.Template.<init>(Template.java:135)
at
freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:350)
at
freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:321)>>

Discussion

  • Dániel Dékány

    • assigned_to: nobody --> ddekany
    • status: open --> closed
     
  • Dániel Dékány

    Logged In: YES
    user_id=546667

    According to the syntactical rules of FTL, you must use double
    backslashes in string literals: "C:\\work\\foo\\bar.txt". Also, according
    to the Windows API rules, you can simply use slash:
    "C:/work/foo/bar.txt".

    Users are now warned about this in the
    Manual. (Do "cvs update", "ant fmppgen").

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks