You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Galia Angelova <ga...@yahoo.com> on 2006/08/28 15:43:01 UTC

How can I change target directory at runtime?

Hello Everybody!

I need to have the results of the compilation, packaging etc. not in the standart target directory but in onather one. I want to be able to change the target directory at runtime. Does anybody know if this is possible and how? My investigation did not give any positive results.

I'll appreciate any help!

Thank you in advance!

Galina Angelova

 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: How can I change target directory at runtime?

Posted by Galia Angelova <ga...@yahoo.com>.
Thank you! This might help if I use variables in pom.xml! :-)

Arnaud Bailly <ab...@oqube.com> wrote: Galia Angelova  writes:

> Hello Everybody!
>
> I need to have the results of the compilation, packaging etc. not in
> the standart target directory but in onather one. I want to be able to
> change the target directory at runtime. Does anybody know if this is
> possible and how? My investigation did not give any positive results.
>

Hello,
There is a build/directory tag in the POM, eg.:
 


   
   target
 



I think this is what you are looking for.


-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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



 		
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Re: How can I change target directory at runtime?

Posted by Arnaud Bailly <ab...@oqube.com>.
Galia Angelova <ga...@yahoo.com> writes:

> Hello Everybody!
>
> I need to have the results of the compilation, packaging etc. not in
> the standart target directory but in onather one. I want to be able to
> change the target directory at runtime. Does anybody know if this is
> possible and how? My investigation did not give any positive results.
>

Hello,
There is a build/directory tag in the POM, eg.:
 
<project>
 <build>  
   <directory>target</directory>
 </build>
</project>

I think this is what you are looking for.


-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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