Hi, The stacktrace was helpful and just confirmed my theory that svn4ant just doesn't support WC 1.7.
SvnUtilClient#urlFrom method (from which the exception is thrown) uses obsolete code. SVNWCAccess and SVNAdminArea classes work for WC <=1.6 only. Since SVNKit 1.7 an abstraction SvnRepositoryAccess should be used instead. So you should switch to 1.6 back and ask svn4ant developers to implement WC 1.7 support. -- Dmitry Pavlenko, TMate Software, http://subgit.com/ - git-svn bridge > Hi, > Thanks for the response. > I am able to get the stack trace.Below is the trace.. > > Regards, > Amit Kalia > > BUILD FAILED > /home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/build-atao-e > ar.xml:191: The following error occurred while executing this line: > /home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/build-atao- > ear.xml:608: Unable to execute svnclient subcommand revget. Reason: "svn: > E155021: The path > '/home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/checkout/a > tao' appears to be part of a Subversion 1.7 or greater working copy. > Please upgrade your Subversion client to use this > working copy.". > at > org.jwaresoftware.svn4ant.TaskSkeleton.problemOccured(TaskSkeleton.java:17 > 6) at > org.jwaresoftware.svn4ant.TaskSkeleton.problemOccured(TaskSkeleton.java:19 > 1) at > org.jwaresoftware.svn4ant.client.subcommands.SvnGetRevisionTask.execute(Sv > nGetRevisionTask.java:203) at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at > sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106 > ) at org.apache.tools.ant.Task.perform(Task.java:348) > at org.apache.tools.ant.Target.execute(Target.java:392) > at org.apache.tools.ant.Target.performTasks(Target.java:413) > at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheck > Executor.java:38) at > org.apache.tools.ant.Project.executeTargets(Project.java:1251) at > org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at > sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106 > ) at org.apache.tools.ant.Task.perform(Task.java:348) > at org.apache.tools.ant.Target.execute(Target.java:392) > at org.apache.tools.ant.Target.performTasks(Target.java:413) > at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at > org.apache.tools.ant.Project.executeTarget(Project.java:1368) at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor > .java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > at org.apache.tools.ant.Main.runBuild(Main.java:811) > at org.apache.tools.ant.Main.startAnt(Main.java:217) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) > Caused by: org.tmatesoft.svn.core.SVNException: svn: E155021: The path > '/home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/checkout/a > tao' appears to be part of a Subversion 1.7 or greater working copy. > Please upgrade your Subversion client to use this > working copy. > at > org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.j > ava:64) at > org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.checkWC(SVNAd > minAreaFactory.java:121) at > org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probe(SVNWCAccess.jav > a:806) at > org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess > .java:299) at > org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess > .java:295) at > org.jwaresoftware.svn4ant.client.SvnUtilClient.urlFrom(SvnUtilClient.java: > 82) at > org.jwaresoftware.svn4ant.client.SvnUtilClient.getRevisionNumber(SvnUtilCl > ient.java:114) at > org.jwaresoftware.svn4ant.client.subcommands.SvnGetRevisionTask.execute(Sv > nGetRevisionTask.java:195) ... 29 more > Caused by: org.tmatesoft.svn.core.SVNException: svn: E155021: The path > '/home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/checkout/a > tao' appears to be part of a Subversion 1.7 or greater working copy. > Please upgrade your Subversion client to use this > working copy. > at > org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.j > ava:64) at > org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.j > ava:51) at > org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.checkWC(SVNAd > minAreaFactory.java:98) ... 35 more > > Total time: 3 minutes 32 seconds > [rebuild@kap-us-lbamtest TRUNK-LONG-JOB1]$ > > > > -----Original Message----- > From: Dmitry Pavlenko [mailto:pavle...@tmatesoft.com] > Sent: Wednesday, October 31, 2012 1:57 PM > To: Kalia, Amit > Cc: svnkit-users@svnkit.com > Subject: Re: Issue with svnkit version 1.7.5 > > Hi, > Without any stacktrace I can't deeply analyze the problem, but currently I > think the best one can do is to forward my suggestions to svn4idea > support. > > I think this part that I mentioned before > > } else if (AcceptedWCFormat.SVN_15==wcf) { > formatEnforcer= new > SelectorOfOneFormat(SVNAdminAreaFactory.WC_FORMAT_15); } else { > formatEnforcer= new > SelectorOfOneFormat(SVNAdminAreaFactory.WC_FORMAT_16); } > return formatEnforcer; > > should be updated to something like > > } else if (AcceptedWCFormat.SVN_15==wcf) { > formatEnforcer= new > SelectorOfOneFormat(SVNAdminAreaFactory.WC_FORMAT_15); } else if > (AcceptedWCFormat.SVN_16==wcf) { > formatEnforcer= new > SelectorOfOneFormat(SVNAdminAreaFactory.WC_FORMAT_16); } else { > formatEnforcer= //some code related to WC 1.7 format > } > return formatEnforcer; > > > SVNAdminAreaFactory class describes working copies with .svn directory in > each subdirectory (i.e. 1.4-1.6 versions), but in SVN 1.7 another format > was introduced and other classes are used to work with such working copies > (SVNWCContext, ISVNWCDb), so SelectorOfOneFormat should be a bit reworked > (but not very much, format-independent SVNXXXClient API mostly works as > earlier). > > -- > Dmitry Pavlenko, > TMate Software, > http://subgit.com/ - git-svn bridge > > > Hi, > > > > Thanks for the response. Please find the attached format file > > > > with the mail. I could not see any error messages related with the > > svn4ant(stack trace).This is the only message I have as per the mail > > below. > > > > Regards, > > Amit Kalia > > > > -----Original Message----- > > From: Dmitry Pavlenko [mailto:pavle...@tmatesoft.com] > > Sent: Tuesday, October 30, 2012 5:52 PM > > To: svnkit-users@svnkit.com > > Cc: Kalia, Amit > > Subject: Re: Issue with svnkit version 1.7.5 > > > > Hi, > > > > Could you send us stacktrace if svn4ant produces any log? > > Also it is not clear, what working copy format you have. Could you > > send us this file: > > > > .svn/format > > > > from your working copy. > > > > SVNKit >= 1.7 seamlessly supports all working copies formats from 1.4 > > to 1.7, if no format-dependent code is executed. > > > > org.jwaresoftware.antxtras.core.AntXFixture.Local#newFormatSelector is > > > > implemented this way: > > static ISVNAdminAreaFactorySelector > > > > newFormatSelector(AcceptedWCFormat > > wcf) { > > > > ISVNAdminAreaFactorySelector formatEnforcer; > > if (AcceptedWCFormat.PRE_SVN14==wcf) { > > > > formatEnforcer= new > > > > SelectorOfOneFormat(SVNAdminAreaFactory.WC_FORMAT_13); } else if > > (AcceptedWCFormat.PRE_SVN15==wcf) { > > > > formatEnforcer= new SelectorOfOneFormat > > > > (new int[] {SVNAdminAreaFactory.WC_FORMAT_14, > > > > SVNAdminAreaFactory.WC_FORMAT_13}); > > > > } else if (AcceptedWCFormat.PRE_SVN16==wcf) { > > > > formatEnforcer= new SelectorOfOneFormat > > > > (new int[] {SVNAdminAreaFactory.WC_FORMAT_15, > > > > SVNAdminAreaFactory.WC_FORMAT_14, > > SVNAdminAreaFactory.WC_FORMAT_13}); > > > > } else if (AcceptedWCFormat.SVN_14==wcf) { > > > > formatEnforcer= new > > > > SelectorOfOneFormat(SVNAdminAreaFactory.WC_FORMAT_14); } else if > > (AcceptedWCFormat.SVN_15==wcf) { > > > > formatEnforcer= new > > > > SelectorOfOneFormat(SVNAdminAreaFactory.WC_FORMAT_15); } else { > > > > formatEnforcer= new > > > > SelectorOfOneFormat(SVNAdminAreaFactory.WC_FORMAT_16); } > > > > return formatEnforcer; > > > > } > > > > It looks like svn4ant doesn't expect WC 1.7 format. I suspect, this is > > the reason of that problem. > > > > -- > > Dmitry Pavlenko, > > TMate Software, > > http://subgit.com/ - git-svn bridge > > > > > Hi, > > > > > > I am using ANT 1.8.4 with > > > > > > svn4ant_3.5.0b2-build1564.41_bin_withdeps which uses svnkit 1.3.8 > > > version.With this setup my builds fails with the error as below > > > > > > /home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/build > > > -a > > > tao-e > > > ar.xml:186: The following error occurred while executing this line: > > > /home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/build > > > -a > > > tao- > > > ear.xml:497: Unable to execute svnclient subcommand checkout. Reason: > > > "svn: The path > > > '/home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/checkou > > > t' appears to be part of Subversion 1.7 (SVNKit 1.4) or greater working > > > copy rooted at > > > '/home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1'. > > > Please upgrade your Subversion (SVNKit) client to use this working > > > copy.". > > > > > > Now after upgrading the svnkit.jar to the revision 1.7.5 ,I am > > > receiving the below error:- > > > > > > /home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/build > > > -a > > > tao-e > > > ar.xml:191: The following error occurred while executing this line: > > > /home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/build > > > -a > > > tao- > > > ear.xml:608: Unable to execute svnclient subcommand revget. Reason: > > > "svn: E155021: The path > > > '/home/rebuild/bamboo-agent1/xml-data/build-dir/TRUNK-LONG-JOB1/chec > > > ko ut/a tao' appears to be part of a Subversion 1.7 or greater > > > working copy. > > > Please upgrade your Subversion client to use this working copy.". > > > > > > We are using svn:revget ant task to get the revision of the working > > > copy but it fails with the above error. Just an update , after > > > upgrading the svnkit to 1.7.5 ,svn:checkout ,svn:update and > > > svn:export works fine. > > > > > > Please let me know what is the issue here and just an update we are > > > trying to migrate to subversion 1.7.2 and as the result we are > > > upgrading the build infrastructure. > > > > > > Regards, > > > Amit Kalia