On Mon, 22 Nov 2010 09:47:13 -0500, John B. Matthews wrote:
> In article <icc6mr$ssa$>,
> Martin Gregorie <> wrote:
>
>> On Wed, 17 Nov 2010 23:07:38 +0000, Martin Gregorie wrote:
>>
>> > Tomorrow I'll apply the same set-up to my home server, which is
>> > actually my main development system and runs Fedora 13, and see what
>> > happens. At least I know its safe in that Java programs still compile
>> > and run successfully despite the spurious warning messages. If its
>> > still present there, I'll upgrade both computers to ant 1.8.1 and, if
>> > that doesn't get rid of the warnings, I think it may be time to raise
>> > a bug with the good folks at ASF.
>> >
>> Done, but it took a bit of fiddling.
>>
>> I ended up installing ant 1.8.1 and adding the 'includeAntRuntime'
>> attribute, which is now mandatory, to all javac tasks. This has
>> mitigated the problem but not caused it to vanish entirely: there are
>> now only one or two projects that show the warning about not finding
>> spurious jar files and only one warning per affected javac task.
>
> Any chance they use(d) something that depends on Xstream, such as
> Launch4J?
>
No, I don't use that.
> Also, you might use your package manager to examine the
> dependencies for ant: `yum deplist ant`, IIRC.
>
That's not relevant. Fedora installs OpenJava, but I'm using Sun Java. It
and all its support stuff (extra packages, ant) are installed outside the
package system and the usual directories: they are all in /home/java.
/usr/java is a symlink pointing at /home/java. I use this set-up because
this lets my Java environment survive a clean Linux install. I don't
reformat the /home partition and so, by reinserting the symlink and
dropping java.sh into /etc/profile.d Java is instantly available and
working. java.sh is run during login to set up the Java environment
variables and add the Java and ant binary directories to PATH.
In any case the Fedora 12 ant package is 1.7.1 while I'm now running
1.8.1.
But, as I say, these warnings would seem to be spurious because the
compiles all finish without errors and the programs run correctly,
regardless of whether they are run using class files in the development
directory or from the jar file containing them.
I've even tried deleting .cache and .ccache in the development
directories without effect.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
|