Hello,
I met a problem, when using the 'run' and 'backcopy' targets.

My understanding of the 'backcopy' target is, that it should
assist me in some kind of round-trip, when editing the
xdocs in the webapp directory. I.e. after succesful editing and
online viewing, its possible to copy back the EDITED files in
my source tree.

The current implementation of the forrest.build.xml does NOT
preserve the timestamps when performing the two stage copy process

${project.xdocs-dir} to ${project.ctxt-dir}/content/xdocs  [copy-xdocs]
${project.ctxt-dir} to ${project.webapp}                   [webapp]

A following 'backcopy' then copies back ALL xdocs, because they are
always newer than the src.

I changed

   <target name="copy-xdocs" if="xdocs.present">
     <copy toDir="${project.ctxt-dir}/content/xdocs" filtering="false">
       <fileset dir="${project.xdocs-dir}"/>
     </copy>
   </target>

to

   <target name="copy-xdocs" if="xdocs.present">
     <copy toDir="${project.ctxt-dir}/content/xdocs" filtering="false"
preservelastmodified="true">
       <fileset dir="${project.xdocs-dir}"/>
     </copy>
   </target>


and

   <target name="webapp" ... >
     ...
     <copy todir="${project.webapp}">
       <fileset dir="${project.ctxt-dir}" >
         <exclude name="*.xconf" /> <!-- CLI wants them there, webapp finds them in WEB-INF -->
       </fileset>
     </copy>
     ...
   </target>

to


   <target name="webapp" ...>
     ...
     <copy todir="${project.webapp}" preservelastmodified="true">
       <fileset dir="${project.ctxt-dir}" >
         <exclude name="*.xconf" /> <!-- CLI wants them there, webapp finds them in WEB-INF -->
       </fileset>
     </copy>
     ...
   </target>


Then it works as I expected it.

Is my understanding correct or did I miss something?

--- Schorsch

P.S.: Thanks to the forrest people for this nice framework!