On Wed, Mar 5, 2008 at 3:51 PM, Hans Dockter <[EMAIL PROTECTED]> wrote:
> > > > > It seems you don't use the same ivy.jar in both cases. Is > > ivy-2.0.0.beta2_20080103202250.jar a home made build, or a copy from > > ivy-2.0.0-beta2.jar? > > > > You are right. I forgot to update. Now the situation is pretty much > as described in my first mail. > > When I now start Gradle from IntelliJ or from the command line I get > the error messages. I don't get the error messages with my ant build. > My ant-build is also using ivy-beta2 (I've made sure that there is no > old ivy lib in the ant-home lib folder, as I install Ivy via my > build.xml). I suspect the difference is the xml parser used. Run "ant -diagnostics" and you will see a section telling which Xml parser is used. Here is mine: ------------------------------------------- XML Parser information ------------------------------------------- XML Parser : org.apache.xerces.jaxp.SAXParserImpl XML Parser Location: /usr/share/java/xercesImpl.jar Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser Namespace-aware parser Location: /usr/share/java/xercesImpl.jar If your ant install use xerces as mine, try adding to your classpath in gradle, to see what happens. Xavier > > > That is the build output of a Gradle build: > > localhost:~/IdeaProjects/gradle/gradle-core hans$ gradle -i compile > gradle.home=/Users/hans/java/gradle > Current dir: /Users/hans/IdeaProjects/gradle/gradle-core > Recursive: true > Buildfilename: gradle.groovy > Plugin properties: /Users/hans/java/gradle/plugin.properties > :: loading settings :: url = jar:file:/Users/hans/java/gradle-0.1- > snapshot/lib/ivy-2.0.0-beta2.jar!/org/apache/ivy/core/settings/ > ivysettings.xml > :: resolving dependencies :: org.gradle#build;na > confs: [build] > :: resolution report :: resolve 36ms :: artifacts dl 0ms > :: modules in use: > > --------------------------------------------------------------------- > | | modules || > artifacts | > | conf | number| search|dwnlded|evicted|| number| > dwnlded| > > --------------------------------------------------------------------- > | build | 0 | 0 | 0 | 0 || 0 > | 0 | > > --------------------------------------------------------------------- > Project=: evaluated. > Executing: ["compile"] Recursive:true Startproject: : > Executing: :resources > Executing: :compile > :: resolving dependencies :: org.gradle#gradle-core;0.1-snapshot > confs: [compile] > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found org.codehaus.groovy#groovy-all;1.5.4 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found commons-cli#commons-cli;1.0 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found commons-io#commons-io;1.3.1 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found commons-lang#commons-lang;2.3 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found ch.qos.logback#logback-classic;0.9.8 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found org.apache.ant#ant-launcher;1.7.0 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found org.apache.ant#ant-junit;1.7.0 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found junit#junit;4.4 in chain > :: resolution report :: resolve 412ms :: artifacts dl 10ms > :: modules in use: > ch.qos.logback#logback-classic;0.9.8 from chain in [compile] > commons-cli#commons-cli;1.0 from chain in [compile] > commons-io#commons-io;1.3.1 from chain in [compile] > commons-lang#commons-lang;2.3 from chain in [compile] > junit#junit;4.4 from chain in [compile] > org.apache.ant#ant-junit;1.7.0 from chain in [compile] > org.apache.ant#ant-launcher;1.7.0 from chain in [compile] > org.codehaus.groovy#groovy-all;1.5.4 from chain in [compile] > > --------------------------------------------------------------------- > | | modules || > artifacts | > | conf | number| search|dwnlded|evicted|| number| > dwnlded| > > --------------------------------------------------------------------- > | compile | 8 | 0 | 0 | 0 || 8 > | 0 | > > --------------------------------------------------------------------- > [groovyc] Compiling 2 source files to /Users/hans/IdeaProjects/ > gradle/gradle-core/build/classes > :: resolving dependencies :: org.gradle#gradle-core;0.1-snapshot > confs: [compile] > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found org.codehaus.groovy#groovy-all;1.5.4 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found commons-cli#commons-cli;1.0 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found commons-io#commons-io;1.3.1 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found commons-lang#commons-lang;2.3 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found ch.qos.logback#logback-classic;0.9.8 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found org.apache.ant#ant-launcher;1.7.0 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found org.apache.ant#ant-junit;1.7.0 in chain > [Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements > from their substitution group) violate "Unique Particle Attribution". > During validation against this schema, ambiguity would be created for > those two particles. > found junit#junit;4.4 in chain > :: resolution report :: resolve 138ms :: artifacts dl 5ms > :: modules in use: > ch.qos.logback#logback-classic;0.9.8 from chain in [compile] > commons-cli#commons-cli;1.0 from chain in [compile] > commons-io#commons-io;1.3.1 from chain in [compile] > commons-lang#commons-lang;2.3 from chain in [compile] > junit#junit;4.4 from chain in [compile] > org.apache.ant#ant-junit;1.7.0 from chain in [compile] > org.apache.ant#ant-launcher;1.7.0 from chain in [compile] > org.codehaus.groovy#groovy-all;1.5.4 from chain in [compile] > > --------------------------------------------------------------------- > | | modules || > artifacts | > | conf | number| search|dwnlded|evicted|| number| > dwnlded| > > --------------------------------------------------------------------- > | compile | 8 | 0 | 0 | 0 || 8 > | 0 | > > --------------------------------------------------------------------- > [groovyc] Compiling 2 source files to /Users/hans/IdeaProjects/ > gradle/gradle-core/build/classes > > BUILD SUCCESSFUL > > Total time: 3 seconds > > - Hans > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://ant.apache.org/ivy/ http://www.xoocode.org/