Mnementh
Mnementh

Reputation: 51311

How get a list of files under a subversion-url in ant?

I want with ant access a subversion-repository and get a list of files available under a specific svn-url like https://svn.myhost.de/repository/path/into/repo. I want to list all items, subdirectories or files, in some form I can work with later in the ant-file. A comma-separated list is fine, it can be input for the foreach-task of ant-contrib.

Upvotes: 1

Views: 2699

Answers (1)

Ken Gentle
Ken Gentle

Reputation: 13357

The Subclipse Project of Subversion provides svnant

svnant includes svnFileSet, an ant type that works just like a fileset.

You need to download the appropriate version for the Subversion release you're using, and follow the instructions in the documentation for including the svnant tasks, types, selectors and conditions in your ant build file.

Upvotes: 3

Related Questions