Community
Participate
Working Groups
Build Identifier: I20100313-1044 Details: ANT fails to run multiple targets that have Ext-B characters. OS:Windows 7, Window XP JDK:IBM JRE 1.6 Locale:Japanese When you create build.xml, just copy the following sample. You can reproduce this bug by using numeric entities. ------------------------------------------------------ <?xml version="1.0" encoding="UTF-8"?> <project name="test" default="test1𠮟か゚"> <target name="test1𠮟か゚"> <echo message="test1𠮟か゚"/> </target> <target name="test2𠮟か゚"> <echo message="test2𠮟か゚"/> </target> </project> ------------------------------------------------------ This does not happen on SLES11 (Linux) Reproducible: Always Steps to Reproduce: 1.Create a simple project. 2.Create a build.xml. Please use the sample written in this bug. 3.Right click on the build.xml -> [Run As...] -> [1 Ant Build] 4.You may see test1XX: [echo] test1XX BUILD SUCCESSFULL 5.Right click again on the build.xml -> [Run As...] -> [2 Ant Build...] 6.Choose all targes in the dialog -> [Run] 7.You may see BUILD FAILD Target "test1XX" does not exist in the project "test".
It works for the default target since no target is specified on the command line in this case. When multiple targets or a single non-default target is selected it fails because we generate a command line that fails.
I'm not sure there's anything we can do here. We are generating a command line with the the characters and eventually passing them to "java.lang.Runtime.exec(...)". (This looks like a dup of bug 9330). I would think that if you're OS's default locale supported this charset then this would just work. Can you run Ant from the command line and invoke the target successfully?
Marking as worksforme. Without the information of whether this works from the commandline it is working as designed - i.e. we are passing the correct chars to Runtime