Created
May 10, 2011 12:45
-
-
Save Riduidel/964401 to your computer and use it in GitHub Desktop.
Build element of a flexmojos maven poom to use conditionnal compilation and produce both elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.sonatype.flexmojos</groupId> | |
<artifactId>flexmojos-maven-plugin</artifactId> | |
<extensions>true</extensions> | |
<configuration> | |
<resourceBundlePath>${basedir}/src/main/locale/{locale}</resourceBundlePath> | |
<compiledLocales> | |
<locale>en_US</locale> | |
<locale>fr_FR</locale> | |
</compiledLocales> | |
<themes> | |
<theme>${project.build.directory}/themes/halo-theme.swc</theme> | |
<theme>${project.build.directory}/themes/spark.swc</theme> | |
</themes> | |
</configuration> | |
<executions> | |
<execution> | |
<!-- standard SWC compile is disabled to let some room for classifiers --> | |
<id>default-compile-swc</id> | |
<phase>none</phase> | |
</execution> | |
<execution> | |
<id>Flex</id> | |
<phase>compile</phase> | |
<goals> | |
<goal>compile-swc</goal> | |
</goals> | |
<configuration> | |
<definesDeclaration> | |
<property> | |
<name>CONFIG::AIR</name> | |
<value>false</value> | |
</property> | |
<property> | |
<name>CONFIG::FLEX</name> | |
<value>true</value> | |
</property> | |
</definesDeclaration> | |
<classifier>flex</classifier> | |
</configuration> | |
</execution> | |
<execution> | |
<id>AIR</id> | |
<phase>compile</phase> | |
<goals> | |
<goal>compile-swc</goal> | |
</goals> | |
<configuration> | |
<definesDeclaration> | |
<property> | |
<name>CONFIG::AIR</name> | |
<value>true</value> | |
</property> | |
<property> | |
<name>CONFIG::FLEX</name> | |
<value>false</value> | |
</property> | |
</definesDeclaration> | |
<classifier>air</classifier> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment