Unfortunately, IvyDE has a bug: the validation is hard coded "true" instead of using ivyconf.xml value.
See org.jayasoft.ivyde.eclipse.cpcontainer.IvyClasspathContainer.java:188 As you can see, the 6th parameter is hard coded true. Patch: replace the "true" to "_ivy.doValidate()". It Works! Xavier, I don't know how to send the patch. There is no IvyDE SVN and no JIRA category. Can you instruct me how to send the patch? Anyway, since this is really a little change (as I described above) it is easy to do it yourself. By the way, I have found another bug (probably already in Jira, I haven't checked): Ivy doesn't use Ant conventions for "yes/on/true" and "no/off/false". I don't remember where in Ant documentation it is stated that yes/on/true are all equal and that no/off/false are also all equal. On 12/17/06, Xavier Hanin <[EMAIL PROTECTED]> wrote:
On 12/17/06, ophir bleiberg <[EMAIL PROTECTED]> wrote: > > The problem only occurs when working with IvyDE through Eclipse. This can be due to the lack of an XML parser supporting schema validation in other cases. How do I disable schema validation in IvyDE? You can only disable validation altogether in Ivy, in the conf element of your ivyconf.xml: http://www.jayasoft.org/ivy/doc/configuration/conf Xavier -----Original Message----- > From: Xavier Hanin [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 17, 2006 2:39 PM > To: [email protected] > Subject: Re: IvyDE (1.2) does not support non-standard attributes in > ivy.xml > files when Eclipse runs from JRE 1.5? > > The problem seems to be due to schema validation. When using extra > attributes you should disable validation. Did you disable xml validation > in > Ivy? > > Xavier > > On 12/17/06, Ophir Bleiberg <[EMAIL PROTECTED]> wrote: > > > > Hi, > > It appears that when the default PC JRE (not JAVA_HOME, but > > rather the 'java' executable in the path) is 1.5, then IvyDE 1.2 fails > > to resolve ivy.xml files with additional non-standard attributes (we > > use 'kind' and 'version', for example). > > Everything works fine on PCs whose 'java -version' is 1.4. > > On those with 1.5, resolving fails, and the following is > > printed to the log: > > !ENTRY org.jayasoft.ivyde.eclipse 4 4 2006-12-14 14:41:30.640 > > !MESSAGE Impossible to resolve dependencies of [ personeta | > > CollectCall | NONE ]: > > unresolved dependency: [ personeta | CollectCallBillingCDR | > > 4.0.1.0-build0 ]: java.text.ParseException: [xml parsing: > > > > H:\personeta\ApplicationData\TappS-Dev\ivy-repository\integration\personeta\ > CollectCallBillingCDR\4.0.1.0-build0\ivys\ivy.xml:2:160: > > cvc-complex-type.3.2.2: Attribute 'version' is not allowed to appear > > in element 'info'. in > > H:\personeta\ApplicationData\TappS-Dev\ivy-repository\integration\pers > > oneta\CollectCallBillingCDR\4.0.1.0-build0\ivys\ivy.xml > > ] > > > > See IvyConsole for further details > > > > > > Is this a known issue? Is there a target version for fixing > > this problem? > > > > Thanks, > > Ophir > > > > "Beware of the man who works hard to learn something, learns it, > > and finds himself no wiser than before. He is full of murderous > > resentment of people who are ignorant without having come by their > > ignorance the hard way." > > > > > > > >
