• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Fetching code from Serena [Version control] using ANT tasks

 
Ranch Hand
Posts: 466
1
IntelliJ IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi..

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