Hi Paul,

If you just want an Ant wrapper around maven goals you could 
use a build.xml like this in the same directory as the project.xml 
(more or less the ant version of the maven.bat)

<?xml version="1.0" encoding="UTF-8" ?> 
<project default="maven:site" name="startMaven" basedir=".">
  <property environment="env"/>
  <target name="maven:site">
    <exec executable="${env.JAVA_HOME}/bin/java.exe" dir="${basedir}"
failonerror="true">
      <arg value="-Dmaven.home=${env.MAVEN_HOME}" /> 
      <arg
value="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Doc
umentBuilderFactoryImpl" /> 
      <arg
value="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParser
FactoryImpl" /> 
      <arg value="-Dtools.jar=${env.JAVA_HOME}/lib/tools.jar" /> 
      <arg value="-Dforehead.conf.file=${env.MAVEN_HOME}/bin/forehead.conf"
/> 
      <arg
value="-Djava.endorsed.dirs=${env.JAVA_HOME}/lib/endorsed;${env.MAVEN_HOME}/
lib/endorsed" /> 
      <arg value="-Xmx160m" /> 
      <arg line="-cp ${env.MAVEN_HOME}/lib/forehead-1.0-beta-4.jar" /> 
      <arg value="com.werken.forehead.Forehead" /> 
      <arg value="site:generate" /> 
    </exec>
  </target>
</project>

> -----Original Message-----
> From: Paul Libbrecht [mailto:[EMAIL PROTECTED]
> Sent: Mittwoch, 2. Juli 2003 11:47
> To: Maven Users List
> Subject: Running maven from Ant ?
> 
> 
> Hi List,
> 
> 
> Running maven is still pretty slow for me as I have to launch the
> command-line everytime. It would be nifty to be able to run maven within
> an ant task, I could then simply input this within the jEdit Ant-runner,
> running in the same VM, which, when equipped with a rich enough
> classpath, is running real real quick!
> 
> Any hope ?
> Any Maven integration within some IDEs ?
> 
> Thanks.
> 
> Paul
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to