ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikas Phonsa <>
Subject CVS Problems
Date Wed, 30 Jul 2003 19:13:27 GMT

I am using Ant 1.5.3 to update the Manifest-Version tag in the manifest file
to reflect the current timestamp before creating jars.

There are two separate scripts, one for creating jars and the other for
importing to CVS.

Then I use to do cvs import and when I run ant to do import it updates the
head and creates a new version in CVS.The version number in CVS equals the
Manifest-Version in the manifest file updated by the other script.

But if I run the same (cvs Import) script again (without updating the
Manifest File) after some minor changes in files it updates the head as well
as the older latest version.

I need to lock the version somehow so that only the head is updated. The
version should be updated only after someone has created new jars and the
Manifest-Version tag has been updated from its older value.

Is "Import" the right command for creating new versions in CVS ?

I could probably use commit to just update a file in the head but how do I
tell ant which files to commit.I can't have users to mention each changed
file separately. Can I have ant to somehow find out which files have changed

Please help


-----Original Message-----
From: John Birtley [] 
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.:


		@echo off

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


		cd ${1}
		cvs import ${@}

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

> -----Original Message-----
> From: Mathews Julien []
> Sent: 28 July 2003 07:13
> To:
> Subject: CVS Import
> Hi
> My ant script import to a CVS repository whatever folders and files
> 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*.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message