annoying eclipse automatisms (resource copying)

J

Justin Kaeser

I really like Eclipse as Java editing platform, but now I want to do
the following:

I have a directory with not only self-written Java sources but also
some non-Java source files (namely parser/lexer constructed in
CUP/JLex). From this, I generate Java sources which land in the same
directory. Now when I build this directory from Eclipse it persists in
copying my non-Java sources to the output directory. While this
doesn't exactly cause any malfunction, it does disturb my cleanly
nature ;)

What options would you suggest to keep the structure clean? I think
setting up yet another directory for the CUP/JLex sources would be
rather impractical.

Thanks,
Justin
 
J

Jon Skeet

Justin Kaeser said:
I really like Eclipse as Java editing platform, but now I want to do
the following:

I have a directory with not only self-written Java sources but also
some non-Java source files (namely parser/lexer constructed in
CUP/JLex). From this, I generate Java sources which land in the same
directory. Now when I build this directory from Eclipse it persists in
copying my non-Java sources to the output directory. While this
doesn't exactly cause any malfunction, it does disturb my cleanly
nature ;)

What options would you suggest to keep the structure clean? I think
setting up yet another directory for the CUP/JLex sources would be
rather impractical.

Add the file extensions for the CUP/JLex sources to the resources not
to be copied, under Java settings, compiler, build path, "filtered
resources".
 
J

Justin Kaeser

Add the file extensions for the CUP/JLex sources to the resources not
to be copied, under Java settings, compiler, build path, "filtered
resources".

Oh hey, that was painless. Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top