Hi,
The 'properties' attribute in the 'config' element identifies a
resource, not a file. What happens if you just change it to
'/META-INF/persistence.xml'?
Actually, I'd expect that you could just omit it if that's the only
persistence.xml in your system. If you do want to reference that
particular file, what happens if you use the 'propertiesFile'
attribute instead of 'properties'?
Also, can you post the actual error message that you were seeing so
that we can hopefully improve things for next time?
Thanks,
-Patrick
On Nov 3, 2007 7:33 PM, Nick Johnson <[EMAIL PROTECTED]> wrote:
> I'm trying to run the PCEnhancer ant task via the ant runner in Maven 2.
>
> If I add a config element to the <openjpac> task to point to the
> properties, it just appends it after target/classes, so that ends up
> becoming an invalid path.
>
> The ${basedir} is set correctly inside the build.xml, and it is not set to
> the target/classes directory. Yet for some reason, the ant task insists
> upon looking underneath target/classes for everything.
>
> Any ideas what could be wrong? Here's how I've configured <openjpac>:
>
> <openjpac>
> <classpath>
> <pathelement path="${compile_classpath}"/>
> </classpath>
> <config
> properties="${project_directory}/src/main/resources/META-INF/persistence.xml"
> />
> <fileset dir="${target_directory}">
> <include name="**/model/*.class" />
> </fileset>
> </openjpac>
>
>
> Nick
>
> --
> "Courage isn't just a matter of not being frightened, you know. It's being
> afraid and doing what you have to do anyway."
> Doctor Who - Planet of the Daleks
> This message has been brought to you by Nick Johnson 2.3b1 and the number 6.
> http://healerNick.com/ http://morons.org/ http://spatula.net/
>
--
Patrick Linskey
202 669 5907