This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Q for Mike Clark: fetching a specific cvs version with Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Q for Mike Clark: fetching a specific cvs version with Ant" Watch "Q for Mike Clark: fetching a specific cvs version with Ant" New topic
Author

Q for Mike Clark: fetching a specific cvs version with Ant

Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hi Mike,

Maybe this question is off-topic, but do
you know how I could automate the task
of fetching a specific version from cvs
using ant and a simple script? Do I need
to go further than the common ant tasks?

Cheers,

Gian Franco Casula


"Eppur si muove!"
Mike Clark
author
Ranch Hand

Joined: Aug 15, 2003
Posts: 83
The <cvs> Ant task is a core task, described at:

http://ant.apache.org/manual/CoreTasks/cvs.html

If you have a tag or a date, you can check out files relative to those markers.

Hope that's what you were looking for. If not, please ask again.

Mike


Mike Clark<br />Author of <a href="http://www.amazon.com/exec/obidos/ASIN/0974514039/ref=jranch-20" target="_blank" rel="nofollow">Pragmatic Project Automation</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Maybe this question is off-topic


Not at all Gian. Any questions or topics on build tools is fair game.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
And if you don't want to hardcode the version, you can read it from a properties file or query the user (using the property or input task, respectively).


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Thank you all, this is enough to get things rolling
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Q for Mike Clark: fetching a specific cvs version with Ant
 
Similar Threads
Eclipse 3.1 CVS problem
Help Needed with ANT
Getting error when check out the jars from CVS
CVS questions
ANT CVS Commit