maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Lopez <lope...@us.ibm.com>
Subject Re: maven-antrun-plugin and ant basedir question
Date Fri, 10 May 2013 11:19:58 GMT
Wayne,

The build.xml file is part of the Dojo distribution.  I would like to 
avoid modifying their files as Dojo is being updated all the time.  So 
ideally I would like to be able to somehow pass the override value from 
Maven since I own that pom.xml file.  So that is my question.  How do I do 
that?  If I was running Ant directly I would just pass the value in the 
command line.  I have not been able to figure out how to do that in Maven.

Regards,
Luis F. López




From:   Wayne Fay <waynefay@gmail.com>
To:     Maven Users List <users@maven.apache.org>, 
Date:   05/09/2013 04:24 PM
Subject:        Re: maven-antrun-plugin and ant basedir question



> I am trying to do a custom build of Dojo using Maven and the Dojo 
supplied
> build.xml file.  I have managed to get most of the pieces that I need 
into
> the pom.xml file to where the ant clean task works and the default task
> starts.  Unfortunately the default task depends on the value of basedir
> which is set to "." at the top of the build.xml file (<project 
name="dojo"
> default="cldr" basedir=".">).  Since Maven is not running from the
> directory where the build.xml file is at, all the paths are wrong.  In 
my

Can you not simply edit the basedir="." directly in the build.xml file
itself to reflect the correct directory? Or set/override that value
using a parameter passed in from Maven, or passed via a system
setting, or read from a properties file... or something?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message