[
https://issues.apache.org/jira/browse/XMLBEANS-352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931072#action_12931072
]
Esther Jesurum commented on XMLBEANS-352:
-----------------------------------------
I have hit this one a couple of times, too (and we have the same issue in our
product, incidentally).
For the record, the list of names to handle specially on Windows is:
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1,
LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9
(I hit 'PRN' today and 'CON' in the past). Since we use XmlBeans generated
schema jars in our product, we are essentially blocked on a a fix until
XmlBeans has one, too.
> Unable to generate code when a schema has an element called "Con" on Windows
> ----------------------------------------------------------------------------
>
> Key: XMLBEANS-352
> URL: https://issues.apache.org/jira/browse/XMLBEANS-352
> Project: XMLBeans
> Issue Type: Bug
> Environment: Microsoft Windows, JDK1.6.0_03, Ant
> Reporter: Tom Haggie
>
> It tries to create a file called Con.xsb, Windows does not allow filenames to
> be named con, for a complete list of reserved names follow this link:
> http://msdn2.microsoft.com/en-us/library/aa365247.aspx
> I encountered this problem when trying to generate classes for the XSD
> PMML3.1 from www.dmg.org - it's a industry standard XSD so I can't change it.
> Here's a demo XSD that reproduces the problem:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:element name="Con" />
> </xs:schema>
> Here's a demo build.xml file that tries to compile the XSD (and fails on
> Windows):
> <?xml version="1.0"?>
> <project name="BuildPmmlXml" default="buildJava">
> <taskdef name="xmlbean"
> classname="org.apache.xmlbeans.impl.tool.XMLBean" classpath="C://Program
> Files//xmlbeans-1.0.4-jdk1.3//lib//xbean.jar"/>
>
> <target name="buildBug">
> <xmlbean schema="bug.xsd" srcgendir="bug"/>
> </target>
> </project>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]