[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVNAnt Configuration Question

From: JP Fiset <jp_at_fiset.ca>
Date: 2005-10-26 06:28:45 CEST

This will not be encouraging, and probably will not come as a surprize,
but testing it locally works fine for me. However, I'd like to help, so
let's look at more variables. I am running on Windows XP, but since this
seems to be like a classpath issue, the platform should not matter much.
I am using ANT 1.6.5, Java 1.5.0_03 and SvnAnt 0.9.13. I have tested
using the Command Line Interface. Is your implementation using JavaHL?

My ANT installation is stock, meaning I have not added any library to it
since installation. Same with Java. In my environment, I have ANT_HOME
and JAVA_HOME set correctly, but there is no CLASSPATH. Finally, the
version of the local Subversion is 1.2.3.

The best approach is probably to get the build.xml provided in svnant to
work for you. I am suspecting if we get through that, then you'll be
well on your way to get your own build working. First off, the
build.properties file provided in svnant-0.9.13 must be fixed with new
URLs as follows:

svnant.latest.url=http://subclipse.tigris.org/svn/subclipse/trunk/svnant/
svnant.this.url=http://subclipse.tigris.org/svn/subclipse/tags/svnant/${svnant.version}/

Also, it appears that the Subclipse project is set up so that a valid
Tigris username/password is now required to check out the source (I do
not know why this is necessary). Therefore, one must provide the
attributes 'username' and 'password' to the svn task in the build
script. Finally, I offer the output of a verbose ANT run to support some
of my claims above:

C:\temp\scratch\svnant-test>ant -v checkoutLatest
Apache Ant version *1.6.5* compiled on June 2 2005
Buildfile: build.xml
Detected Java version: *1.5 in: E:\Program Files\Java\jdk1.5.0_03\jre*
Detected OS: *Windows XP*
parsing buildfile C:\temp\scratch\svnant-test\build.xml with URI =
file:///C:/temp/scratch/svnant-test/build.xml
Project base dir set to: C:\temp\scratch\svnant-test
Build sequence for target(s) `checkoutLatest' is [checkoutLatest]
Complete build sequence is [checkoutLatest, checkoutThis, clean, ]

checkoutLatest:
      [svn] Using command line interface
Svn : Checking out a working copy from a repository :
co -r HEAD http://subclipse.tigris.org/svn/subclipse/trunk/svnant
C:\temp\scratch\svnant-test\src_latest *--username jpfiset --password
******** --non-interactive
(...)
Checked out revision 1693.
Warning : invalid path :U C:\temp\scratch\svnant-test\src_latest

BUILD SUCCESSFUL
Total time: 1 minute 27 seconds

Dov Rosenberg wrote:
> 1.6.5
>
>
> On 10/25/05 9:29 PM, "JP Fiset" <jp@fiset.ca> wrote:
>
> Can you provide the ANT version you are using?
>
Received on Wed Oct 26 14:28:45 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.