This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Fetching code from Serena [Version control] using ANT tasks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Fetching code from Serena [Version control] using ANT tasks" Watch "Fetching code from Serena [Version control] using ANT tasks" New topic
Author

Fetching code from Serena [Version control] using ANT tasks

Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 459
    
    1
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

Joined: May 14, 2008
Posts: 5772
    
    7

Use the exec task to call the command line utilities that will do the work for you.


JBoss In Action
Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 459
    
    1
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hmm, it looks like you're using the PVCS task there, is Serena == PVCS?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 459
    
    1
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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

Joined: Dec 23, 2010
Posts: 24
@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

Joined: Jul 26, 2011
Posts: 3

Hi..

I also need the same script.
Can you please share it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fetching code from Serena [Version control] using ANT tasks
 
Similar Threads
Q for Mike Clark: fetching a specific cvs version with Ant
Help for prepare scripts...
Ant task for fetching code from Serena [Source Control]
Project import from (Serena) PVCS to RAD 7.0
Calling ANT task from Java program