Changeset 34262 in osm for applications/editors


Ignore:
Timestamp:
2018-06-07T22:18:45+02:00 (7 years ago)
Author:
floscher
Message:

Fix check for Transifex configuration

Normalize potential absolute path to only the plugin directory name before checking for Transifex configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/i18n/build.xml

    r34257 r34262  
    163163    <!-- If the plugin has a Transifex config file `.tx/config`, skip this target altogether -->
    164164    <target name="plugintrans">
     165        <basename file="${path}" property="dir"/>
    165166        <if>
    166             <available file="${plugin.dir}/${path}/.tx/config" type="file"/>
     167            <available file="${plugin.dir}/${dir}/.tx/config" type="file"/>
    167168            <then>
    168                 <echo message="Skip plugin ${path}, because it is translated with Transifex!"/>
     169                <echo message="Skip plugin ${dir}, because it is translated with Transifex!"/>
    169170            </then>
    170171            <else>
    171                 <basename file="${path}" property="dir"/>
     172                <echo message="Run plugintrans target for plugin ${dir}" level="info"/>
    172173                <mkdir dir="${po.build.dir}/plugin_${dir}"/>
    173174                <exec executable="perl" failonerror="true" output="${po.build.dir}/plugin_${dir}/trans_plugin.java">
Note: See TracChangeset for help on using the changeset viewer.