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

Recent Discussions

07 May, 2023 04:17 PM
28 Apr, 2023 11:22 PM
23 Apr, 2023 09:43 AM
03 Nov, 2022 01:22 AM
29 Jun, 2022 05:39 PM

 

04 Aug, 2021 12:50 PM
15 Apr, 2021 06:10 PM
15 Jan, 2021 06:56 PM
09 Mar, 2020 11:11 PM
09 Mar, 2020 11:09 PM
17 Apr, 2019 02:51 PM