On Wed, 12 Dec 2001, Dmitri Colebatch wrote:

> > Shouldn't it check if the timestamp has *changed*?  What happens when a file
> > is restored from backup?  Any generated files that are built from this
> > modified file should be rebuilt.
>
> but the generated timestamp cant be assumed to be the same as the source
> timestamp, which means that xdoclet would need to map the
> source timestamp
> to generated file(s) timestamp(s) and store this info.

jdk1.1 did not support setting timestamps of files.  jdk1.2 and higher do
support that.

However, it brings up another interesting point.  When one output file is
built from several input files, which timestamp should be used to set the
output file?

We(brainfood, the company I worked for) had written several years ago a web
templating engine(like jsp, before jsp existed).  I solved this problem by
creating a .cache file(that resided alongside the .class and .java file) that
stored the timestamps of all the input source files.  This way, it would work
on jdk1.1, as I could just to a simple != compare.

> it is a valid problem, but nothing that an "ant clean main" wouldn't
> fix... and if its a case of restoring from backup, then I wouldn't see
> that as an issue.

But, if the development server is deploying out of the ant build directory,
then this clean would undeploy stuff on the server, and this may cause
problems.

Of course, this won't be the case for a live server.


> ps - took this off list, as not really a jboss thing, but appreciate the
> point.

Yes, of course.

----BEGIN GEEK CODE BLOCK----
Version: 3.12
GCS d- s: a-- c+++ UL++++ P+ L++++ !E W+ M o+ K- W--- !O M- !V PS--
PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z?
-----END GEEK CODE BLOCK-----
----BEGIN PGP INFO----
Adam Heath <[EMAIL PROTECTED]>        Finger Print | KeyID
67 01 42 93 CA 37 FB 1E    63 C9 80 1D 08 CF 84 0A | DE656B05 PGP
AD46 C888 F587 F8A3 A6DA  3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG
-----END PGP INFO-----


_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to