openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dyer" <danielwd...@dsl.pipex.com>
Subject Re: openjpac Ant task
Date Fri, 14 Dec 2007 14:32:29 GMT
On Fri, 14 Dec 2007 10:05:36 -0000, Michael Dick <mikedd@apache.org> wrote:

> You can work around the problem by specifying a different configuration  
> file
> when you run the enhancer. Something like this should work :
>
>     <taskdef name="enhance"  
> classname="org.apache.openjpa.ant.PCEnhancerTask
> ">
>         <classpath>
>             <path refid="jpa.provider.cp"/>
>         </classpath>
>     </taskdef>
>
>     <target name="enhance">
>         <enhance>
>             <!-- <config
> propertiesFile="${src.location}/META-INF/persistence.xml"/>
> -->
>             <config propertiesFile="openjpa-dev.xml"/>
>             <classpath>
>                 <path refid="entity.cp"/>
>                 <path refid="jpa.used.cp"/>
>             </classpath>
>             <fileset dir="${classes.location}">
>                 <include name="**/*.class"/>
>             </fileset>
>         </enhance>
>     </target>
>
> contents of openjpa-dev.xml :
> <?xml version="1.0"?>
> <persistence xmlns="http://java.sun.com/xml/ns/persistence"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
>     version="1.0">
>     <persistence-unit name="none"/>
> </persistence>
>
> I believe that will work for you., even though it is a bit kludgy. Would  
> you
> mind opening a JIRA issue at
> http://issues.apache.org/jira/browse/OPENJPAto report the problem?

Hi Mike, thanks for your help, that worked fine.

I have added an issue to Jira  
(https://issues.apache.org/jira/browse/OPENJPA-467).

Dan.

-- 
Daniel Dyer
http://www.uncommons.org

Mime
View raw message