Let's say I have a folder that contains various typs of files. Some of them are regular .java files that are to be compiled, others are in their own format and others are .java files that are not to be compiled (but I want them to appear in the /bin/ folder). I开发者_StackOverflow社区s it possible to accomplish that in Eclipse?
I've tried taking it out of the build path but them it won't appear in the output folder :(
The following screenshot depicts an example situation: I want Tests.java
, X.java
and Value.java
to be compiled to the output folder bin/creates_java_contracts_file
. In that same folder, I'll want to have rfn.rfn
, Value.spc
and X.spc
, plus ValueContractsClass.java
(uncompiled).
Another alternative is to either copy the files over to bin
yourself, or change the file extension from .java
to whatever you want (say, .njava
or .foo
).
I'm guessing you want to retain the .java
files for some specific reason?
UPDATE
- Exclude them from the build path, as you tried
- Manually copy the .java files to your output folder
This prevents the files from being compiled, and they will survive a "Clean..." build, by my testing, meaning they don't get deleted when Eclipse scrubs the output folder.
If you are using ANT, you can do a simple file copy.
精彩评论