Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] EclipseLink 2: ANT Task Error

Try,
<compilerarg
value="-Aeclipselink.persistencexml=D:/Project/website/WebContent/META-INF"
compiler="javac1.6" />

If you are not passing the "D:\Project\website\" directly, then EclipseLink
could be getting this incorrectly, could be a bug (EclipseLink could
probably switch \ with / in general).  Try printing ${web.dir} before the
call to make sure it is correct.



Chuong Pham wrote:
> 
> I'm using "/" as per my post. It makes no difference though whether it's
> "/" or "\". :-(
> 
> ${web.dir} is equivalent to my project's WebContent folder. So
> ${web.dir}/META-INF is WebContent/META-INF - which is where I store my
> persistence.xml file. I think the error is complaining about the
> -Aeclipselink.persistencexml directive - I'm not sure why though - as "-A"
> is a valid javac's argument option. It could be a bug with
> org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.process
> method.
> 
> @James: Would it help if I post the build.properties and build.xml files?
> I've been stuck on this issue only for the last several days and would
> look forward for a workaround or solution. =^D
> 
> 
> James Sutherland wrote:
>> 
>> Where is ${web.dir} defined?  You should use "/" not "\".
>> 
> 
> 


-----
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-tp31475388p31541992.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top