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: Unknown tag
Date Thu, 26 Jun 2008 08:20:33 GMT
On Thu, Jun 26, 2008 at 9:12 AM, Brian Matzon <matzon@certus.dk> wrote:

> cWhile working on the gen-content stuff, I added some description, license
> and repository tags to the ivy-module/info section. Result:
>
> [ivy:settings] :: loading settings :: file = ivysettings.xml
>
> ivy.resolve:
> [ivy:resolve] [unknwon tag license in file:/ivy.xml
> [ivy:resolve] , unknwon tag repository in file:/ivy.xml
> [ivy:resolve] ]
>
> BUILD FAILED
> build.xml:24: syntax errors in ivy file: java.text.ParseException: [unknwon
> tag license in file:/ivy.xml
> , unknwon tag repository in file:/ivy.xml
> ]
>
> ignoring the spelling error - why is it giving me this error ?
> I can see from the schema (http://ant.apache.org/ivy/schemas/ivy.xsd) that
> they should be allowed? I am using 2.0.0 beta 2.

The order is important in a schema constrained xml file. So you should put
license, repository and then description.

Xavier


>
>
> This is the ivy file I am using:
>
> <ivy-module version="1.0">
>   <info organisation="example" module="${ant.project.name}">
>     <description homepage="http://example.com">lala</description>
>     <license name="BSD"/>
>     <repository name="Internal" url="http://example.com/"
> pattern="[organisation]/[module]/[revision]/ivy.xml" ivys="true"
> artifacts="true"/>
>   </info>
>     <configurations>
>       <conf name="library" description="library build"/>
>       <conf name="complete" description="complete package"/>
>   </configurations>
>     <publications>
>       <artifact name="${ant.project.name}" type=""        conf="library"
>       ext="jar"/>
>       <artifact name="${ant.project.name}" type=""         conf="library"
>         ext="pom" />
>       <artifact name="${ant.project.name}" type="bin"    conf="complete"
>   ext="zip"/>
>   </publications>
>
>   <dependencies>
>   </dependencies>
> </ivy-module>
>
> /matzon
>



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