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

[Subclipse-users] (3rd {POST) Re: Getting "Cause: The name is undefined. " in SVNAnt

From: Mustafa Cayci <acayci_at_yahoo.com>
Date: Tue, 7 Jun 2011 03:22:25 -0700 (PDT)

Hello,

I did not get any replies.

I figured I should try with the SVNAnt 1.3.1.

FYI I am trying to get this working on Linux environment.

I copied svnant.jar and svnClientAdapter.jar files to ANT_HOME/lib dir

I have the following

<taskdef resource="org/tigris/subversion/svnant/svnantlib.xml"
classpathref="svnant.classpath"/>

and checkout as shown below
 <target name="doCheckOut" depends="tool-availability">
    <svn username="${svn.username}" password="${svn.password}">
      <checkout url="${svn.base.url}" revision="HEAD"
destPath="/home/oracle/NII" />
    </svn>
  </target>

I am getting

BUILD FAILED
/home/oracle/NII_SOA_AIA_OSB_Deployment_Scripts/svn-tasks.xml:55:
java.lang.NoClassDefFoundError: org/tigris/subversion/javahl/SVNClientInterface
        at org.tigris.subversion.svnant.SvnFacade.isJavahlAvailable(Unknown
Source)
        at org.tigris.subversion.svnant.SvnFacade.getClientAdapter(Unknown
Source)
        at org.tigris.subversion.svnant.SvnTask.executeImpl(Unknown Source)
        at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        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:809)
        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)

Thanks,
Mustafa

----- Original Message ----
From: Mustafa Cayci <acayci_at_yahoo.com>
To: users_at_subclipse.tigris.org
Sent: Mon, June 6, 2011 4:26:48 PM
Subject: Re: Getting "Cause: The name is undefined. " in SVNAnt

Hello again,

I think the problem is here

  [typedef] Could not load definitions from resource
org/tigris/subversion/svnant/svnantlib.xml. It could not be found.

When I look at the "svnant.jar", I don't see a file called svnantlib.xml.

Thanks,
Mustafa

----- Original Message ----
From: Mustafa Cayci <acayci_at_yahoo.com>
To: users_at_subclipse.tigris.org
Sent: Mon, June 6, 2011 3:49:35 PM
Subject: Getting "Cause: The name is undefined. " in SVNAnt

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=2759530

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2011-06-07 15:17:08 CEST

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.