forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li, Don" <Don...@va.gov>
Subject Exception to "forrest clean"
Date Fri, 19 Jan 2007 21:23:26 GMT
I'm wondering if cocoon or ant supports a command like "keep", to keep a
directory and its associated files created by another app during
"forrest clean" process.

 

<!-- Please note, I'm using the "clean" subset command, "clean-site" for
demo and clarity sake  -->

<!--  as is -->

<target name="clean-site" depends="init-props"

      description="* Clean the project generated documents directory">

    <delete failonerror="false" dir="${project.site-dir}"/>

    <delete failonerror="false" file="${project.brokenlinkfile}"/>

 </target>

 

<!--  to be or desirable state --> 

<target name="clean-site" depends="init-props"

      description="* Clean the project generated documents directory">

    <delete failonerror="false" dir="${project.site-dir}"/>

    <delete failonerror="false" file="${project.brokenlinkfile}"/>

   <!-- NEW -- >  

    <keep failonerror="false" dir="${project.site-keep-dir}"/>

 

  <!-- project.site-keep-dir is defined elsewhere in this xml file -->  

 </target>

 

Is this approach doable?  What needs to happen at ant side or ?

 

TIA.

 

Don Li

Department of Veterans Affairs / SRA International, Inc. 

202-208-2785

 

 


Mime
View raw message