On Thu, 2003-06-19 at 11:03, David Walend wrote:
> Vipul,
> 
> Thanks, but I figured it out. It's not quite as good as ant's -find option, but
> 
> maven jar --find project.xml
> 
> puts things in the right place. (Odd that maven is still able to search up 
> the source tree to find some project.xml file on it's own, but doesn't 
> reset the base directory. Is that a bug?)

That's why you need to use ${basedir} in your file references. As far as
I know there is no consistent way in Java to set the current working
directory.

> Thanks again,
> 
> Dave
> 
> 
> At 08:56 AM 6/19/2003 +0100, you wrote:
> 
> >Dave,
> >
> >You need to execute all goals in the directory that your project.xml lives !
> >
> >Regards,
> >
> >Vipul
> >----- Original Message -----
> >From: "David Walend" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Wednesday, June 18, 2003 8:58 PM
> >Subject: Lame newbie question - how to set target directory for the build?
> >
> >
> > > When I run "maven jar" from down inside my source code directory, the
> > > target directory (containing all the build products) winds up down inside
> > > my source code directory, instead of up next to my src directory.
> > > http://maven.apache.org/reference/dirlayout.html implied that target would
> > > be at the top, next to src.
> > >
> > > How can I set the target directory from a property to be ${basedir}/target
> > > insead of /current dir/target?
> > >
> > > Thanks,
> > >
> > > Dave
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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

Reply via email to