[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] EclipseLink 2: ANT Task Error
|
Where is ${web.dir} defined? You should use "/" not "\".
Chuong Pham wrote:
>
> I got this ANT task:
>
> <javac verbose="on"
> srcdir="${src.dir}"
> destdir="${build.dir}/${context.path}/classes"
> debug="${compile.debug}"
> debuglevel="${javac.debuglevel}"
> optimize="${compile.optimize}"
> deprecation="${javac.deprecation}"
> failonerror="true">
> <compilerarg value="-Aeclipselink.persistencexml=${web.dir}/META-INF"
> compiler="javac1.6" />
> <compilerarg line=" -processor
> org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor" />
> <compilerarg line=" -proc:only" compiler="javac1.6" />
> <classpath refid="compile.classpath"/>
> </javac>
>
>
>
> I got this ANT task:
>
> <javac verbose="on"
> srcdir="${src.dir}"
> destdir="${build.dir}/${context.path}/classes"
> debug="${compile.debug}"
> debuglevel="${javac.debuglevel}"
> optimize="${compile.optimize}"
> deprecation="${javac.deprecation}"
> failonerror="true">
> <compilerarg value="-Aeclipselink.persistencexml=${web.dir}/META-INF"
> compiler="javac1.6" />
> <compilerarg line=" -processor
> org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor" />
> <compilerarg line=" -proc:only" compiler="javac1.6" />
> <classpath refid="compile.classpath"/>
> </javac>
>
> When I ran the above task, I got this error:
>
> [javac] Caused by: java.net.URISyntaxException: Illegal character in
> opaque part at index 2: D:\Project\website/WebContent/META-INF
> [javac] at java.net.URI$Parser.fail(URI.java:2809)
> [javac] at java.net.URI$Parser.checkChars(URI.java:2982)
> [javac] at java.net.URI$Parser.parse(URI.java:3019)
> [javac] at java.net.URI.<init>(URI.java:578)
> [javac] at java.net.URI.create(URI.java:840)
> [javac] ... 38 more
>
> I've traced the error to this line <compilerarg
> value="-Aeclipselink.persistencexml=${web.dir}/META-INF"
> compiler="javac1.6" />.
>
> I'm using EclipseLink version 2 that comes bundled with Glassfish 3.1. I
> have also tried compile the above task with the standalone EclipseLink
> libraries version 2.2.0.v20110202-r8913 and got the same error.
>
> I'm using JDK 1.6.0.24.
>
> Is this an error with the Java compiler or EclipseLink? Is there a
> workaround I can use?
>
-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
Blog: http://java-persistence-performance.blogspot.com/ Java Persistence
Performance
--
View this message in context: http://old.nabble.com/EclipseLink-2%3A-ANT-Task-Error-tp31475388p31497839.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.