Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Ant, Maven and Other Build Tools and the fly likes svnant checkout doesnt work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "svnant checkout doesnt work" Watch "svnant checkout doesnt work" New topic
Author

svnant checkout doesnt work

betul aydin
Greenhorn

Joined: Jan 08, 2008
Posts: 19
Hi Iam new at svn ant I try to checkout project from my repository but I couldnt be succes.Can somebody help me?
here is my build.xml


<?xml version="1.0"?>
<!-- Sample build file used to retrieve svnant's sources -->
<project name="svn-test" basedir="." default="checkoutThis">

<!-- all properties are in build.properties -->
<property file="build.properties" />

<!-- path to the svnant libraries. Usually they will be located in ANT_HOME/lib -->
<path id="svnant.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>

<!-- load the svn task -->
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" />

<target name="clean">
<delete dir="src_latest"/>
<delete dir="src_${svnant.version}"/>
</target>

<target name="checkoutLatest">
<svn username="${svnant.repository.user}" password="${svnant.repository.passwd}">
<checkout url="http://svn.apache.org/repos/asf/incubator/openejb/trunk" revision="HEAD" destPath="src_latest" />
</svn>
</target>

<target name="checkoutThis">
<svn username="${svnant.repository.user}" password="${svnant.repository.passwd}">
<checkout url="${svnant.this.url}" revision="HEAD" destPath="src_${svnant.version}" />
</svn>
</target>
<target name="test">
<svn username="${test.user}" password="${test.pas}">
<checkout url="${test}" revision="HEAD" destPath="src_test" />
</svn>

<echo message= "Subversion repository url" />
</target>

</project>



error
[svn] <Checkout> started ...
[svn] reading malformed data
[svn] svn: Malformed network data
[svn] <Checkout> failed !
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"btl_ayd" please check your private messages.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

Do you have the correct url? I tried accessing http://svn.apache.org/repos/asf/incubator/openejb/trunk and it does not exist. Looks like 'openejb' is not in 'incubator', but directly under 'asf'.


JBoss In Action
betul aydin
Greenhorn

Joined: Jan 08, 2008
Posts: 19
Hi I try this url but seem error has been occure.

http://subclipse.tigris.org/svn/subclipse/trunk/svnant/
betul aydin
Greenhorn

Joined: Jan 08, 2008
Posts: 19
I try to browser this url on the (right click on window)tortoiseSvn-> repobrowser->url(http://subclipse.tigris.org/svn/subclipse/trunk/svnant/)
I have got this error
xml data was not well formatted

Can anybody say what is the problem?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

Looks like that URL requires a username and password.
 
 
subject: svnant checkout doesnt work