I guess what is difficult to understand is not the syntax, but the regular 
expressions to match the syntax. In the method we test against three patterns:
- module revision id format pattern (with no capturing groups to get only the 
whole mrid matching, useful especially for other pattern): matches stuff like 
org#module;rev
- one dependency: org#module;rev -> org#module;rev
- several dependencies: org#module;rev -> { org#module;rev org#module;rev ... }

add optional spaces spaces, and you get the idea behind the regexps.

But maybe jdk 1.4 has different handling of regexp, I'm not sure I've tried 
with jdk 1.4 recently

Xavier

> -----Original Message-----
> From: Maarten Coene [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 06, 2007 5:37 PM
> To: Ant Developers List
> Subject: Re: LatestConflictManagerTest fails
>
> I run my tests with JDK 1.4, maybe the regular expression handling is
> different?
> I'll try to debug, but for the moment, I'm trying to understand this
> new syntax (or maybe it's just too late in the evening for this)
>
> Maarten
>
> ----- Original Message ----
> From: Xavier Hanin <[EMAIL PROTECTED]>
> To: Ant Developers List <dev@ant.apache.org>
> Sent: Thursday, December 6, 2007 11:32:28 PM
> Subject: RE: LatestConflictManagerTest fails
>
>
> It's strange. Try to go in debug mode and see what happens with the
>  third matcher in TestHelper#parseMicroIvyDescriptor.
> Oh, and since we are using a constant for the pattern, are you sure you
>  cleaned your build before running (you say you have a fresh copy, so I
>  don't see how it cold be an issue... but anyway).
>
> Xavier
>
> > -----Original Message-----
> > From: Maarten Coene [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 06, 2007 5:28 PM
> > To: dev@ant.apache.org
> > Subject: LatestConflictManagerTest fails
> >
> > Hi,
> >
> > The LatestConflictManagerTest fails on my fresh copy of svn trunk.
> > However, it doesn't fail on gump. Anyone an idea?
> >
> > I get the following exception when running in Eclipse (all tests fail
> > with similar error, except the first one)
> > java.lang.IllegalArgumentException: invalid micro ivy format: #A;1->
>  {
> > #B;1.4 #C;[2.0,2.5] }
> >     at
> >
>  org.apache.ivy.TestHelper.parseMicroIvyDescriptor(TestHelper.java:168)
> >     at org.apache.ivy.TestFixture.addMD(TestFixture.java:82)
> >     at
> >
>
> org.apache.ivy.plugins.conflict.LatestCompatibleConflictManagerTest.tes
> > tCompatibilityResolve1(LatestCompatibleConflictManagerTest.java:55)
> >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>  Source)
> >     at java.lang.reflect.Method.invoke(Unknown Source)
> >     at junit.framework.TestCase.runTest(TestCase.java:164)
> >     at junit.framework.TestCase.runBare(TestCase.java:130)
> >     at junit.framework.TestResult$1.protect(TestResult.java:106)
> >     at junit.framework.TestResult.runProtected(TestResult.java:124)
> >     at junit.framework.TestResult.run(TestResult.java:109)
> >     at junit.framework.TestCase.run(TestCase.java:120)
> >     at junit.framework.TestSuite.runTest(TestSuite.java:230)
> >     at junit.framework.TestSuite.run(TestSuite.java:225)
> >     at
> >
>
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JU
> > nit3TestReference.java:130)
> >     at
> >
>
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.j
> > ava:38)
> >     at
> >
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> > estRunner.java:460)
> >     at
> >
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> > estRunner.java:673)
> >     at
> >
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu
> > nner.java:386)
> >     at
> >
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR
> > unner.java:196)
> >
> > Maarten
> >
> >
> >
> >
> >
> >
> >
>
> _______________________________________________________________________
> > _____________
> > Looking for last minute shopping deals?
> > Find them fast with Yahoo! Search.
> >
>  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
> _______________________________________________________________________
> _____________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to