• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Fetching code from Serena [Version control] using ANT tasks  RSS feed

 
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
 
author
Posts: 5856
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
 
author
Posts: 3281
7
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
Posts: 3281
7
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..
 
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.
 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!