Notifying java resources of new class files [message #242536] |
Fri, 06 April 2007 12:14 |
Eclipse User |
|
|
|
Originally posted by: dslotman.ptc.com
My question is about how to trick the Java resource tree into refreshing its
mapping to output files.
We've customized Java ResourceBundles, so Eclipse doesn't recognize the file
extension, but they still compile down to .class files. These bundles are
referenced in Java source, causing "compile errors" in Eclipse's Java
Builder. I've created an Incremental Builder that compiles these files as
Eclipse finds them or as they are changed, but the Java source doesn't
notice that the .class files have been pushed into the file system. If I
clean out the old class files, then Eclipse notices the new class files, but
that isn't really a good solution.
All the research that I've done so far have addressed refreshing resources
on the source side of things, using solutions like:
project.refreshLocal(IResource.DEPTH_INFINITE, null);
That doesn't work since the whole problem is that the project is looking at
the source, but doesn't look at the output. Right now I'm looking at
creating "fake" ICompilationUnit instances for each of the bundles to get
them into the source side of the resource tree, but I thought I'd query here
in parallel.
Thanks,
Dan
|
|
|
Powered by
FUDForum. Page generated in 0.04276 seconds