Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant - Mercurial Check-In/Out

 
Ramneek Singal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We have moved from SVN to Mercurial. We used ant scripts to checkout and build the code out of SVN earlier. Now the question is how and what changes would I need to use the same scripts for checkout and build the code from mercurial?

I came across ant4hg but the download page has .tar.gz file for download so i guess it's not for windows.

Please advice?

Ramneek
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need any scripts. Any command you can execute on the command line can be executed from Ant. Have you used Ant before?
 
Ramneek Singal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Roger!

I got your point, I can use the <exec> tag to run any command I normally run on windows command line for hg. The other part of the problem is that I connect to a remote code repository, so I will have to authenticate first to run the hg commands; Below is an ant script for svn code, we have the dependency Jar entries and the classname - org.tmatesoft.svn.cli.SVN. What would be the corresponding Mercurial Jars and classname

 
Ramneek Singal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roger!! I have got the extention mercurial_keyring working.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic