I've created an air application that requires a command-line argument - the path to a properties file. I'd like to set the shortcut created by the Air application installer to point to a default location for this file. I'm creating the installer by doing Export -> Release Build from the Flex Development Eclipse IDE. Is there some setting (perhaps in the -app.xml file) that would let me specify a default value?
that is not customizable in that way. You're using IDE provided UI for ADT that could be also executed via command line and has limited (closed) list of arguments/options:
What about adding that file into application package? If it needs to be passed as path each time application is run you could ship it with application then. Or provide application routine that would compute that path to that file at runtime once application is started.
Thanks. I've decided to adopt the approach of packaging the properties file with my application.
I placed the file in the src directory & it gets copied over to bin-debug or bin-release, as appropriate, with one hitch - the file cannot use the .properties extension. It appears that files with the .properties extension don't get copied over, whereas .xml, .txt, and many others do.