Flash Builder Preview Launch Configurations for BlackBerry Tablet OS sdk
Want to us Flash Builder Preview with BlackBerry Tablet OS sdk? I have created some Eclipse Launch Configurations that you can import into your Flash Builder Burrito preview to make the process easier. The basic idea is to have the external tools call out to the same process as calling out to the command line Tablet OS sdk’s package and deploy.
First grab the Win or Mac version of the launch configuration file (or follow the steps below). The following steps will create launch configuration files for both the packaging and the deploying of .bar files:
Open up a text editor and create a new file called Package And Deploy.launch.
• Add the following text for Windows:
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
</listAttribute>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\blackberry-tablet-sdk-0.9.0\bin\blackberry-airpackager.bat"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="-package ${project_name}.bar -installApp -launchApp ${project_name}-app.xml ${project_name}.swf -device XXX.XXX.XXX.XXX"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${project_loc}/bin-debug"/>
</launchConfiguration>
• Add the following text for Mac:
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
</listAttribute>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/Applications/Adobe Flash Builder 4/sdks/blackberry-tablet-sdk-0.9.0/bin/blackberry-airpackager"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="-package ${project_name}.bar -installApp -launchApp ${project_name}-app.xml ${project_name}.swf -device XXX.XXX.XXX.XXX"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${project_loc}/bin-debug"/>
</launchConfiguration>
• Change the XXX.XXX.XXX.XXX text inside the Package And Deploy.launch to the ip address of the simulator.
Save the Package And Deploy.launch file in a folder and make note of the folder location.
Then in Flash Builder 4 follow these steps:
• File -> Import… -> Other… -> Run/Debug -> Launch Configurations click the Next button.
• Click on the Browse… button and navigate to the folder that the Package And Deploy.launch file is located.
• Click on this folder in the left panel (not the checkbox but the folder name). You should see the Package And Deploy.launch files appear in the right panel.
• Check both the Package And Deploy.launch options and click the Finish button.
This puts both the Package And Deploy launch configuration option into your External Tools favorites. In Flash Builder Burrito preview this will look like this:
Pingback: @renaun posts: Building Flex Mobile applications with Flash Builder Burrito Preview and BlackBerry Tablet OS SDK
Pingback: @renaun posts: Flash Builder Burrito Launch Configurations for PlayBook (package, deploy, debug, & uninstall)