DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Zip Directories with/without Root Directory


Under directory docs there is a build.xml and a "tmp" subdir like this:

tmp

|-- aaa

`-- newdir

`-- bbb

If you want create a zip file with tmp as the root folder, you should write build.xml like this:

<?xml version="1.0" encoding="UTF-8"?>

If you only want zip all contents under tmp (without root folder tmp), you should modify build.xml like this:

<?xml version="1.0" encoding="UTF-8"?>



Published

Jul 19, 2013

Last Updated

Jul 19, 2013

Category

Tech

Tags

  • Ant 21
  • zip 5

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor