You can configure whatever you are able to configure on flex-config.xml and
much more on pom configuration, but the syntax is not the same.

VELO

On Wed, May 26, 2010 at 11:26 AM, Matt C <[email protected]> wrote:

> So you mean that I can use the same syntax in the pom.xml file as in
> the flex-config.xml file?
>
> ie, I can just put the <definesDeclaration> code segment (below)
> directly within the <configuration> section for the flexmojos plugin?
>
> like this:
>
>   <build>
>      <sourceDirectory>src/main/flex</sourceDirectory>
>      <testSourceDirectory>src/test/flex</testSourceDirectory>
>      <finalName>${parent.artifactId}</finalName>
>      <plugins>
>         <plugin>
>            <groupId>org.sonatype.flexmojos</groupId>
>            <artifactId>flexmojos-maven-plugin</artifactId>
>            <configuration>
>                <locale>
>                  <locale-element>en_US</locale-element>
>               </locale>
>               <source-path>
>                  <path-element>../locales/{locale}</path-element>
>               </source-path>
>               <allow-source-path-overlap>true</allow-source-path-
> overlap>
>                <definesDeclaration>
>                  <property>
>                     <name>CONFIG::development</name>
>                     <value>false</value>
>                  </property>
>               </definesDeclaration>
>             </configuration>
>            <dependencies>
>               <dependency>
>                  <groupId>com.adobe.flex</groupId>
>                  <artifactId>compiler</artifactId>
>                  <type>pom</type>
>                  <version>${flex-framework.version}</version>
>               </dependency>
>            </dependencies>
>         </plugin>
>      </plugins>
>   </build>
>
>
>
>
> On May 26, 3:16 pm, Marvin Froeder <[email protected]> wrote:
> > Ow, you wanna configurations per modules?!
> >
> > You need to split your code into multiple maven modules then.
> >
> > VELO
> >
> >
> >
> > On Wed, May 26, 2010 at 11:13 AM, Matt C <[email protected]> wrote:
> > > This is where I get out of my depth...
> >
> > > To recap, here's what I want to do:
> >
> > > I want to put compiler options in some kind of configuration file, on
> > > a per-application (and per-module) basis.
> >
> > > The current Main-config.xml file I have looks like this:
> >
> > > <?xml version="1.0"?>
> > > <flex-config>
> > >   <compiler>
> > >      <locale>
> > >         <locale-element>en_US</locale-element>
> > >      </locale>
> > >      <source-path>
> > >         <path-element>../locales/{locale}</path-element>
> > >      </source-path>
> > >      <allow-source-path-overlap>true</allow-source-path-overlap>
> > >   </compiler>
> > > </flex-config>
> >
> > > I'd also like to add this in as well - but just for the modules:
> >
> > >      <definesDeclaration>
> > >         <property>
> > >            <name>CONFIG::development</name>
> > >            <value>false</value>
> > >         </property>
> > >      </definesDeclaration>
> >
> > > Can you point me in the right direction to achieve that?
> >
> > > Thanks for your quick replies, Marvin.
> >
> > > Matt
> >
> > > On May 26, 3:09 pm, Marvin Froeder <[email protected]> wrote:
> > > > pom configurations?!
> >
> > > > On Wed, May 26, 2010 at 11:07 AM, Matt C <[email protected]>
> wrote:
> > > > > Oh. That's a pain.
> >
> > > > > What alternative would you suggest then?
> >
> > > > > Matt
> >
> > > > > On May 26, 2:14 pm, Marvin Froeder <[email protected]> wrote:
> > > > > > Don't use flex-config.xml with flexmojos.  There is no guarantee
> your
> > > > > > configuration won't be ignored or overwrote by flexmojos.
> >
> > > > > > VELO
> >
> > > --
> > > 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]<flex-mojos%[email protected]>
> <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex-mojos
> >
> > >http://flexmojos.sonatype.org/
>
> --
> 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]<flex-mojos%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
>

-- 
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/

Reply via email to