Found my mistake. Instead of the "Netbeans" way Gradle does not copy
files directly from resources to META-INF but to project root.
Solved so far.

2011/8/31 Ansgar B. <[email protected]>:
> Hi all,
>
> I tried to start a project with default maven setup.
>
> /src/main/java
> /src/main/resources
> /src/test/java
> /src/test/resources
>
> So far, so good. Assemble is working. And files from
> /src/main/resources are included in the generated jar, even the
> persistence.xml. But when I want to run the jUnit tests the tests fail
> with the error message
>
>
> Test classMethod(MyTestClass) FAILED:
> org.gradle.messaging.remote.internal.PlaceholderException:
> javax.persistence.PersistenceException: No Persistence provider for
> EntityManager named myPersistenceUnitName
>
>
> When I run only the tests with "gradle test --info" I see:
>
>
> Output file <PROJECT>/build/resources/test/persistence.xml has been
> removed for task ':processTestResources'.
>
>
> Any Ideas if I'm using a wrong setup or any solution proposal?
>
> I'm using milestone4 because I need to build ear's.
> In /src/test/resources/ is a special persistence.xml located which
> only includes configuration for junit setup.
>
>
> Thanks in advance
>
> Regards
>
> Ansgar
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to