Sorry I am not quite clear in the mind :) 
Just look at the ant docs for tar on how to use it..
As far as I know it shouldn't be a problem to get the same result
eg :

<ant:tar destfile="../sources.tar" basedir="." excludes="files I don't
want"/>
<ant:gzip zipfile="../sourcees.tgz src="../sources.tar"/>


Mvgr,
Martin

On Wed, 2004-06-30 at 17:01, Miguel Griffa wrote:
> but from ant/maven?
> 
> cd .. && tar cvf ...
> too, I'm confortable with bash for this...
> I'ts the proper maven way seeking am I
> :)
> 
> Martin van den Bemt wrote:
> 
> >tar cvfz ../srouces.tgz . should do the trick..
> >
> >Mvgr,
> >Martin
> >
> >On Wed, 2004-06-30 at 15:04, Miguel Griffa wrote:
> >  
> >
> >>Hi all
> >>I'd like to make a tar file of current directory, but including cur dir 
> >>in tar
> >>can I cd .. ?
> >>I'd like to do this:
> >>
> >>    cd ..
> >>    tar cvf sources.tar maven maven-plugins
> >>
> >>I'm having trouble with the cd .. and the problem of creating a tar  
> >>file from cur dir, any hint?
> >>is for MAVEN-1267 <http://jira.codehaus.org/browse/MAVEN-1267>
> >>Thanks in advance
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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]
-- 
Mvgr,
Martin


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

Reply via email to