Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » auto generated file
auto generated file [message #118620] Mon, 21 November 2005 12:58 Go to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Dear all,

I'm extending existing code to build a new application. This legacy
code - which I cannot change - constructs and writes a java class to a
file, compiles it with javac, and then subsequently uses that code. The
destination and compilation directory can be chosen arbitrarily.

My question now is: What is the best way to make that file/this
mechanism known to eclipse?

By now, the file is generated and compiled in an external directory.
This directory is added to the class path under User Entries as
Advanced / External Folder. So basically, eclipse does not know that
file as it changes with every run.

Is there any way to refer to that file as part of the project, i.e.,
internally?

Regards,

Uli
Re: auto generated file [message #118763 is a reply to message #118620] Mon, 21 November 2005 19:28 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

user@domain.invalid wrote:
> Dear all,
>
> I'm extending existing code to build a new application. This legacy
> code - which I cannot change - constructs and writes a java class to a
> file, compiles it with javac, and then subsequently uses that code. The
> destination and compilation directory can be chosen arbitrarily.
>
> My question now is: What is the best way to make that file/this
> mechanism known to eclipse?
>
> By now, the file is generated and compiled in an external directory.
> This directory is added to the class path under User Entries as
> Advanced / External Folder. So basically, eclipse does not know that
> file as it changes with every run.

One option would be to define your own Builder for the project (Project
Properties > Builders). Have it invoke an Ant script that does nothing,
but in that configuration you can specify that Eclipse refresh all or
part of the project directories, which will trigger it to recognize the
changed generated file internally.

HTH,
Eric
Previous Topic:Job can run in background - option
Next Topic:Which Language Pack?
Goto Forum:
  


Current Time: Sun Sep 01 00:59:46 GMT 2024

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

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

Back to the top