Bug 307358 - DBCS3.6: ANT fails to run multiple targets that have Ext-B characters.
Summary: DBCS3.6: ANT fails to run multiple targets that have Ext-B characters.
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-03-29 04:40 EDT by Masaihko Maedera CLA
Modified: 2012-01-04 16:42 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaihko Maedera CLA 2010-03-29 04:40:03 EDT
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&#x20b9f;&#x304b;&#x309a;">
  <target name="test1&#x20b9f;&#x304b;&#x309a;">
    <echo message="test1&#x20b9f;&#x304b;&#x309a;"/>
  </target>
  <target name="test2&#x20b9f;&#x304b;&#x309a;">
    <echo message="test2&#x20b9f;&#x304b;&#x309a;"/>
  </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".
Comment 1 Darin Wright CLA 2010-04-09 15:40:39 EDT
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.
Comment 2 Darin Wright CLA 2010-04-09 15:53:28 EDT
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?
Comment 3 Michael Rennie CLA 2012-01-04 16:42:37 EST
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