Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
asymmetryg
Posts: 12
Registered: ‎03-25-2012
My Device: none

NDK Assets folder filters

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...

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,689
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: NDK Assets folder filters

[ Edited ]

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.

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.