Thanks. I found that in the Torque's maven.xml, it's done in preGoal(dist:build-bin). I think it should be the same as you suggested.
Howard Lin > -----Original Message----- > From: St�phane Mor [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 10, 2002 10:10 AM > To: Turbine Maven Users List > Subject: Re: how to move jar file into another dir > > > Howard Lin wrote: > > >I would like to move the final jar file into another > directory. Should I > >do it in preGoal or postGoal? By default, Maven put it in > the top level > >distribution dir. I would like to move it to a sub-dir, like lib dir. > >What is the property to refer to the final jar file? > > > I would make a postGoal in your maven.xml file, like this: > > <postGoal name="java:jar"> > <mkdir dir="${maven.build.dir}/lib"/> > <move file="${maven.build.dir}/${maven.final.name}.jar" > todir="${maven.build.dir}/lib"/> > </postGoal> > > This is untested, but should work ... > > Cheers, > St�phane > > > > >Thanks in advance, > > > >Howard Lin > > > > > > > > ___________________________________________________________ > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! > > Yahoo! Mail : http://fr.mail.yahoo.com > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
