ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Classpath issue in ant
Date Wed, 28 Nov 2007 01:16:22 GMT
On Nov 27, 2007 7:48 PM, jonathan doklovic <jdoklovic@ibsys.com> wrote:

> Hi,
>
> I'm trying to use the svn-ant library and I'm having a problem when ivy
> tries to load my settings file.
>
> I've put the ivysvnresolver and related jars in my ant/lib directory.
>
> When I try to load settings and do a simple resolve, i get this:
>
> build.xml:12: impossible to configure ivy:settings with given
> file: /home/jdoklovic/.ivy2/settings/ivy-settings.xml :
> java.text.ParseException: failed to load settings from
> file:/home/jdoklovic/.ivy2/settings/ivy-settings.xml: problem in config
> file: failed to load settings from
> file:/home/jdoklovic/.ivy2/settings/ivysettings-shared-svn.xml: impossible
> to define new type: class not found:
> fm.last.ivy.plugins.svnresolver.SvnResolver in [] nor Ivy classloader

Maybe Ivy swallow the detail about the origin of the classnotfound, maybe
you're missing a dependency of the
fm.last.ivy.plugins.svnresolver.SvnResolver. Do you have all ivy-svn
dependencies in your antlib as well? If you do be sure to double check the
spelling of the classname. And be sure you put the files in the ant lib you
use, you can use ant -diagnostics to be sure and help diagnose the problem.

Xavier



>
> here's my build.xml:
>
> <project name="ivy-test" default="default"
>        xmlns:ivy="antlib:org.apache.ivy.ant">
>
>        <property file="build.properties" />
>        <import file="ivy-targets.ant"/>
>
>        <target name="default">
>                <ivy:settings id="ivy.instance"
> file="/home/jdoklovic/.ivy2/settings/ivy-settings.xml"/>
>                <ivy:resolve />
>        </target>
> </project>
>
> and here's the ivysettings-shared-svn.xml it's complaining about
>
> <ivysettings>
> <property name="ivy.shared.svn.root"
> value="DOMAIN_REMOVED/ivy/trunk/repo"/>
> <typedef name="svn"
> classname="fm.last.ivy.plugins.svnresolver.SvnResolver"/>
> −
>        <resolvers>
> −
>        <svn name="shared-svn" username="${svn.user.name}"
> userpassword="${svn.user.password}">
> <ivy pattern="svn
> +ssh://${ivy.shared.svn.root}/${ivy.default.ivy.pattern}"/>
> <artifact pattern="svn
> +ssh://${ivy.shared.svn.root}/${ivy.default.artifact.pattern}"/>
> </svn>
> </resolvers>
> </ivysettings>
>
>
> any ideas?
>
> Thanks,
>
> - Jonathan
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message