Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22518 - Ant complains about "invalid implementation version between Ant core and Ant optional tasks."
Summary: Ant complains about "invalid implementation version between Ant core and Ant ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-09 16:35 UTC by Jon Chambers
Modified: 2003-08-14 21:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Chambers 2003-06-09 16:35:19 UTC
When I try to invoke ant with a certain buildfile, I get the following error:

$ ant -f evil_buildfile.xml
Invalid implementation version between Ant core and Ant optional tasks.
 core    : 1.5.1
 optional: 1.5.3

Reproducible: Always
Steps to Reproduce:
Invoke ant on a particular buildfile.  Ant should complaing before beginning the
build process.  Other buildfiles appear to work, and I suspect the "replace"
task in this particular file.

The (minimally edited) contents of that buildfile are:

<?xml version="1.0"?>

<project name="TextToProperties" default="main" basedir=".">
    <property name="project_base" location="/usr/www/html/project"/>

    <target name="build">
        <mkdir dir="build"/>
        <javac srcdir="source" destdir="build"/>
    </target>

    <target name="initTTPTask" depends="build">
        <taskdef name="textToPropertyFile"
classname="org.cs101.antTask.TextToPropertyFileTask" classpath="build"/>
    </target>

    <target name="propertyFile" depends="initTTPTask">
        <textToPropertyFile inputFile="footer.html"
outputFile="build/footer.prop" propertyName="@FOOTER@"/>
    </target>

    <target name="main" depends="propertyFile">
        <replace dir="${project_base}/????/??/??/ipij/"
replacefilterfile="build/footer.prop"/>
        <delete file="build/footer.prop"/>
    </target>
</project>

-----

TextToPropertyFile is my own task, which has been shown to work in other buildfiles.
Actual Results:  
Ant gives the following message before beginning the build process:

$ ant -f evil_buildfile.xml
Invalid implementation version between Ant core and Ant optional tasks.
 core    : 1.5.1
 optional: 1.5.3

Expected Results:  
Ant should have beaten things with the building stick.

I am running dev-java/ant-1.5.3-r4.

From emerge info:

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb:/opt/tomcat/conf:/usr/kde/3.1/share/config:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses
nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm
berkdb slang readline arts svga tcltk java X sdl gpm tcpd pam libwww ssl perl
python esd imlib oggvorbis qt kde motif opengl aalib acpi cdr dga dvd emacs
ethereal fbcon flash gd imap jikes ldap lirc mozilla mysql pcmcia plotutils pnp
postgres samba sse tetex tiff trusted usb wmf xinerama xml -3dnow -gnome -gtk"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Adrian Almenar 2003-08-08 17:34:32 UTC
Ant has been updated to -r5, can you please update it, and try again.? 
 
Also if you have any additional information would be great. 
 
Thanks. 
Comment 2 Jon Chambers 2003-08-08 22:25:24 UTC
I won't be able to recreate the exact environment I produced this error in until Monday, but preliminary results look good.  Ant reads the file and begins processing, getting all the way to the point of complaining about missing directories (which really are missing, since I'm just doing this in a temporary file), which is farther than I got before.

I'm certainly not an Ant expert, but it seems to me that if it's getting to the point of execution, it's clearing whatever version obstacle existed before.

I hope to submit final good news soon.
Comment 3 Adrian Almenar 2003-08-14 21:48:23 UTC
I will close this bug as fixed. If the problem persists, please reopen the 
bug. 
 
I think that in some way maybe you mixed some jars.