Ant produces jsfl with backslashes instead of slashes

后端 未结 1 1734
伪装坚强ぢ
伪装坚强ぢ 2020-12-19 03:21

I\'m using Ant with FDT 3 and I have Ant creating a jsfl to compile fla\'s. When I use the built in \'${basedir}\' property in Ant it gives me the path with backslashes(

相关标签:
1条回答
  • 2020-12-19 04:05

    You should be able to do it using the Ant pathconvert task.

    Here's a rough example:

    <path id="basedir.path">
        <pathelement path="${basedir}" />
    </path>
    <pathconvert targetos="unix" property="basedir.unix" refid="basedir.path"/>
    <echo message="${basedir.unix}" />
    

    Then you can use ${basedir.unix} in place of ${basedir}.

    0 讨论(0)
提交回复
热议问题