Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

property on linux

Help
palace
2004-11-25
2013-04-24
  • palace
    palace
    2004-11-25

    Hi,

    Anybody knows why I'm getting this strange behaviour?

    I'm using the properyregex tag like:

    <propertyregex property="file-name" override="true"
                        input="@{file}"
                        regexp=".*\\([^\.]*)\.wsdl"
                        select="\1"
                        casesensitive="false"/>
    <echo>${file-name}</echo>

    This is run in a loop (for task). On Windows ${file-name} is substitued as expected but on Linux nothing is substituted and I get just ${file-name} which results of course in a file not found error.

    Thanks in advance

    /manuel

     
    • Curt Arnold
      Curt Arnold
      2004-11-25

      Perhaps since your regular expression contains backslashes which would match the path separator on Windows but fail on Linux since the path separator is a forward slash?

       
    • Manuel,

      Have you looked at the "basename" task?

      =Austin