Re: exteca-ontology

Peter Donald <[email protected]>
Newsgroups gmane.comp.java.spice.devel
Message-ID <[email protected]>
On Sun, 26 Jan 2003 23:52, Mauro Talevi wrote:
> how do I tell maven to copy etc/schema.xml to another path in
> target/classes for it to be jarred?

I think you have to have the resources in the resource directory match the 
target layout. ie It would have to actually be in META-INF/.. to get in that 
directory when copied across.

> In general I'm finding that reproducing the full flexibily of Ant tasks
> can be sometimes fiddly.
> Do you if there a way to access directly ant task via maven?

Yep. For core tasks you just use them in place of jelly tags. Have a look at 
the maven.xml for metaclass. IIRC correctly it copies some resources around 
just before the test:compile or test:run target or something ;)

Essentially you just set up a preGoal or postGoal that does the copying and 
you should be able to use most ant tasks inside it without a problem.

-- 
Cheers,

Peter Donald
------------------------------------------------------------
 militant agnostic: i don't know, and you don't know either.
------------------------------------------------------------ 



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.