On 28/02/2010, Jan Matèrne <j...@materne.de> wrote: > I had a quick look at the buildfile [1]. > The calling target seems to be > <target name="install-engines" depends="merge-engines"> > <exec executable="mvn${maven.suffix}" dir="${basedir}" failonerror="true"> > <arg line="install:install-file -DgroupId=org.apache.bsf > -DartifactId=bsf-engines -Dversion=${bsf.version} -Dpackaging=jar > -DgeneratePom=true > -Dfile=${basedir}/target/bsf-engines-${bsf.version}.jar"/> > </exec> > </target> > > Maybe you could change that to allow specifying the absolute path: > > <target name="install-engines" depends="merge-engines"> > <property name="mvn.dir" value="" description="Default to empty string so > Ant could search via PATH"/> > <exec executable="${mvn.dir}mvn${maven.suffix}" dir="${basedir}" > failonerror="true"> > <arg line="install:install-file -DgroupId=org.apache.bsf > -DartifactId=bsf-engines -Dversion=${bsf.version} -Dpackaging=jar > -DgeneratePom=true > -Dfile=${basedir}/target/bsf-engines-${bsf.version}.jar"/> > </exec> > </target> > > and then add a mvn.dir=... option in Hudson. >
Thanks! That's neat; I should have thought of that. > Jan > > > [1] > http://svn.apache.org/repos/asf/jakarta/bsf/branches/bsf3.x/bsf-engines/buil > d.xml > > >