04-22-2010 03:33 AM
I am testing the widget SDK Plugin for Eclipse (3.5).
Every now and then I get the following message, when I try to build a widget:
Invalid widget archive - resource name is not valid(.tmp_index.html.some_random_number~)
I did not create this file - it seems that the plugin creates this for some (but which) reason and then cannot read it, because it contains unsupported characters. This is strange, because I'd think that the plugin should only create those files it can read, shouldn't it?
Is there some way to prevent this? Where does it come from?
I can repair it by deleting the file and restarting the build...
Solved! Go to Solution.
06-29-2010 03:25 AM
As you rightly pointed out about unsupported special characters, you need to remove the underscores, hyphens etc. like special characters used in the project filenames and recompile the project. Then you will get rid of the error "Invalid Widget Archive - Archive not supported".
Though its strange for BB development environment to not to allow the special characters, its truely is the case. It resolved my problem.
06-29-2010 03:35 AM
I think that this is strange, too.
Happy, it works for you
06-29-2010 05:00 PM
Actually, underscores are ok, but dashes are not. Also if hese files are not meant to be part of the plugin, you should exclude them by editing the .settings/net.rim.browser.tools.debug.widget.prefs
For example I had to manually exclude the .git and .gitignore files from the plugin, because these wouldn't compile (and why would I want to have a 20Mb .git folder to my widget distribution?)
02-04-2011 10:33 AM
Does anyone know how to exclude .svn folders? Looks like none of the below variations work:
This is for the WebWork version of Eclipse (Helios)