You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by query <se...@rediffmail.com> on 2007/04/05 08:14:33 UTC
Pathname issue in cvs export command
Hi,
I am using cvs task to export modules.
<cvs dest="${temp}" command="export" cvsRoot="${CVSROOT}" tag="${IMGS}" package="java/gui/images"/>
Here, I want to export only gif files in java/gui/images to ${temp}by shortening the pathnames. But it is exorting gif files to ${temp}/java/gui/images.
I tried using commanline option -d also. But it is giving error.
1.
<cvs dest="${temp}" command="export -d" cvsRoot="${CVSROOT}" tag="${IMGS}" package="java/gui/images"/>
2.
<cvs dest="-d ${temp}" command="export" cvsRoot="${CVSROOT}" tag="${IMGS}" package="java/gui/images"/>
3.
<cvs command="export" cvsRoot="${CVSROOT}" tag="${IMGS}" package="java/gui/images"/>
<commandline>
<argument line="-d ="-d ${temp}"/>
</commandline>
</cvs>
Is there any option that can be used in ANT cvs task so that export command will ignore the directory structure?
Thanks in advance.......
Re: Pathname issue in cvs export command
Posted by Dominique Devienne <dd...@gmail.com>.
On 5 Apr 2007 06:14:33 -0000, query <se...@rediffmail.com> wrote:
> Here, I want to export only gif files in java/gui/images to ${temp}by shortening the pathnames. But it is exorting gif files to ${temp}/java/gui/images.
I don't know such a CVS option, but I'm no CVS expert. OTOH, you can
do the export to a temp dir, and then do a copy with a flatten mapper
to the final dest dir. --DD
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org