• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Excluding a folder in a build file

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to make my builds complete faster. We have one folder on a number of projects that never changes, but is tremendously large. I want to exclude that folder "Workarea". Here is how I do it now:

<delete dir="${DeployLocation}" verbose="true" if="${directory::exists(DeployLocation)}" />
<mkdir dir="${DeployLocation}"/>
<copy todir="${DeployLocation}" flatten="True">
<fileset>
<include name="${ZipFileName}"/>
</fileset>
</copy>
<unzip zipfile="${DeployLocation}/${ZipFileName}" todir="${DeployLocation}"/>
<delete file="${DeployLocation}/${ZipFileName}" verbose="true"/>
<delete file="${ZipFileName}" verbose="true" if="${file::exists(ZipFileName)}"/>

This deletes the entire directory then recreates it, copies the zip file with everything, unzips the file and deletes the zip file. I am going to exclude the "Workarea" folder from the zip file and want to leave it there. This way my builds will complete in 10 minutes rather than 30 minutes. I am just not sure how to change the first line of the code to delete everything other than the workarea folder.

Please help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic