[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-user
Subject:    XmlBeans 2.2.0 with Ant-Build-Task: How to take advantage of JDK
From:       Siegfried Baiz <baiz () sulzer ! de>
Date:       2006-09-22 10:59:59
Message-ID: 4513C251.3010903 () sulzer ! de
[Download RAW message or body]

Hi All,

I' m using XmlBeans 2.2.0 with Ant-Build-Task.
Is there an example for an Ant-Build-File demonstrating,
how to take advantage of JDK 1.5 Generics
and/or Enumerations in XMLBeans generated classes?

I' ve tried several Options in my build.xml
like
...
        <xmlbean schema="schemas"
            destfile="build/lib/schemas.jar"
            srcgendir="src" 
            *javasource="1.5"*
            classpathref="xmlbeans.path"
            debug="on"           
            />
...

       <javac srcdir="src"
            destdir="build/classes"
            classpathref="Any.path"
            debug="on"
*            source="1.5"
            target="1.5"
*            />
...
but in the generated java-files I cannot see any difference to Java 1.4.

- Siggi



[Attachment #3 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi All,<br>
<br>
I' m using XmlBeans 2.2.0 with Ant-Build-Task.<br>
Is there an example for an Ant-Build-File demonstrating,<br>
how to take advantage of JDK 1.5 Generics <br>
and/or Enumerations in XMLBeans generated classes?<br>
<br>
I' ve tried several Options in my build.xml <br>
like <br>
...<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xmlbean schema="schemas"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
destfile="build/lib/schemas.jar"<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
srcgendir="src"&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; <b>javasource="1.5"</b><br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
classpathref="xmlbeans.path"<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
debug="on"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br> \
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
                /&gt;<br>
...<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;javac srcdir="src"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
destdir="build/classes"<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
classpathref="Any.path"<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; debug="on"<br> \
<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
source="1.5"<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
target="1.5"<br> </b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
                /&gt;<br>
...<br>
but in the generated java-files I cannot see any difference to Java 1.4.<br>
<br>
- Siggi<br>
<div class="moz-signature">
<meta http-equiv="Content-Type" content="text/html; ">
<title>Kontakt: Siegfried Baiz, Sulzer GmbH</title>
<span style="font-size: smaller;"></span></div>
<br>
<br>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic