• 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

Using ANT to get a ZIP of changed folders

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having a bear of a time figuring out how to get this seemingly simple task to work.
Given a production server folder and a development server folder we need a zipfile of all the folders from the development server that have new or added files when compared against the production folder. Bascially we need to deploy the entire folder contents for any new or modified cfm page.

I am thinking that a creative use of dirset,sync, move or some other task can get this but I am missing something.

Whoops my display name does not adhere to the policies. will fix
thanks

[ December 08, 2004: Message edited by: tfrieling ]

[ December 08, 2004: Message edited by: Tyler Frieling ]
[ December 08, 2004: Message edited by: Tyler Frieling ]
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A fileset with a different-selector should work, as far as I can tell: http://ant.apache.org/manual/CoreTypes/selectors.html#differentselect
 
Tyler Frieling
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes that is what I thought but it only returns different files and folders not the contents of the folders that have changed.
Given this folder structure
Folder1
|---NewFile1
|---Unchanged0
Folder2
|---Unchanged1
|---Unchanged2

I need a zip looking like:
Folder1
|--NewFile1
|--Unchanged0

A <zip task>
<file set><different selector></file set>
</zip>

Gives just:
Folder1
|--NewFile1

[ December 08, 2004: Message edited by: Tyler Frieling ]
[ December 08, 2004: Message edited by: Tyler Frieling ]
reply
    Bookmark Topic Watch Topic
  • New Topic