ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt" <mathews_jul...@hotmail.com>
Subject RE: CVS Import
Date Mon, 28 Jul 2003 16:47:42 GMT
I tried specifying the basedir as the path of the directory below which
I want the folders to be imported to CVS and it works. CVS import
imports all the folders below that directory.

But is that the right thing to do


Matt
-----Original Message-----
From: John Birtley [mailto:John.Birtley@apollosoft.net] 
Sent: Monday, July 28, 2003 3:58 AM
To: Ant Users List
Subject: RE: CVS Import

You could always wrap the import in an `exec' task and specify the
source directory as an argument, e.g.:

	Import.bat:

		@echo off

		cd %1
		cvs import %2 %3 %4 %5 %6 %7 %8 %9 %10


	Import.sh

		#!/bin/sh

		cd ${1}
		shift
		cvs import ${@}

And then just call this from Ant as <exec>...</exec> rather than <cvs>


> -----Original Message-----
> From: Mathews Julien [mailto:mathews_julien@hotmail.com]
> Sent: 28 July 2003 07:13
> To: user@ant.apache.org
> Subject: CVS Import
> 
> Hi
> 
> My ant script import to a CVS repository whatever folders and files
are
> located under the folder where the Ant script is located. That's how
> command
> line CVS commands work too I guess.
> 
> How can I direct the ant script to import from under some specified
> folder.
> 
> 
> 
> 
> Matt
> 
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message