Ok:
<ivy-module version="1.0">
<ivysettings>
<settings defaultResolver="default" />
<include file="C:/jp/build/global/build-ivysettings-public.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-shared.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-local.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml" />
</ivysettings>
</ivy-module>
I copied it from the default configuration, just to change the public
configuration.
The first include also didn't work, with the same error.
Best regards,
Eric
> -----Ursprüngliche Nachricht-----
> Von: Maarten Coene [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 8. August 2008 16:42
> An: [email protected]
> Betreff: Re: Newbie: Can't configure Ivy from local file in Windows
>
> Could you please post your settings.xml file?
>
> Maarten
>
>
>
>
> ----- Original Message ----
> From: "Lewis, Eric" <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Friday, August 8, 2008 11:25:39 AM
> Subject: Newbie: Can't configure Ivy from local file in Windows
>
> Hi
>
> I'm new to Ivy and like it a lot :-) (I'm using 2.0.0-beta2)
> I'm trying to create a new general build, which consists of a general
> 'build.xml' file in the directory 'build', which is then included and
> called in every project.
>
> I'm trying to add the java.net repo to Ivy and followed the
> instructions
> on the site.
>
> This means that my project has the following build file:
> <project name="xyz" default="rebuild" basedir="."
> xmlns:ivy="antlib:org.apache.ivy.ant">
> <property name="project.version" value="1.0.5" />
> <property name="build.dir" location="../../build" />
> <import file="${build.dir}/project/build.xml"/>
> </project>
>
> And in the general 'build.xml' file, I have
> ...
>
> <target name="init">
> ...
>
> <ivy:settings file="${build.dir}/global/ivysettings.xml" />
> <ivy:retrieve file="ivy.xml" />
>
> <ivy:cachepath pathid="lib.path" conf="default" />
> <path id="lib.path.test">
> <path refid="lib.path" />
> <path location="${classes.main.dir}" />
> </path>
>
> </target>
> ...
>
> So the settings are in the 'build' directory, and the
> 'ivy.xml' file is
> in the project directory.
>
> However, when I start the build, I get
>
> init:
> [ivy:settings] :: Ivy 2.0.0-beta2 - 20080225093827 ::
> http://ant.apache.org/ivy/ ::
> [ivy:settings] :: loading settings :: file =
> C:\jp\build\global\ivysettings.xml
>
> BUILD FAILED
> C:\jp\build\project\build.xml:16: impossible to configure ivy:settings
> with given file: C:\jp\build\global\ivysettings.xml
> :java.text.ParseException: failed to load settings from
> file:/C:/jp/build/global/ivysettings.xml: io problem while parsing
> config file: unknown protocol: c
>
>
> I must be doing something wrong, but can't figure it out...
>
> Any help is really appreciated :-)
>
> Best regards,
> Eric
>
> P.S. Or perhaps there's a simpler way to just add a repository to the
> default public repositories?
>
>
>
>
>