You can - do a maven.xml:
 
<project default="run-ant" xmlns:ant="jelly:ant">
  <goal name="run-ant">
    <ant:ant ... this is just your regular ant task />
  </goal>
</project>
 
However, if you decide to go to maven, you should move your common ant stuff
into a custom plugin and share it across your projects - that's what we did
:)
 
Cheers,
Brett

-----Original Message-----
From: Mike Dougherty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 31 July 2003 9:58 AM
To: Maven Users
Subject: Using Ant and Maven


I've got all of about 2 hours experience with Maven. So far it's looking
pretty good. It seems to be purposed toward an OSS project, but I think we
will still be able to use it for internal projects. I've been able to
generate a simple site with Javadocs, a CheckStyle report, and some other
stuff.

Anyway, we have a lot of time and effort into our pretty sophisticated ant
build files. Is there a way I can use both? Can I call out to my ant
build.xml from within the project.xml? If so, how?

I don't think I am going to be able to convince the powers that be to just
drop Ant and re-do everything with Maven. If they are going to buy off on
using Maven it's going to have to work in conjunction with Ant for some time
to come. I did notice a section in the "Ant Guide" that will be devoted to
this purpose, but the information isn't there yet.

Thanks,
Mike




-- 

Mike Dougherty

Sr. Software Engineer   | [EMAIL PROTECTED] 

XIFIN, Inc.             |  <http://www.xifin.com> http://www.xifin.com

Ph: 858.793.5700        | Fax: 858.793.5701

Fingerprint: 29DE DC92 822E B6F0 6A66  BCB8 8FE2 C562 7FB2 B342

Reply via email to