auto generated file [message #118620] |
Mon, 21 November 2005 12:58 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.08398 seconds