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"
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.
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.
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.