Hi Jacob,

Thank you for your direction. After spending some time to configure my build script to use .xsconfig, i solved the problem of package creation.

It solves the package problem, but the new point is that:

void setBIDTechnologyList(org.gsm.infocenter.BIDTechnologyListDocument.BIDTechnologyList bıdTechnologyList);
private static final javax.xml.namespace.QName BIDTECHNOLOGYLİST$0 =

as you can see, by calling toLowerCase, the letter 'I' becomes 'ı' and by calling toUpperCase, the letter 'i' becomes 'İ'

A think the locale being used by the code generation should be parameterized during ant task usage.

When my locale is TR_tr, i should make the task to use US_en.

Regards,

Serkan Tas

--------------------------------------------------
From: "Jacob Danner" <jacob.dan...@gmail.com>
Sent: Monday, January 18, 2010 6:40 PM
To: <user@xmlbeans.apache.org>
Subject: Re: Regional settings effects to code generation...

Have you tried working around this using and xsdconfig file to remap
the generated package name? That might be able to get around the
platform case sensitivity issue.
-jacobd

2010/1/18 Serkan Taş <serkan_...@hotmail.com>:
Hi,

I am using xmlbeabs 2.5. I am getting the error below while setting my
region to Turkey and Turkish.

This is my build file :


<project

name="xmlbeans" default="xmlbeans" basedir=".">

<property name="appname" value="zmlbeans" />

<taskdef name="xmlbean" classname="org.apache.xmlbeans.impl.tool.XMLBean"

classpath="D:/dev/likyateknoloji/likyaWorkspace/SharedLibs/xmlbeans-2.5.0/xbean.jar"
/>

<target name="xmlbeans">

<!-- xmlbean schema="schemas" destfile="Schemas.jar" / -->

<xmlbean schema="raex/raex.xsd" srcgendir="tests" javasource="1.5"
download="true" />

<!--

xmlbean classgendir="${build.dir}" classpath="${class.path}"

failonerror="true"> <fileset basedir="tests" excludes="**/*.xsd" />

<fileset basedir="serkan" includes="**/*.*" /> </xmlbean

-->

</target>

</project>



After executing the script, code is generated but compilation fails due to
invalid package names.

This is the message :



Buildfile:

XmlBeansTest\build.xml

xmlbeans

:

[

xmlbean] Time to build schema type system: 0.452 seconds

[

xmlbean] Time to generate code: 0.078 seconds

[xmlbean] Compiling 37 source files to
C:\Users\vista\AppData\Local\Temp\xbean8250516161539354447.d\classes

[xmlbean] javac: file not found:
....XmlBeansTest\tests\org\gsm\ınfocentre\tadıgRAEXAA14\BIDTechnologyListDocument.java

[xmlbean] Usage: javac <options> <source files>

[xmlbean] use -help for a list of possible options

BUILD FAILED

....XmlBeansTest\build.xml:13: Compile failed; see the compiler error output
for details.

Total time: 1 second



If change my region t states, everything is fine.

The peoblem is caused by upper to lower conversion of some charactrers
reside int turksih like 'İ' 'i', 'I' 'ı'.



any help kindly accepted...

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: user-h...@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: user-h...@xmlbeans.apache.org

Reply via email to