Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Intermittent Ant Problem: Followup
Intermittent Ant Problem: Followup [message #296679] Fri, 30 December 2005 00:27
Eclipse UserFriend
Originally posted by: no.offline.contact.please.nospam.com

This post is a followup to the thread entitled 'Intermittent Ant Problem:
Followup', which I initiated on Dec 21 2005 at 4:05 pm.

I have finally been able to isolate the error and even make it go away;
despite that success, I don't really understand _why_ the error is occurring
or if it is reasonable. I'd like to know so that I can file a bug report if
that is appropriate.

After some selective commenting of various targets and tasks, I finally
isolated the problem to a 'java' task in a target that occurs a few targets
prior to the 'input' task of my 'getserver' target. This is the target that
is causing the problem:

<target name="gen_other_docs" description="Generate HTML files, CSS, and PDF
version of resume.">

<javac srcdir="${resume.misc.src}" destdir="${resume.misc.bin}"
compiler="modern" fork="yes"
includes="ResumeGenerator.java"
verbose="no" debug="on" debuglevel="lines,vars,source" deprecation="yes"
description="Compile the GenerateFiles program.">
<classpath>
<pathelement path="${common.bin}"/>
<pathelement path="${iText.jar}"/>
</classpath>
<patternset refid="ps.resume.misc"/>
</javac>

<!-- The following 'java' task somehow keeps the 'input' task in the
'getservers' target from displaying its dialog if both targets are running
and fork is 'true'; if fork is 'false' or if the 'java' task within the
'gen_other_docs' target is commented, the 'getservers' target and its
'input' task works fine. -->
<java classname="ca.maximal.resume.misc.ResumeGenerator" fork="true"
description="Execute the ResumeGenerator program.">
<classpath>
<pathelement path="${common.bin}"/>
<pathelement path="${resume.bin}"/>
<pathelement path="${iText.jar}"/>
</classpath>
</java>

</target>

I am trying to understand if it is reasonable for the build to die in the
'input' task of the chronologically later 'getservers' target when fork is
set to 'true' in the 'java' task of the chronologically earlier
'gen_other_docs' target. If it is, could someone please explain why it is
reasonable? On the other hand, if it is not reasonable, please say so and I
will attempt to generate a bug report documenting this behaviour so that it
can be corrected in a future version of Ant and/or Eclipse.

I found this a very time-consuming problem to diagnose: there were no errors
or warnings anywhere in Ant or Eclipse and therefore no obvious reason to
suspect the eventual culprit as being the cause of the non-functional
'input' task. I don't know if it is realistic to detect this sort of
situation and give some kind of useful error or warning message to
developers but I would certainly have benefitted if such messages had been
generated. I'd like to see future developers spared this particular problem.

--
Rhino
Previous Topic:JFace TableViewer
Next Topic:Eclipse doens't refresh plugin registry after copying new plugins
Goto Forum:
  


Current Time: Wed Apr 24 19:08:15 GMT 2024

Powered by FUDForum. Page generated in 0.03338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top