Relative path to manifest file for Flex Library Project?

Hi,

If I go to the custom namespaces screen from the advanced flex compiler settings for a flex swc module, I am able to enter a custom namespace URI and a path to its manifest file.

Unfortunately it seems that I am only able to provide an absolute path to the manifest file, and so this setting does not play well with being shared via version control systems.

I can provide a relative path to this file in the additional compiler options, but this is not so easy to maintain, and forces me to add a whole load of other options too. Also Intelli does not seem to work as well when this swc project is listed as a dependency in another flex module - a lot of good code is shown as bad.

So, is it possible to provide a relative location to the manifest file in that settings dialog?

Conrad Winchester

4 comments
Comment actions Permalink

IDEA shows absolute paths in UI, but stores paths relative to Module or Project root automatically. Look inside *.iml file - you'll notice $MODULE_DIR$ and $PROJECT_DIR$ macros.
For paths that are outside of project you can add Path Variables (File | Settings | Path variables). IDEA automatically saves paths relative to the closest path set in Path Variables. Your colleagues should have the same path variables pointing to a specific place on their computers.

0
Comment actions Permalink

Hi Alexander

we tried that approach, but it seems that the Path Variables are also not expanded when used in values in the custom namespace dialog.

Idealy it would be great if it was just a relative path.

Conrad

0
Comment actions Permalink

No, you shouldn't write path variable manually anywhere in UI. You put absolute path. And when idea stores it it looks through configured path variables (including predefined ones like MODULE_DIR and PROJECT_DIR) and if possible - replaces absolute path with relative. I just checked the machanism once more an see it working for manifest files as well as for all paths stored by IDEA.

0
Comment actions Permalink

WOW - thanks - that works great :-)

As always your support is amazing.

0

Please sign in to leave a comment.