Looks like we may have a misunderstanding here. The maven.ant.use.properties
property just controls whether the generated ant build file will look for
user-defined properties when it runs (under Ant). It just adds
<property file="build.properties"/>
<property file="${user.home}/build.properties"/>
to the top of the file. A property *exposed* by the plugin-generated script
is ${libdir}, which takes as its default value ${user.home}/.maven/repository.
So to get Ant to use a libdir different from the default, you have to do as
Arnaud suggests, set maven.ant.use.properties to true (which I think is the
default, btw) and put a build.properties file with libdir=whatever-you-want in
a location where the Ant script can find it when it executes.
If what you want is to get the plugin to generate a build script with a
different default value for libdir, I do not think that is possible now. One
improvment that might make sense would be to at least have it use
${maven.repo.local} instead of ${user.home}/.maven/repository in the template.
hth,
Phil
-----Original Message-----
From: m h [mailto:[EMAIL PROTECTED]
Sent: Tue 9/6/2005 2:32 PM
To: Maven Users List
Cc:
Subject: RE: ant plugin doesnt work?
Thanx for the quick reply. Yes, I am using 1.0.2. I
shoudl be able to specify maven.ant.use.properties int
the project.properties file, correct?
Also, the doc on the website says this is supposed to
be the default behavior. Furthermore,that commandline
doesnt produce the desired result.
We have a picky client who doesnt want deps
downloaded. Otherwise we wouldnt be modifying the
properties. ;)
mike
--- Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
> You are using maven 1.0.2 ?
>
> "maven ant -Dmaven.ant.use.properties=true" should
> create the build.xml in your project's root
> directory.
>
> Then in your build.properties (stored in your
> project's root dir or in your user's home dir) you
> should set the properties for the
> script :-(
>
> Arnaud
>
> >
> > Hi all
> >
> > Im trying to produce an ant build.xml that works.
> I put a
> > build.properties file in my project base dir that
> specifies
> >
> > libdir=somedir
> >
> > but when I do maven ant, the libdir is not set to
> my
> > specification. I have tried moving the
> > build.properties file to my home dir, and I have
> tried
> > setting the maven.ant.use.properties=true (even
> though this
> > is the default).
> >
> > When I run with the -X option, the output
> indicates that the
> > file is being used, however this is not backed up
> by what I
> > see in the resulting build.xml.
> >
> > Please advise.
> >
> > Thank you.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection
> > around http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > 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]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
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]