ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <>
Subject [jira] Commented: (IVYDE-257) Trying to override old definition of task buildnumber
Date Tue, 14 Sep 2010 13:45:53 GMT


Nicolas Lalevée commented on IVYDE-257:

About the details of the Ivy and IvyDE plugins:
* there are two "features" : Apache Ivy and Apache IvyDE, the one you see in the updatesite
* there are 3 plugins : org.apache.ivy, org.apache.ivyde.eclipse, and org.apache.ivy.eclipse.ant

org.apache.ivy is actually the same jar you put into ant. So in Eclipse it is just a standard
org.apache.ivyde.eclipse is all the ui part and integration into Eclipse
org.apache.ivy.eclipse.ant is the repackaging of the ivy jar so Eclipse can include Ivy into
the set of available Ant tasks within Eclipse itself. You can see it in the "Contributed Entries"
of "Ant"/"Runtime"/"Classpath" preference panel.

Do you have a customized your Ant home in Eclipse ? Do you happen to have the Ivy jar already
in ANT_HOME\lib ?

> Trying to override old definition of task buildnumber
> -----------------------------------------------------
>                 Key: IVYDE-257
>                 URL:
>             Project: IvyDE
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Eclipse 3.5SR2 (Ant 1.7.1) - JDK 1.6u2 + "Apache Ivy" bundle (
[2.0.0, 2.1.0, 2.2.0.cr1]
>            Reporter: Arnauld Van Muysewinkel
> I create an empty project.
> The only file I have is build.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="Test" default="test">
>   <target name="test" description="Test">
>     <buildnumber file="test_number.txt"/>
>   </target>
> </project>
> I start the ant build from Eclipse and get the following output:
> <<
> Buildfile: (...)\build.xml
> Trying to override old definition of task buildnumber
> test:
> (...)\build.xml:5: buildnumber doesn't support the "file" attribute
> >>
> It seems that the standard ant task "buildnumber" has been overrridden by Ivy.
> Given my build file, it shouldn't even try to load ivy tasks!
> I also tried to force load Ivy tasks with a prefix (adding  xmlns:ivy="antlib:org.apache.ivy.ant"
to the project definition), but to no avail.
> Note that if I start the ant build from the command line, everything is fine:
> <<
> >ant -lib (...)\eclipse-3.5\plugins\org.apache.ivy.eclipse.ant_2.2.0.cr1_20100629224905.jar
> [-lib (...)\eclipse-3.5\plugins\org.apache.ivy.eclipse.ant_2.2.0.cr1_20100629224905.jar]
> [-lib (...)\eclipse-3.5\plugins\org.apache.ivy.eclipse.ant_2.2.0.cr1_20100629224905.jar
> Buildfile: build.xml
> test:
> Total time: 0 seconds
> >ls
> build.xml  test_number.txt
> >cat test_number.txt
> #Build Number for ANT. Do not edit!
> #Tue Sep 14 14:36:15 CEST 2010
> build.number=2
> >>

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message