Products
Technologies

Developer resources

Relative path for services-config.xml in Flex Builder

Avg. Rating 5.0

Problem

Does Flex Builder support relative path in compiler arguments, like I want to specify relative path for my services-config.xml?

Solution

Yes, Flex Builder does provide relative path when resolving compiler arguments. The current directory will be the flex source directory.

Detailed explanation

Suppose my Flex project has the following directory structure

project structure

So in Project Properties -> Flex Compiler -> Additional Compiler Arguments, I specify -services with relative path as follows

arguments

Noted that the current directory Flex Builder using to resolve any relative path in compiler arguments is the Flex Source directory.

Flex Builder also provides a variable that can be used in compiler arguments, i.e.: ${flexlib}, which refers to the Flex SDK Path in your machine.

${flexlib} = /Developer/Applications/eclipse/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks

 

Report abuse

Related recipes