ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: Newbie: Can't configure Ivy from local file in Windows
Date Fri, 08 Aug 2008 14:41:44 GMT
Could you please post your settings.xml file?

Maarten




----- Original Message ----
From: "Lewis, Eric" <Eric.Lewis@ipi.ch>
To: ivy-user@ant.apache.org
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?



      

Mime
View raw message