Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

ANT filesets

  • 09-09-2005 7:53am
    #1
    Closed Accounts Posts: 658 ✭✭✭


    Hi

    I have a directory containing about 7 subdirectories. One of these directories contains three files and the others all contain no files. I use ant to create a fileset that includes all these subdirectories, and then I use the ant tar task to tar them all up and gzip them for deployment. The problem I'm having is that the empty directories arent being included in the tar file. I have tried to put in <fileset dir="${directory_name}" includeemptydirs="false"> but that results in a build error, so my guess is that ant doesnt like that extra attribute. Is there any other way I can include empty directories. I have searched google with little luck. Thanks for your help.


Comments

  • Closed Accounts Posts: 25 dan_pretty_boy


    Hi Pontovic,

    Try the following

    <fileset dir="${project.root}">
    <include name="*"/>
    </fileset>

    danny


Advertisement