Hello,
I am using svnant-1.0.0.
I developed a simple build.xml as shown below
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="svn.checkout" default="doCheckOut" basedir=".">
<property file="build.properties"></property>
<!-- SVN and SVN-ANT Tasks properties -->
<property name="svn.repository.url" value="${svn.repository.url}"/>
<property name="svn.project.base.path" value="${svn.project.base.path}" />
<property name="svn.base.url"
value="${svn.repository.url}/${svn.project.base.path}"/>
<property name="svnant.lib.dir" location="/home/oracle/svnant-1.0.0/lib"/>
<property name="svnant.javahl" value="false" />
<property name="svnant.svnkit" value="true" />
<!-- SVN and SVN-ANT Tasks properties -->
<!-- *************************************************************** -->
<!-- Set-Up of SVN-ANT classpath -->
<!-- *************************************************************** -->
<path id="svnant.classpath">
<fileset dir="${svnant.lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<!-- *************************************************************** -->
<!-- Loading of SVN task -->
<!-- *************************************************************** -->
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml"
classpathref="svnant.classpath" />
<!-- *************************************************************** -->
<!-- tool-availability: Determine if SVN-ANT is available. -->
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<target name="tool-availability">
<available resource="org/tigris/subversion/svnant/svnantlib.xml"
classpathref="svnant.classpath"
property="available.svnant"
/>
<echo message="SVN-ANT is available = ${available.svnant}"/>
</target>
<!-- **************************************************************** -->
<!-- does-svnant-exist: depends on tool-availablility and -->
<!-- displays error message
-->
<!-- ***************************************************************** -->
<target name="does-svnant-exist" depends="tool-availability">
<fail unless="available.svnant">
SVN-ANT is not available, cannot perform tagging or checkout/export svn ant
task.
</fail>
</target>
<!-- ****************************************************************** -->
<!-- svntag: performs checkout using properties
from -->
<!-- build.properties and uses SVNANT tasks
-->
<!-- ******************************************************************* -->
<target name="doCheckOut">
<echo>"url = "+${svn.base.url}</echo>
<svn username="${svn.username}" password="${svn.password}">
<checkout url="${svn.base.url}" revision="HEAD"
destPath="/home/oracle/NII" />
</svn>
</target>
</project>
Getting the following error during runtime.
doCheckOut:
[echo] "url = "+https://141.146.44.47/svn/300305698 NII SOA Arch and
Design/
BUILD FAILED
/home/oracle/NII_SOA_AIA_OSB_Deployment_Scripts/svn-tasks.xml:56: Problem:
failed to create task or type svn
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Any help is much appreciated!
Thanks,
Mustafa
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2759124
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2011-06-06 22:12:34 CEST