The problem is simple, you are fixing ant versions.

You can see the problem if you use the trunk version of ant.

Ivy downloads ant.1.6.5.jar into its rep ($IVY_SOURCE/lib), and then uses
that from within an ant trunk ant call. The ant.jar on the
classpath contains an antlib.xml that has new tasks in
it.


Peter
On 8/30/07, Maarten Coene <[EMAIL PROTECTED]> wrote:
> The "componentdef" code has been added recently to Ant.
> Maybe they are not finished implementing it, or maybe we use the Ant API in 
> an incorrect way?
>
> It's the following code that no longer seems to work:
>
>         Property property = (Property) getProject().createTask("property");
>
> Is this the preferred way of creating a Property task? Maybe there is no need 
> to this this?
> Are there any Ant experts on this list to take a look at this?
>
> regards,
> Maarten
>
> ----- Original Message ----
> From: Gilles Scokart <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Sunday, August 26, 2007 11:53:29 AM
> Subject: Re: [EMAIL PROTECTED]: Project ivy-tests (in module ivy) failed
>
> I didn't have time to look in more details for the moment (not before
> end of week actually).  But here is what I get from
> http://vmgump.apache.org/gump/public/ivy/ivy-tests/gump_file/TEST-org.apache.ivy.ant.IvyDeliverTest.xml.html
>
>
> --- Nested Exception ---
> The following error occurred while executing this line:
> jar:file:/srv/gump/public/workspace/ant/dist/lib/ant.jar!/org/apache/tools/ant/antlib.xml:37:
> Problem: failed to create task or type componentdef
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations
> have taken place.
>
>     at org.apache.ivy.ant.IvyDeliver.loadDeliveryList(IvyDeliver.java:411)
>     at org.apache.ivy.ant.IvyDeliver.doExecute(IvyDeliver.java:381)
>     at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:281)
>     at org.apache.ivy.ant.IvyDeliverTest.testSimple(IvyDeliverTest.java:97)
> Caused by: 
> jar:file:/srv/gump/public/workspace/ant/dist/lib/ant.jar!/org/apache/tools/ant/antlib.xml:37:
> Problem: failed to create task or type componentdef
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations
> have taken place.
>
>
>
> Gilles
>
>
> 2007/8/25, Gump Integration Build <[EMAIL PROTECTED]>:
> > To whom it may engage...
> >
> > This is an automated request, but not an unsolicited one. For
> > more information please visit http://gump.apache.org/nagged.html,
> > and/or contact the folk at [EMAIL PROTECTED]
> >
> > Project ivy-tests has an issue affecting its community integration.
> > This issue affects 1 projects,
> >  and has been outstanding for 9 runs.
> > The current state of this project is 'Failed', with reason 'Build Failed'.
> > For reference only, the following projects are affected by this:
> >     - ivy-tests :  Ivy is a tool for managing (recording, tracking, 
> > resolving a...
> >
> >
> > Full details are available at:
> >     http://vmgump.apache.org/gump/public/ivy/ivy-tests/index.html
> >
> > That said, some information snippets are provided here.
> >
> > The following annotations (debug/informational/warning/error messages) were 
> > provided:
> >  -INFO- Failed with reason build failed
> >  -INFO- Project Reports in: /srv/gump/public/workspace/ivy/build/test-report
> >
> >
> >
> > The following work was performed:
> > http://vmgump.apache.org/gump/public/ivy/ivy-tests/gump_work/build_ivy_ivy-tests.html
> > Work Name: build_ivy_ivy-tests (Type: Build)
> > Work ended in a state of : Failed
> > Elapsed: 2 mins 8 secs
> > Command Line: /usr/lib/jvm/java-1.5.0-sun/bin/java -Djava.awt.headless=true 
> > -Xbootclasspath/p:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar
> >  org.apache.tools.ant.Main 
> > -Dgump.merge=/srv/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only 
> > -Doffline=true -Dno.resolve=true test
> > [Working Directory: /srv/gump/public/workspace/ivy]
> > CLASSPATH:
>  
> /usr/lib/jvm/java-1.5.0-sun/lib/tools.jar:/srv/gump/public/workspace/ivy/build/test:/srv/gump/public/workspace/ivy/build/artifact/ivy-25082007.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-trax.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/packages/junit3.8.1/junit.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/httpcomponents/oac.hc3x/dist/commons-httpclient.jar:/srv/gump/public/workspace/apache-commons/codec/dist/commons-codec-25082007.jar:/srv/gump/public/workspace/commons-cli-1.0.x/target/commons-cli-25082007.jar:/srv/gump/public/workspace/jakarta-oro/jaka
> rta-oro-250
>  82
> >
>  
> 007.jar:/srv/gump/public/workspace/apache-commons/vfs/target/commons-vfs-25082007.jar:/srv/gump/public/workspace/apache-commons/vfs/sandbox/target/commons-vfs-sandbox-25082007.jar:/srv/gump/public/workspace/jakarta-slide/webdavclient/dist/lib/jakarta-slide-webdavlib-25082007.jar:/srv/gump/packages/jsch/jsch-0.1.28.jar:/srv/gump/public/workspace/junit/dist/junit-25082007.jar:/srv/gump/public/workspace/apache-commons/lang/commons-lang-25082007.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-25082007.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-api-25082007.jar:/srv/gump/public/workspace/apache-commons/collections/build/commons-collections-25082007.jar:/srv/gump/public/workspace/commons-sandbox/compress/target/commons-compress-25082007.jar:/srv/gump/public/workspace/apache-commons/net/dist/commons-net-25082007.jar:/srv/g
> ump/public/workspace/
>  ht
> >  
> > tpcomponents/2.0.2/commons-httpclient-2.0.2.jar:/srv/gump/packages/jcifs/jcifs-0.8.1.jar
> > ---------------------------------------------
> >     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,649 sec
> >     [junit] Running 
> > org.apache.ivy.plugins.conflict.StrictConflictManagerTest
> >     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,776 sec
> >     [junit] Running org.apache.ivy.plugins.latest.LatestRevisionStrategyTest
> >     [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,604 sec
> >     [junit] Running 
> > org.apache.ivy.plugins.namespace.MRIDTransformationRuleTest
> >     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,502 sec
> >     [junit] Running 
> > org.apache.ivy.plugins.parser.ModuleDescriptorParserRegistryTest
> >     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,503 sec
> >     [junit] Running 
> > org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParserTest
> >     [junit] Tests run: 20, Failures: 0, Errors: 0, Time elapsed: 0,837 sec
> >     [junit] Running 
> > org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParserTest
> >     [junit] Tests run: 28, Failures: 0, Errors: 0, Time elapsed: 1,386 sec
> >     [junit] Running 
> > org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriterTest
> >     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,901 sec
> >     [junit] Running org.apache.ivy.plugins.parser.xml.XmlModuleUpdaterTest
> >     [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 1,064 sec
> >     [junit] Running org.apache.ivy.plugins.report.XmlReportOutputterTest
> >     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,506 sec
> >     [junit] Running org.apache.ivy.plugins.report.XmlReportParserTest
> >     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,419 sec
> >     [junit] Running org.apache.ivy.plugins.repository.vfs.VfsRepositoryTest
> >     [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 1,026 sec
> >     [junit] Running org.apache.ivy.plugins.repository.vfs.VfsResourceTest
> >     [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,889 sec
> >     [junit] Running org.apache.ivy.plugins.resolver.ChainResolverTest
> >     [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 1,191 sec
> >     [junit] Running org.apache.ivy.plugins.resolver.DualResolverTest
> >     [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,583 sec
> >     [junit] Running org.apache.ivy.plugins.resolver.FileSystemResolverTest
> >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 1,909 sec
> >     [junit] Running org.apache.ivy.plugins.resolver.VfsResolverTest
> >     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,209 sec
> >     [junit] Running org.apache.ivy.plugins.version.VersionRangeMatcherTest
> >     [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 1,081 sec
> >     [junit] Running org.apache.ivy.util.ConfiguratorTest
> >     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 0,202 sec
> >     [junit] Running org.apache.ivy.util.IvyPatternHelperTest
> >     [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,244 sec
> >     [junit] Running org.apache.ivy.util.StringUtilsTest
> >     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,146 sec
> >     [junit] Running org.apache.ivy.util.url.ApacheURLListerTest
> >     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,306 sec
> >
> > test:
> >
> > BUILD FAILED
> > /srv/gump/public/workspace/ivy/build.xml:412: At least one test has failed. 
> > See logs (in /srv/gump/public/workspace/ivy/build/test-report) for details 
> > (use the target test-report to run the test with a report)
> >
> > Total time: 2 minutes 7 seconds
> > ---------------------------------------------
> >
> > To subscribe to this information via syndicated feeds:
> > - RSS: http://vmgump.apache.org/gump/public/ivy/ivy-tests/rss.xml
> > - Atom: http://vmgump.apache.org/gump/public/ivy/ivy-tests/atom.xml
> >
> > ============================== Gump Tracking Only ===
> > Produced by Gump version 2.3.
> > Gump Run 23000025082007, vmgump:vmgump-public:23000025082007
> > Gump E-mail Identifier (unique within run) #40.
> >
> > --
> > Apache Gump
> > http://gump.apache.org/ [Instance: vmgump]
> >
>
>
> --
> Gilles SCOKART
>
>
>
>
>
>
> ____________________________________________________________________________________
> Looking for a deal? Find great prices on flights and hotels with Yahoo! 
> FareChase.
> http://farechase.yahoo.com/
>

Reply via email to