Skip to content

unexpected failed on a generate-default-bundle task with the msgfmt command : pb with quotes #50

@GoogleCodeExporter

Description

@GoogleCodeExporter


What steps will reproduce the problem?

Test with a simple i18nbuild.xml using the tutorial (adapted) on a Vista system

1. The task in the Ant build
-------------------------
<target name="generate-default-bundle" description="Generates a default bundle" 
depends="init.gettext">
  <gettext-generate-default targetBundle="messages" outputDirectory="${sourcesFilesDir}\po" potfile="po\messages.pot"/>
</target>

2. Run the task in the Ant build 


What is the expected output? What do you see instead?

Instead of the success of the build you get this failed error on the 
generate-default-bundle task :

Buildfile: C:\SVN\WLI\AMM_GDC-EJB\i18nBuild.xml
init.gettext:
generate-default-bundle:
[gettext-generate-default] Generating default po file: msginit --no-translator 
-i po\messages.pot -o C:\Users\ftrompat\AppData\Local\Temp\default24385.po
[gettext-generate-default] msgfmt --java2 -d C:\SVN\WLI\AMM_GDC-EJB\po -r 
messages C:\Users\ftrompat\AppData\Local\Temp\default24385.po
[gettext-generate-default] msgfmt returned 1

BUILD FAILED
C:\SVN\WLI\AMM_GDC-EJB\i18nBuild.xml:20: Build failed


What version of the product are you using? On what operating system?

Reproduced on a Vista system
with 
msgfmt command (version 0.14.4.1952)
gettext-ant-tasks-0.9.7
Bea WorkSpace Studio version 1.1

Please provide any additional information below.
I tested some workarounds on a cmd windows and I suspect the quotes in the 
file's or directory's path.
See the attached file to get more.

Regards

François

Original issue reported on code.google.com by francois...@atosorigin.com on 10 Nov 2010 at 3:37

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions