Java Mailing List Archive

http://www.java2.5341.com/

Home » Maven Users List »

Assembly Tar: How to exclude directories

gotama

2008-10-03

Replies: Find Java Web Hosting

Author LoginPost Reply


I'm curious if the Assembly plugin is capable of creating a tar file similar
to the following command:

find * ! -type d | tar zcvfT $TARFILE -

if you exec 'tar ztvf myAssembly.tar.gz' you will see that directories are
listed in the tar file. if you create a tar w/ the above command, you will
notice that when you list the tar w/ 'tar ztvf myAssembly.tar.gz' you will
just see files and the full path to that file.

please note, i am not trying to exclude entire directories or to flatten the
tar, but to not include the directories in the tar. please try out these
commands w/ a sample if its confusing and you will see what i mean.

thanks.

--
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.