cucumber/cucumber — Issue #226: i18n code generation bug - filenames with special characters incorrect / linux
Author: BercziSandor
Created: 2012-02-16 14:54:38+00:00
State: open

The special characters are in the filenames of the generated files wrong under java/target/generated-sources/i18n/java/cucumber/annotation.

Checking the files:
ls ./ro/C\?*.java (I list files C?*.java - with quotation mark)
./ro/C?nd.java

Target: cucumber-jvm-1.0.0.RC16-SNAPSHOT.pom
System: Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686)

Test for special character in filenames:
[build:~/test] $touch aa.txt
[build:~/test] $touch aá.txt
[build:~/test] $ls -la
total 8
drwxrwxr-x 2 sberczi sberczi 4096 2012-02-16 15:01 .
drwxr-xr-x 10 sberczi sberczi 4096 2012-02-16 15:00 ..
-rw-rw-r-- 1 sberczi sberczi 0 2012-02-16 15:00 aa.txt
-rw-rw-r-- 1 sberczi sberczi 0 2012-02-16 15:01 a?.txt
[build:~/test] $ls aá*
a?.txt
[build:~/test] $

14:49:57 [INFO] Building Cucumber-JVM: Java 14:49:57 [INFO] task-segment: [install] 14:49:57 [INFO] ------------------------------------------------------------------------ 14:49:58 [INFO] [enforcer:enforce {execution: enforce-maven}] 14:49:58 [INFO] [antrun:run {execution: generate-i18n-sources}] 14:49:58 [INFO] Executing tasks 14:49:58 14:49:58 main:
14:50:06 [INFO] Executed tasks 14:50:06 [INFO] [build-helper:add-source {execution: add-source}] 14:50:06 [INFO] Source directory: /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java added. 14:50:06 [INFO] [resources:resources {execution: default-resources}] 14:50:06 [INFO] Using 'UTF-8' encoding to copy filtered resources. 14:50:06 [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/src/main/resources 14:50:06 [INFO] [compiler:compile {execution: default-compile}]
14:50:08 [INFO] Compiling 277 source files to /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/classes
14:50:10 [INFO] ------------------------------------------------------------- 14:50:10 [ERROR] COMPILATION ERROR : 14:50:10 [INFO] ------------------------------------------------------------- 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/sr_cyrl/??????.java:[13,8] class ?????? is public, should be declared in a file named ??????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/he/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uk/?.java:[13,8] class ? is public, should be declared in a file named ?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ru/?????.java:[13,8] class ????? is public, should be declared in a file named ?????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/pl/Je?li.java:[13,8] class Je?li is public, should be declared in a file named Je?li.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ro/Da?ifiind.java:[13,8] class Da?ifiind is public, should be declared in a file named Da?ifiind.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/fr/?tantdonn?.java:[13,8] class ?tantdonn? is public, should be declared in a file named ?tantdonn?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/fr/?tantdonn?s.java:[13,8] class ?tantdonn?s is public, should be declared in a file named ?tantdonn?s.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/cs/Kdy?.java:[13,8] class Kdy? is public, should be declared in a file named Kdy?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/pl/Zak?adaj?c.java:[13,8] class Zak?adaj?c is public, should be declared in a file named Zak?adaj?c.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/fr/Etantdonn?es.java:[13,8] class Etantdonn?es is public, should be declared in a file named Etantdonn?es.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ru/???????.java:[13,8] class ??????? is public, should be declared in a file named ???????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/hu/?s.java:[13,8] class ?s is public, should be declared in a file named ?s.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uk/????????????.java:[13,8] class ???????????? is public, should be declared in a file named ????????????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ru/?.java:[13,8] class ? is public, should be declared in a file named ?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/sv/N?r.java:[13,8] class N?r is public, should be declared in a file named N?r.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uz/????.java:[13,8] class ???? is public, should be declared in a file named ????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uk/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/sv/S?.java:[13,8] class S? is public, should be declared in a file named S?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/vi/Bi?t.java:[13,8] class Bi?t is public, should be declared in a file named Bi?t.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/fr/Etantdonn?.java:[13,8] class Etantdonn? is public, should be declared in a file named Etantdonn?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/he/??????.java:[13,8] class ?????? is public, should be declared in a file named ??????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/no/N?r.java:[13,8] class N?r is public, should be declared in a file named N?r.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ar/?????.java:[13,8] class ????? is public, should be declared in a file named ?????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ru/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ko/???.java:[13,8] class ??? is public, should be declared in a file named ???.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/is/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/bg/?.java:[13,8] class ? is public, should be declared in a file named ?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ko/?.java:[13,8] class ? is public, should be declared in a file named ?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uk/???.java:[13,8] class ??? is public, should be declared in a file named ???.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/bg/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/lu/m?.java:[13,8] class m? is public, should be declared in a file named m?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uk/????.java:[13,8] class ???? is public, should be declared in a file named ????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ja/???.java:[13,8] class ??? is public, should be declared in a file named ???.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/eo/Donita?o.java:[13,8] class Donita?o is public, should be declared in a file named Donita?o.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uk/??????.java:[13,8] class ?????? is public, should be declared in a file named ??????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/sr_cyrl/????.java:[13,8] class ???? is public, should be declared in a file named ????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/sk/Ke?.java:[13,8] class Ke? is public, should be declared in a file named Ke?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ca/At?s.java:[13,8] class At?s is public, should be declared in a file named At?s.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uz/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/fr/Etantdonn?e.java:[13,8] class Etantdonn?e is public, should be declared in a file named Etantdonn?e.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ar/????.java:[13,8] class ???? is public, should be declared in a file named ????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/sk/Pokia?.java:[13,8] class Pokia? is public, should be declared in a file named Pokia?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/tr/E?erki.java:[13,8] class E?erki is public, should be declared in a file named E?erki.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/vi/V?.java:[13,8] class V? is public, should be declared in a file named V?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uk/??????????.java:[13,8] class ?????????? is public, should be declared in a file named ??????????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/he/????.java:[13,8] class ???? is public, should be declared in a file named ????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/pl/Je?eli.java:[13,8] class Je?eli is public, should be declared in a file named Je?eli.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ru/????.java:[13,8] class ???? is public, should be declared in a file named ????.java
14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/bg/??????.java:[13,8] class ?????? is public, should be declared in a file named ??????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ca/Per?.java:[13,8] class Per? is public, should be declared in a file named Per?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ro/?i.java:[13,8] class ?i is public, should be declared in a file named ?i.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/fr/Etantdonn?s.java:[13,8] class Etantdonn?s is public, should be declared in a file named Etantdonn?s.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/fr/?tantdonn?es.java:[13,8] class ?tantdonn?es is public, should be declared in a file named ?tantdonn?es.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/zh_cn/?.java:[13,8] class ? is public, should be declared in a file named ?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/he/???.java:[13,8] class ??? is public, should be declared in a file named ???.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/fr/?tantdonn?e.java:[13,8] class ?tantdonn?e is public, should be declared in a file named ?tantdonn?e.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/zh_cn/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ar/???.java:[13,8] class ??? is public, should be declared in a file named ???.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ko/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/sr_cyrl/???.java:[13,8] class ??? is public, should be declared in a file named ???.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/zh_tw/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ro/C?nd.java:[13,8] class C?nd is public, should be declared in a file named C?nd.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/cs/Atak?.java:[13,8] class Atak? is public, should be declared in a file named Atak?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/sr_cyrl/?.java:[13,8] class ? is public, should be declared in a file named ?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/is/?egar.java:[13,8] class ?egar is public, should be declared in a file named ?egar.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/vi/Th?.java:[13,8] class Th? is public, should be declared in a file named Th?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/no/S?.java:[13,8] class S? is public, should be declared in a file named S?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/pl/Maj?c.java:[13,8] class Maj?c is public, should be declared in a file named Maj?c.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ru/????????.java:[13,8] class ???????? is public, should be declared in a file named ????????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ar/?.java:[13,8] class ? is public, should be declared in a file named ?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/da/S?.java:[13,8] class S? is public, should be declared in a file named S?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uz/?????.java:[13,8] class ????? is public, should be declared in a file named ?????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/da/N?r.java:[13,8] class N?r is public, should be declared in a file named N?r.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/uk/?????.java:[13,8] class ????? is public, should be declared in a file named ?????.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/vi/Nh?ng.java:[13,8] class Nh?ng is public, should be declared in a file named Nh?ng.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/pt/Ent?o.java:[13,8] class Ent?o is public, should be declared in a file named Ent?o.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/zh_tw/?.java:[13,8] class ? is public, should be declared in a file named ?.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ar/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [ERROR] /var/lib/jenkins/jobs/run_gherkin/workspace/lib/Cucumber-JVM/java/target/generated-sources/i18n/java/cucumber/annotation/ja/??.java:[13,8] class ?? is public, should be declared in a file named ??.java 14:50:10 [INFO] 80 errors 14:50:10 [INFO] ------------------------------------------------------------- 14:50:10 [INFO] ------------------------------------------------------------------------ 14:50:10 [ERROR] BUILD FAILURE 14:50:10 [INFO] ------------------------------------------------------------------------ 14:50:10 [INFO] Compilation failure