Thanks Xiaojian,

wasnt really thinking was i :)

Keith.

On Thu, May 19, 2011 at 5:23 PM, Xiaojian Ao <[email protected]> wrote:
> Why you don't move your META-INF directory to src/main/resouces ? Then it
> will be package into the jar file and deploy in WEB-INF/lib。It is also in
> your classpath.
>
> On Thu, May 19, 2011 at 9:10 PM, Keith Woodlock <[email protected]>
> wrote:
>>
>> Hi all,
>>
>> I am using gradle (milestone-1) at present to create a simple java app
>> to test out some things.
>>
>> For this app I was to use JPA which means that I want WAR structure as
>> follows:
>>
>> WAR
>>   - META-INF
>>   - WEB-INF
>>       - classes
>>           - META-INF
>>               - persistence.xml
>>               - spring
>>                  - appContext.xml
>>                  - infrastructure.xml
>>
>> The problem is I am not sure whats the best way to get the META-INF
>> file structure within the WEB-INF/classes folder? some sort of file
>> copy and if so, how to reference the generated 'classes' folder under
>> war?
>>
>> the metaInf property of war task is for populate META-INF folder
>> directly under WAR.
>>
>> I am just the 'war' plugin and have the basic out of the box typical
>> struture for java project
>>
>> src/main/java
>> src/test/java
>> src/main/webapp
>>   - WEB-INF
>>      - etc
>>
>> When using maven, i simply just add the META-INF structure that falls
>> under classes above in the src/main/resources folder and it correctly
>> builds WAR as needed.
>>
>> regards,
>> Keith.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>

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

    http://xircles.codehaus.org/manage_email


Reply via email to