populate distributionFileList at runtime


1 comment

  • Avatar

    You could either run an external script that copies the files from the list to a folder, and then pack the contents of that folder, or you could do this as a preBuild action. For example:

             <readFile name="whiteList" path="${build_project_directory}/whitelist.txt"/>
             <foreach variables="file" values="${whitelist}">
                   <copyFile destination="${build_project_directory}/whiteListed" origin="assets/${file}">
                           <fileTest path="assets/${file}" condition="exists"/>

    And then pack the folder's contents:

    Comment actions Permalink

Please sign in to leave a comment.