[FlashCodersNY] Build Properties in Flex Builder
Tim Beynart
timbeynart at gmail.com
Fri Jun 5 13:35:10 PDT 2009
We have ant set up already to run builds, create swcs, etc. However, it
would still be nice to have a Flex Builder debugging launcher set up ready
to go that anyone can use when they checkout the project.
The Flex Builder project properties dialog for debugging allows you to input
locations for the deployment diretories and server, but I can't figure out
if you can use a ${property} kind of thing in there.
You can save launch configurations from Eclipse using the "Common" tab in
the launch configuration dialog, but the values that are stored end up local
to a user's machine (i.e. /Users/tim/workspace/MyProject).
I am trying to come up with a way to store a generic launch configuration(s)
for debugging that would run local files/servers according to a preference
file. Thing is, I can't figure out if Eclipse supports tokens in the launch
configurations.
Alternatively, if there is a way to launch a debugging session using ant,
that would rule.
On Fri, Jun 5, 2009 at 4:20 PM, Jonathan Stasiak
<jonathan at glassshadows.org>wrote:
> we're actually ironing out a deploy process of our own right now. You could
> always use SED or AWK to do those replacements -- now getting FB to run the
> script for you.... maybe ant?
>
>
>
> On Jun 5, 2009, at 4:17 PM, Tim Beynart wrote:
>
> crap spoke too soon... this guy just used tokens as a placeholder in his
> example.
> back to the hunt...
>
> On Fri, Jun 5, 2009 at 4:14 PM, Tim Beynart <timbeynart at gmail.com> wrote:
>
>> BOOYAH! This blog has what I need:
>> http://www.webappsolution.com/wordpress/tag/flex-builder/
>>
>>
>> On Fri, Jun 5, 2009 at 3:25 PM, Tim Beynart <timbeynart at gmail.com> wrote:
>>
>>> I was curious if I could define properties in a file and have Eclipse use
>>> them in the launch configuration. I'll post what I find.
>>> Thanks about the tip on resource bundles... I guess that works somewhat
>>> like conditional compilation values?
>>>
>>>
>>> On Fri, Jun 5, 2009 at 2:57 PM, Jonathan Stasiak <
>>> jonathan at glassshadows.org> wrote:
>>>
>>>> Like locales and resourceBundles? I've never see your example:
>>>>
>>>> Output Folder: ${localhost.path}/myAwesomeProject/
>>>> Output URL: ${localhost}/myAwesomeProject/Main.html
>>>>
>>>>
>>>> Output folder is respective to your project - ${DOCUMENTS} gets you to
>>>> the root of your workspace (ie to reference another Flash Builder project in
>>>> the workspace). Regarding the output url - I've only ever used:
>>>>
>>>> http://localhost:8888/somepath/Main.html
>>>>
>>>> [where my servlet container was running on port 8888]
>>>>
>>>> In order to use property files (ie a locale or resourceBundle), make
>>>> sure the property file (ie: "Error.properties") is on your build path (also
>>>> known as a library path in flex-config.xml).
>>>>
>>>> Then in mxml/AS, add [ResourceBundle("Error")] in <mx:Metadata>
>>>> (<fx:Metadata> in Gumbo) or above the class declaration (in AS) and
>>>> that should do it.
>>>>
>>>> HTH
>>>>
>>>>
>>>> --
>>>> Jonathan Stasiak
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Jun 5, 2009, at 11:38 AM, Tim Beynart wrote:
>>>>
>>>> Does anyone know how to use property files for build parameters in FB?
>>>> I need to do this in the Flex Build Path dialog:
>>>> Output Folder: ${localhost.path}/myAwesomeProject/
>>>> Output URL: ${localhost}/myAwesomeProject/Main.html
>>>>
>>>> Alternatively, I can use an Eclipse custom launch configuration... but I
>>>> still need to figure out how to use tokens there too.
>>>>
>>>> Thanks!
>>>> Tim
>>>>
>>>>
>>>> --
>>>> + Tim Beynart
>>>> + tim at timbeynart.com
>>>> + 706.372.6994
>>>> _______________________________________________
>>>> FlashCodersNY mailing list
>>>> FlashCodersNY at flashcodersny.org
>>>>
>>>> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> FlashCodersNY mailing list
>>>> FlashCodersNY at flashcodersny.org
>>>>
>>>> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>>>>
>>>>
>>>
>>>
>>> --
>>> + Tim Beynart
>>> + tim at timbeynart.com
>>> + 706.372.6994
>>>
>>
>>
>>
>> --
>> + Tim Beynart
>> + tim at timbeynart.com
>> + 706.372.6994
>>
>
>
>
> --
> + Tim Beynart
> + tim at timbeynart.com
> + 706.372.6994
> _______________________________________________
> FlashCodersNY mailing list
> FlashCodersNY at flashcodersny.org
>
> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>
>
>
> _______________________________________________
> FlashCodersNY mailing list
> FlashCodersNY at flashcodersny.org
>
> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>
>
--
+ Tim Beynart
+ tim at timbeynart.com
+ 706.372.6994
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.flashcodersny.org/pipermail/flashcodersny_flashcodersny.org/attachments/20090605/58dba5fe/attachment.html>
More information about the FlashCodersNY
mailing list