Issue Details (XML | Word | Printable)

Key: FDT-1047
Type: Bug Bug
Status: Closed Closed
Resolution: none
Priority: Major Major
Assignee: FDT Team
Reporter: Andriy Panas
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FDT

Compiler does not recognize path to custom resource bundles file

Created: 15/Jul/10 01:57 PM   Updated: 08/Aug/12 06:20 PM
Component/s: ANT
Affects Version/s: FDT 4.5.2
Fix Version/s: None
Security Level: public

Time Tracking:
Not Specified

Environment: Windows XP


 Description  « Hide
I've created "locale/en_US" folder which I put into the root folder of the FDT Flex 3(4) project

In Compiler arguments I specify
-library-path {flexSDK}/frameworks/locale/en_US
-locale en_US
-source-path locale/{locale}

When compiling I receive the error:
command line: Error: unable to open 'locale/en_US'
Use 'mxmlc -help' for information about using the command line.

ps
I've tried to put "locale/en_US" folder in "src" folder, no change.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Meinhard Gredig added a comment - 16/Jul/10 01:56 PM
Please try to add the full path to the sdk:
-source-path {flexSDK}/locale/{locale}

Andriy Panas added a comment - 16/Jul/10 04:41 PM - edited
Hi Meinhard,

Your suggestion made the wheel moving, now I specify the following to enable compiler to recognize the path to my custom locale *.properties file

-locale en_US
-library-path <flexSDK class path>/frameworks/locale/en_US
-source-path <flexSDK class path>/frameworks/locale/<locale name> d:\workspace_FDT\Test_Locale\locale\<locale name>

2 possible problems:

Notice the absolute path to my custom locale folder, relative path for my custom locale folder does not work, e.g., neither ..\locale{locale} nor .locale{locale}.

Also, please note that implicit specification source path for common locale resources folder taken from Flex SDK class is not needed when entering mxmlc compiler settings in Flash Builder 4, this must be documented somewhere or changed functionality to match FB4


FDT Team added a comment - 08/Aug/12 06:20 PM
Hey Andriy,

Try using the {project} variable to gain the project local path. This will do the job for you.