You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Miguel Griffa <mg...@technisys.net> on 2004/06/30 15:04:50 UTC

how to 'cd' for a tar

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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: how to 'cd' for a tar

Posted by Martin van den Bemt <ml...@mvdb.net>.
Don't mind the typos :). 
You can do everything ant 1.5 (.3 I believe) can do by using the ant
namespace.

Mvgr,
Martin

On Wed, 2004-06-30 at 19:58, Martin van den Bemt wrote:
> 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: dev-unsubscribe@maven.apache.org
> > >>For additional commands, e-mail: dev-help@maven.apache.org
> > >>    
> > >>
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
-- 
Mvgr,
Martin


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


Re: how to 'cd' for a tar

Posted by Martin van den Bemt <ml...@mvdb.net>.
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: dev-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: dev-help@maven.apache.org
> >>    
> >>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
-- 
Mvgr,
Martin


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


Re: how to 'cd' for a tar

Posted by Miguel Griffa <mg...@technisys.net>.
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: dev-unsubscribe@maven.apache.org
>>For additional commands, e-mail: dev-help@maven.apache.org
>>    
>>


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


Re: how to 'cd' for a tar

Posted by Martin van den Bemt <ml...@mvdb.net>.
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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
-- 
Mvgr,
Martin


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