• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

adding themes to the library project using maven

I have been given flex - themes in the form of swc's. and I have two project's - one normal flex project and other one is a library project. My Library project has all the components that i will be using in my main project.We are using maven for build purpose .

I was able to apply the themes directly to the main project using maven and i am able to get the themes applied to the components. But when i tried to add those themes to the library project its not getting applied.

Is there any way to add themes to the Library project using Maven? Please help me out
1 Solution
Well when you are talking about Maven I guess you are talking about FlexMojos.

I think you can't apply a theme to a library as this is a thing of the application. But you could include everything that the theme contains using the scope "internal" this copies the entire content of the theme lib into your other lib.
You can use ANT plaugin in the Maven POM. And from ant use FlexMojo to set theme:

							<ant antfile='${basedir}/build.xml'>
								<property name="maven_flex_skip" value="${maven.flex.skip}"/>
								<property name="maven_asdoc_skip" value="${maven.asdoc.skip}"/>

Open in new window


<mxmlc file="${src.flex.dir}/${file.name}.mxml"

				<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
				<source-path path-element="${FLEX_HOME}/frameworks"/>
				<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
					<include name="libs" />
					<include name="locale/{default.locale}" />
				<theme dir="${FLEX_HOME}/frameworks/themes/Halo">
					<include name="halo.swc" />

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now