Hi Ray
This happens to me from time to time and I suspect it's caused by
Xcode (or the OS X filing system) being a little too tardy in saving
modified files.
I suggest that you add some lines to the compile section of build.xml
(it's an <exec> and <sleep>)
<target name="compile" depends="init" description="Compile code">
<exec executable="osascript">
<arg value="-e" />
<arg value="tell application "Xcode" to save (every source
document whose modified is true)" />
</exec>
<sleep seconds="1"/>
<mkdir dir="${bin}"/>
<javac deprecation="on" srcdir="${src}" destdir="${bin}"
etc.
</javac>
</target>
These will force Xcode to save every modified file and then will pause
for a second before starting the build, to give time for all the files
to be saved.
HTH
Bob
--
On 30 Jul 2009, at 17:43, Ray Sanders wrote:
Hello all,
I have a rather large (to me) java project that I've been working on
for a few years. Lately, the xcode java environment is generating
spurious errors which are not real. Whatever is causing the problem,
it can be reset by doing a Clean/Build. After I do that, I get 1 - 10
normal builds, before the problem reappears, and I have to revert to
Clean/Build.
target of build is a java application
environment:
Version 3.1.2 (Xcode IDE: 1149.0, Xcode Core: 1148.0, ToolSupport:
1102.0)
Mac OS X 10.5.6
MacBook 2.4 C2D, 4GB ram, ~90 GB free HD space, no VMware/BootCamp,
lots of free ram.
project:
~200 physical project files (.java and .properties)
~500 class definitions
~58k lines of java code
This problem has only occurred in the last month or so, and seems to
be getting more frequent (not to mention frustrating). The spurious
errors are all (AFAICT) "Cannot find symbol".
Anyone have any ideas or thoughts on how to resolve this ?
TIA, Ray Sanders
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (Java-dev@xxxxxxxxxxxxxxx)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/bob.lang%40uwe.ac.uk
This email sent to bob.lang@xxxxxxxxx
This incoming email to UWE has been independently scanned for
viruses by McAfee anti-virus software and none were detected
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (Java-dev@xxxxxxxxxxxxxxx)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/maillists%40codeha.us
This email sent to maillists@xxxxxxxxx