List Info

Thread: skin directory copied unconditionally to static site build




skin directory copied unconditionally to static site build
user name
2007-10-03 16:08:00
Forresters,

I noticed that when I rebuild my static site with Forrest
0.8, the
"skin" directory seems to be copied
unconditionally to the build/site/
directory.  This means that, because the local files have
been
rewritten and consequently have newer modification times
than the
remote files, skin/ is uploaded each time I use lftp's
reverse mirror
function to publish changes to my public Web site, even if
nothing in
the skin has changed.

Can the Ant target that copies the non-generated content to
build/site/ be changed to only copy files (including skin
files) if
the source file has changed?  Maybe rsync could be used to
copy
non-generated content?

Thanks,
Brolin

Re: skin directory copied unconditionally to static site build
country flaguser name
United Kingdom
2007-10-04 03:10:42
Brolin Empey wrote:
> Forresters,
> 
> I noticed that when I rebuild my static site with
Forrest 0.8, the
> "skin" directory seems to be copied
unconditionally to the build/site/
> directory.  This means that, because the local files
have been
> rewritten and consequently have newer modification
times than the
> remote files, skin/ is uploaded each time I use lftp's
reverse mirror
> function to publish changes to my public Web site, even
if nothing in
> the skin has changed.
> 
> Can the Ant target that copies the non-generated
content to
> build/site/ be changed to only copy files (including
skin files) if
> the source file has changed?  

I see no problem with that, but it would need testing
thoroughly. If you 
do this testing on your own site and provide a patch we'd be
happy to 
apply it.

without looking at our build file (forrest.build.xml) I
think the 
copying of resources is done by the Ant Copy command, see 
http
://ant.apache.org/manual/CoreTasks/copy.html

Ross



[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )