aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant script <SNV> <list> not working. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant script <SNV> <list> not working." Watch "Ant script <SNV> <list> not working." New topic
Author

Ant script <SNV> <list> not working.

Rahul Jampani
Greenhorn

Joined: Jan 11, 2011
Posts: 13
Hi

I am trying to list all the files that will checkout from SVN. This is following code that I am using:



can't figure out what I am doing wrong here?

Thanks
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31057
    
232

What do you mean by "not working." Do you get an error message when it runs?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Rahul Jampani
Greenhorn

Joined: Jan 11, 2011
Posts: 13
I am not getting any error, but cant see the list of files checkout either.

Jeanne Boyarsky wrote:What do you mean by "not working." Do you get an error message when it runs?


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Perhaps the <svn> task is getting confused with having both the <checkout> and <list> subtags defined. You shoudl try passing only the <list> subtag with the necessary information (such as the "url" property and "recurse"). Example:



JBoss In Action
Rahul Jampani
Greenhorn

Joined: Jan 11, 2011
Posts: 13
Thanks for the reply

There is no checkout task in the code that you gave me. Assuming that you meant checkout and not list, this does not worked either.

Thanks again
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

You wanted a list of possible files that would be checked out, right? Then you want to use the list command, not the checkout command. For example, this command:



will print out a list of the files that would be checked out if you did a "svn checkout <url-to-project>" instead. You just need to convert that command to the property <list> entry in the <svn> task.

Also, there is no need to quote my reply, that just tends to make posts harder to read. I removed the quote for you.
 
jQuery in Action, 2nd edition
 
subject: Ant script <SNV> <list> not working.