This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 26489
    
  78

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: 5575

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: 5575

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Ant script <SNV> <list> not working.
 
Similar Threads
org/tigris/subversion/svnant/SvnTask (Unsupported major.minor version 49.0)
Maven & Subversion
SVNAnt checkout and update overriding local file changes
ant script error
Unable to download spring example code