Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

is it a bug or somethingelse?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

all files and subdirectories under the 'build' directory are deleted but in the 'src' directory files are deleted but subdirectories structure remains the same without any files...I did not be allowed to add topic with normal code segmet that's why I written as above sorry...

Any suggestion?
Thnx

target
delete includeemtydirs=true
fileset dir=build includes=**/*
fileset dir=src includes=**/*
delete
target
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its not a bug, filesets are behaving as documented. Just specify the directory in your fileset if you want to delete the directory, not the file pattern. e.g.:
 
Ayse Muge
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanna delete all files and subdirectories under the src and build directories.

In build directory it works(all files and subdirectories are deleted) but in src directory just files are deleted under the subdirectories. Subdirectory structure are not deleted.

My question is that why delete task works for build not the src directory?
 
Evacuate the building! Here, take this tiny ad with you:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic