Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Notifying java resources of new class files
Notifying java resources of new class files [message #242536] Fri, 06 April 2007 12:14
Eclipse UserFriend
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
Previous Topic:I try to generate executable jar file from this Java open source program .
Next Topic:How do I change compilers so I can use javac?
Goto Forum:
  


Current Time: Mon Jul 14 07:55:10 EDT 2025

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

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

Back to the top