Including localization files in WOA

From: Timo Hoepfner (th-de..nlinehome.de)
Date: Tue Jul 25 2006 - 05:45:23 EDT

  • Next message: Ken Anderson: "Re: Problem with 'Include as resource'"

    Hi,

    How can I convince the ANT build to include localization files in the
    correct subfolders in the generated

    (xxx.woa)/Contents/Resources

    folder?

    Curently I have English.lproj and German.lproj below my Resources
    folder in the Eclipse project. When I build a WOA, the contents of
    those folders get flat into the Resources folder of the WOA.

    As a workaround I have included the following in the build.xml, but I
    think it's a bad hack...

                    <!-- hack to get localization files copied during build. -->
                    <copy todir="${dest.dir}/${project.name}.woa/Contents/Resources/
    German.lproj">
                            <fileset dir="." casesensitive="yes">
                                    <include name="**/German.lproj/*.strings"/>
                            </fileset>
                            <mapper type="flatten"/>
                    </copy>

                    <copy todir="${dest.dir}/${project.name}.woa/Contents/Resources/
    English.lproj">
                            <fileset dir="." casesensitive="yes">
                                    <include name="**/English.lproj/*.strings"/>
                            </fileset>
                            <mapper type="flatten"/>
                    </copy>

    Thanks for your help,

    Timo



    This archive was generated by hypermail 2.0.0 : Tue Jul 25 2006 - 05:45:25 EDT