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

Fetching code from Serena [Version control] using ANT tasks

 
Vinod Tiwari
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to write some ANT task to fetch code from Serena (Version Control), I had written similar tasks in past for fetching code from Microsoft VSS.

Can someone provide some pointers for this?

Thanks
Vinod
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the exec task to call the command line utilities that will do the work for you.
 
Vinod Tiwari
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:Use the exec task to call the command line utilities that will do the work for you.


My build.xml file is like:


and build.properties is:


when I run this I am getting the following error



I am able to connect my project to it using eclipse by giving following attributes:

User Name: vktiwari
Password: password
Server: servername
DB Name: dbname
DB Connection: DBConnecntion

We have just moved code from SVN to Serena and hence do not have much knowledge on it.

Please help, am unable to resolve it

Thanks
Vinod
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, it looks like you're using the PVCS task there, is Serena == PVCS?
 
Vinod Tiwari
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martijn Verburg wrote:Hmm, it looks like you're using the PVCS task there, is Serena == PVCS?


PVCS is product of Serena, check the link for details:
http://www.serena.com/products/pvcs/
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, you see how the ant failure shows the actual command line that it's trying to execute? Try running that on just the straight command line, what errors does it give? Check the command line help to make sure what you're passing is valid. Once you've got it gonig correctly on the command line you can fill in the missing bits for the Ant pvcs task.

Also, double check the docs on the ant pvcs task? e.g. Make sure you've filled in the mandatory fields as required..
 
Nikhil Nagrani
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Vinod

I too need to do a similar task.

Can you please share the ant file for fetching the code from PVCS.

Thanks.
 
Trupti Jain
Greenhorn
Posts: 3
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..

I also need the same script.
Can you please share it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic