Okay...
So the things I took from this email:
1) A single codebase in a central location is not the best idea.
We don't yet have subversion set up for Flex/AIR projects so this is
the only
way for us to easily share code and keep it up to date.
2) All paths should be abstracted into an external file for ease of
updating.
If path's change, changing the XML file is all that is required to
update
the entire app.
3) All files needed to run the actual application get stored in the actual
install folder.
By default this is C:\Program Files\<appname>, but the user can
select
any other location. Regardless of where the app is installed, AIR
has a single
variable which contains the system path to that folder.
Sound about right?
-----Original Message-----
From: Jeffry Houser [mailto:[EMAIL PROTECTED]
Sent: Friday, February 15, 2008 11:02 AM
To: Flex
Subject: Re: Relative file paths for AIR app dev
Andy Matthews wrote:
> Okay ...
>
> That doesn't appear to be working, but I think it's my fault for not
> explaining myself correctly.
>
> All of my dev files are located here (network drive):
>
> V:\wwwroot\FlexProjects\Faces\src
> Faces.db
> Faces.mxml
> etc.
>
> But the app will probably get installed here:
> C:\Program Files\Faces
>
> Is there some way for Flex to know that while I'm developing, when I
> say Faces.db I mean V:\wwwroot\FlexProjects\Faces\src\Faces.db
>
> but when the app is installed and running on a user's machine I mean:
> C:\Program Files\Faces\Faces.db
I strongly recommend creating a development environment similar to what
your production environment is going to be like. It'll make your life
easier in the long run.
That said, you could store the database location in some form of config
file, perhaps an XML file. Then use different Config file for "production
vs development". Of course, you'll have to remember to change your config
file when exporting a release version. Doable, but tedious.
I believe you can also set a version number in the app-config, and then do
a compare "if Dev go here for file, else go here". Of course, once again,
before exporting the release version you'd have to change the file. Doable,
but tedious.
> Lastly, is that even where the db would get installed on the user's
> machine, or would it get installed somewhere else?
If it is a part of your AIR installer, it will get installed into the
application's install directory. I think you can make directory suggestions
(via the -app.xml config file), but the user can really set that path to
anything when they install it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4962
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37