harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess" <mark.hind...@googlemail.com>
Subject Re: Copying resource files - what for?
Date Thu, 20 Apr 2006 09:34:58 GMT
On 4/20/06, Leo Simons <mail@leosimons.com> wrote:
> Hi gang,
>
> On Thu, Apr 20, 2006 at 11:14:56AM +0700, Stepan Mishura wrote:
> > Some time ago we agreed to copy resource files to classpath (i.e. bin/test
> > directory). I saw that you added corresponing targets to build files. But
> > now I realized that I don't understand why we should copy them instead of
> > simply adding resource directory (i.e. src/test/resources) to classpath. May
> > be there are simple reasons to do this that I don't know but anyway ... so
> > why we have to copy thousands of files (there is no doubt that in future we
> > will have thousands of resource files) each time we run tests?
>
> mostly unrelated, but another reason to do the <copy/> is that you get the
> benefit of Ant's filters and file munging when you need it (eg to replace
> @@VERSION@@ in a property file with for example the current SVN revision).
>
> I suspect that's why copying resource files became common practice years ago,
> and why ant's mechanism for doing copies is so blazingly efficient (really.
> Sometimes it beats rsync).

and sometimes it doesn't ...
  http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200604.mbox/%3cfcb9f9160604140221y63fb497foe52e273070fe16dc@mail.gmail.com%3e

;-)

-Mark.

--
Mark Hindess <mark.hindess@googlemail.com>
IBM Java Technology Centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message