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

RE: [Subclipse-users] [svn] java.lang.NoSuchMethodError: <init>

From: ashutosh sharma <ashutosh2.sharma_at_citi.com>
Date: Wed, 6 May 2009 12:28:03 -0500

I tried your recommendation but it doesn't work for me. this is how my build.xml looks like. Also attached with this email.

<project name="CWSDEV" default="clean_compile_all" basedir="../">

    <property environment="env"/>

    <target name="init">
        <echo message="Inside init task..."/>

        <condition property="VALID_JAVA_VERSION">
            <equals arg1="${ant.java.version}" arg2="1.4"/>
        </condition>
        <fail message="Invalid Java version ${ant.java.version}" unless="VALID_JAVA_VERSION"/>
        <property name="DEPLOYMENT_DIR" value="${basedir}/deployment"/>
                <property file="${basedir}/build/properties/cws_dev.properties"/>
        <!-- SVN properties defined here -->
        <property name="svn.repository" value="${env.SVNROOT}"/>
                <path id = "classpath.svn" >
                        <fileset dir = "/export/home/weblogic/svnant_lib" >
                        <include name="svnant.jar" />
            <include name="svnClientAdapter.jar" />
            <include name="svnkit.jar" />
            <include name="ganymed.jar" />
           <!-- <include name="svnjavahl.jar" />-->
                        </fileset>
         </path>
                <!-- load the svn task, common for all the svn tasks -->
                <!--<taskdef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="classpath.svn"/> -->
                <!--<taskdef resource="org/tigris/subversion/svnant/svnantlib.xml" classpath="/export/home/weblogic/svnant_lib/svnant.jar"/> -->
                <taskdef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="classpath.svn"/>

       .......

    </target>

    <target name="init_build_cws_dev" depends="init">
       .....
    </target>

    <target name="init_build_domain_dev" depends="init">

    </target>
    <target name="svn_update_cwsportal" depends="init">
        <echo message="inside svn_update_cwsportal"/>
                <svn username="${SVN_USER}" password="${SVN_PASSWORD}" javahl="false">
                  <export srcUrl="${SVNROOT}/cwsportalapp" revision="HEAD" destPath="${SRC_HOME}" />
                </svn>
    </target>

    <target name="svn_update_security" depends="init">
        <echo message="inside svn_update_security"/>
                <svn username="${SVN_USER}" password="${SVN_PASSWORD}" javahl="false">
                        <export srcUrl="${SVNROOT}/cwssecurity" revision="HEAD" destPath="${SRC_HOME}" />
                </svn>
    </target>

    <target name="svn_update_domain" depends="init">
        <echo message="inside svn_update_domain"/>
                <svn username="${SVN_USER}" password="${SVN_PASSWORD}" javahl="false">
                        <export srcUrl="${SVNROOT}/cwsdomain" revision="HEAD" destPath="${SRC_HOME}" />
                </svn>
    </target>

        <target name="svn_full_clean_checkout_cwsportal" depends="init_build_cws_dev">
        <echo message="inside svn_update_domain"/>
       <tstamp/>
       <echo level="info" message="TODAY value: ${TODAY}" />
       <delete dir="${SRC_CWSPORTALAPP_HOME}" failonerror="false"/>
           <svn username="${SVN_USER}" password="${SVN_PASSWORD}" javahl="false">
                        <checkout url="${SVNROOT}/cwsportalapp" revision="HEAD" destPath="${SRC_HOME}" />
                </svn>
        </target>

        <target name="svn_full_clean_checkout_security" depends="init_build_cws_dev">
       <delete dir="${SRC_SECURITY_HOME}" failonerror="false"/>
           <svn username="${SVN_USER}" password="${SVN_PASSWORD}" javahl="false">
                        <checkout url="${SVNROOT}/cwssecurity" revision="HEAD" destPath="${SRC_HOME}" />
                </svn>
        </target>

        <target name="svn_full_clean_checkout_domain" depends="init_build_cws_dev">
       <delete dir="${DOMAIN_HOME}" failonerror="false"/>
           <svn username="${SVN_USER}" password="${SVN_PASSWORD}" javahl="false">
                        <checkout url="${SVNROOT}/cwsdomain" revision="HEAD" destPath="${SRC_HOME}" />
                </svn>
        </target>

    <target name="svn_full_checkout" depends="init_build_cws_dev">
                <echo level="info" message="src folder is ${env.DELETE_SRC_DIR}"/>
                <svn username="${SVN_USER}" password="${SVN_PASSWORD}" javahl="false">
                <checkout url="${SVNROOT}/cwssecurity" revision="HEAD" destPath="${SRC_HOME}" />
                <checkout url="${SVNROOT}/cwsportalapp" revision="HEAD" destPath="${SRC_HOME}" />
                <checkout url="${SVNROOT}/cwsdomain" revision="HEAD" destPath="${SRC_HOME}" />
                </svn>
    </target>

    <target name="svn_update_by_tag" depends="init_build_cws_dev">
        <echo message="SVS checkout in progress ... using SVN tag : ${env.SVN_TAG}"/>
                <svn username="${SVN_USER}" password="${SVN_PASSWORD}" javahl="false">
                <checkout url="${SVNROOT}/cwssecurity" revision="HEAD" destPath="${SRC_HOME}" />
                <checkout url="${SVNROOT}/cwsportalapp" revision="HEAD" destPath="${SRC_HOME}" />
                <checkout url="${SVNROOT}/cwsdomain" revision="HEAD" destPath="${SRC_HOME}" />
                </svn>
    </target>

   ......

</project>

-----Original Message-----
From: Kristian [mailto:krsp_at_nykredit.dk]
Sent: Wednesday, May 06, 2009 8:01 AM
To: users_at_subclipse.tigris.org; Sharma, Ashutosh2
Subject: RE: [Subclipse-users] [svn] java.lang.NoSuchMethodError: <init>

> I am doing very basic stuff to checkout or export the source code.
> following the proper syntax also but it is still failing.
> This is my build.xml:
> ============================================================================================================================================================
> <?xml version="1.0"?>
> <!-- Sample build file used to retrieve svnant's sources -->
> <project name="svn-test" basedir="." default="checkoutThis">
>
> <property environment= "env"/>
>
> <!-- SVN classpath -->
> <path id = "class.path.svn" >
> <fileset
> dir = "C://SVN Migration/svnant-1.2.1/lib" >
> <include name= "**/*.jar" />
> </fileset>
> </path>
>
> <!-- load the svn task -->
> <taskdef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="class.path.svn"/>
>
> <target name="checkoutThis">
> <echo message="inside checkoutThis"/>
> <svn username="" password="">
> <export srcUrl="http://gcateng-nj1p.nam.nsroot.net:9050/svn/50262/CPBClientWebSite/trunk/cwsdomain" revision="HEAD" destPath="c://TryMaadi/domain" />
> </svn>
> </target>
>
> </project>
> ============================================================================================================================================================
>
> though the export command is successfull(there are contents properly being put from repository into this), but i am still gettting the following errors(please see the log files).
> Please help.
>
> With Best Regards:
> Ashutosh Sharma
> CWS-Dev
>
> ashutosh2.sharma_at_citi.com

Hi,
I've had the exact same problem, but solved it by adding the javahl="false" parameter to the svn task, like this:

<svn javahl="false" username="" password="">

krsp

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2082884

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].

Received on 2009-05-06 19:29:42 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.