Originally posted by rahulJ james:
I have created a war file with my full application excluding few directories and I wanted to move this to a tar along with 2 more directories..
<war destfile="../${name.war}" webxml="WEB-INF/web.xml">
<fileset dir="${basedir}">
<exclude name="${src}/**" />
<exclude name=".**" />
<exclude name="*.**" />
</fileset>
</war>
By this I am able to war. For tar, I just wanted to know how to include this war and other directories while tarring..
Hello Rahul,
Let's assume the directory structure of "war.basedir" is as follows:-
war.basedir--
|__${name.war} ---- (The war file which got created)
|
|__dir1
|
|__dir2
|
|__docs
and the directory "root.basedir" is the parent directory of "war.basedir"
Now, assume you want to tar all the contents of "war.basedir" at root.basedir but ignoring docs folder which is sub directory of "war.basedir"
The code for the same would be like this:-
For other options of
tar task [ November 19, 2008: Message edited by: Manish Doomra ]