03-31-2012 05:33 AM
Hi,
For my PlayBook application I'm adding an external folder with assets in Eclipse bar-descriptor.xml
The problem is that this folder is under source control so files and folders such as .svn get included in the final bar file.
Is there a way to filter these out?
I would rather not have to manually delete them...
04-02-2012 01:04 PM - edited 04-02-2012 01:28 PM
There isn't a way to filter by file type when importing into the bar-descriptor.xml, but you can modify the bar-descriptor.xml to filter out files or directories when building.
If you add the folder c:\MyApp\Assets to your bar-descriptor.xml file and open its source you'll see something like this:
<asset path="C:/Users/msohm/Downloads/Assets">Assets</asset>
You can modify this to exclude certain files or directories. Wild cards are also supported. The example below is modified to filter out all files with a txt extension.
<asset path="C:/MyApp/Assets">Assets
<exclude name="*.txt"></exclude>
</asset>
You can read more about this here.