Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created May 10, 2011 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Riduidel/964401 to your computer and use it in GitHub Desktop.
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
<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