Replacing a java file using apt

Is there any way with apt to replace a java file, instead of creating a new one?
[87 byte] By [timmccunea] at [2007-10-2 6:37:29]
# 1

Not really.

But you should understand the distinction between "source" files and derived files.

"Source" files are the ones you create / edit and which are not derived (by compiling or code generation, or running an XSLT on some data from somewhere). They are the "source" (as in the source of the Nile), you can't create them from other files.

Derived files is everything that is derived from the Source files.

Java language Source Code is normally "source" but when it is generated by APT it is derived. (as is the java source code generated by the JSP compiler etc).

So when you say replace a java file with another, are you talking about a source or derived for the replacee and replacer?

If the replacer is from APT then it is derived .

If derived is replacing source - don't go there, infact it is probably a contradiction, or you don't understand, or your process is bust.

If derived is replacing derived that's OK, and APT will let you provided you have your paths set up in a sensible fashion, but you can only do it once per run of APT (per file).

What are you wanting to do? There may be alternative's to overwriting an existing file.

Bruce

brucechapmana at 2007-7-16 13:45:28 > top of Java-index,Core,Core APIs...