Custom Namespace (manifest file)

shamruk's Avatar

shamruk

18 Mar, 2014 12:52 PM

How can I add a custom namespace?
I have not found any buildin feature so I've tried to

additionalCompilerOptions += [ '-namespace ${ns_uri} ${ns_location} -include-namespaces ${ns_uri}' ]

But doesn't see spark and mx after this. Trying to add spark and mx

additionalCompilerOptions += [ '-namespace ${ns_uri} ${ns_location} -namespace library://ns.adobe.com/flex/spark ${flexHome}/frameworks/spark-manifest.xml -namespace library://ns.adobe.com/flex/mx ${flexHome}/frameworks/mx-manifest.xml -include-namespaces ${ns_uri}' ]

But flexHome is not defined or defined wrong..

  1. 1 Posted by shamruk on 18 Mar, 2014 01:38 PM

    shamruk's Avatar

    Finally got working solution:

    additionalCompilerOptions += [

    '-namespace+=http://artman.fi/flow,'+new File('../Flow/src/manifest.xml').absolutePath,

    '-include-namespaces+=http://artman.fi/flow'

    ]

  2. Support Staff 2 Posted by Maxime Cowez on 18 Mar, 2014 08:48 PM

    Maxime Cowez's Avatar

    That's it indeed, or better yet: put the namespace in a project-level variable, so you can do this:

    additionalCompilerOptions.addAll([
        "-namespace=${namespace},${projectDir.path}/src/main/manifest.xml",
        "-include-namespaces=${namespace}"
    ])
    
  3. 3 Posted by shamruk on 19 Mar, 2014 01:59 PM

    shamruk's Avatar

    That look better, thx. This should go to documentation.

  4. shamruk closed this discussion on 19 Mar, 2014 01:59 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac