Hi All,
I was not able to create a maven project that compiles the resource-
bundle as a single stand alone swf file.
I was able to made it using ant task like this:
<taskdef
className="flex.ant.MxmlcTask" name="mxmlc"
classpath="${flex.home}\ant\lib\flexTasks.jar" />
<property name="FLEX_HOME" value="${flex.home}" />
<property name="APP_ROOT" value="target"/>
<mxmlc output="${APP_ROOT}/orchestrator-locale.swf"
actionscript-file-encoding="UTF-8"
incremental="true"
use-network="false">
<locale>en_US</locale>
<source-path>locale/en_US</source-path>
<include-resource-bundles>CairngormMessages</include-resource-
bundles>
<include-resource-bundles>orchestrator_main_locale</include-
resource-bundles>
</mxmlc>
Now, when we want to switch out build process from ANT to MAVE, I need
to get the same result using a maven project.
This what I tried:
.
<packaging>swf</packaging>
.
.
<build>
<sourceDirectory>src</sourceDirectory>
<defaultGoal>install</defaultGoal>
<plugins>
<!--plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<configuration>
<allowSourcePathOverlap>true</allowSourcePathOverlap>
<locale>en_US</locale>
<sourcePaths>
<path>locale/en_US</path>
</sourcePaths>
<includeResourceBundles>
<bundle>CairngormMessages</bundle>
<bundle>orchestrator_main_locale</bundle>
</includeResourceBundles>
<mergeResourceBundle>true</mergeResourceBundle>
</configuration>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>framework</artifactId>
<type>rb.swc</type>
<version>${flex.version}</version>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex</artifactId>
<type>swc</type>
<version>${flex.version}</version>
</dependency>
</dependencies>
</plugin>
This is the error I get:
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
plugin:3.5.0:compile-swf (default-compile-swf) on project orchestrator-
locale: Source file not expecified and no default found!
I don't have any source in this project, I just want to collect all
the locale file into one resource bundle swf.
Is there any way to do it in MAVEN?
Thanks in advance,
A.B
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/