Odd, flexmojos does that automatically... at least it was supposed to...

On Thu, Oct 7, 2010 at 9:45 PM, harish.dhina <[email protected]> wrote:

> Thanks Velo
>
> @rupert Hey I was able to get past that error :). I added this line in
> the <configuration> and it worked:
>
> <themes>
>        <theme>${project.build.directory}/classes/configs/themes/Spark/
> spark.css</theme>
> </themes>
>
>
> Now on to my next issue. Will get back here if any. Thanks everyone :)
>
>
>
>
>
> On Oct 7, 2:27 pm, Marvin Froeder <[email protected]> wrote:
> > target/classes/configs is the defaults from flex SDK.
> >
> > On Thu, Oct 7, 2010 at 9:19 PM, harish.dhina <[email protected]>
> wrote:
> > > Thanks Rupert for letting me know that you too have a similar issue.
> > > Still not able to resolve.
> >
> > > @Velo - There is a config file dumped by Flexmojos called Main-
> > > configs.xml
> > > and then there is a flex-config.xml under my target/classes/configs
> > > folder.
> >
> > > Which one do I compare with?
> >
> > > Thanks
> >
> > > On Oct 6, 8:19 pm, Marvin Froeder <[email protected]> wrote:
> > > > Not at all.  You probably was looking at the default flex-config
> (from
> > > flex
> > > > SDK) not to the one generated for your build.
> >
> > > > On Thu, Oct 7, 2010 at 3:17 AM, Rupert Key <[email protected]>
> wrote:
> > > > > I've actually just shut down but from investigation earlier, I can
> say
> > > that
> > > > > in the FlexMojos generated dumped config, there is no theme section
> > > > > (uncommented) and the -X output shows the compiler argument for
> theme
> > > has no
> > > > > value.
> > > > > Does that help?
> >
> > > > > On 7 Oct 2010, at 01:07, Marvin Froeder <[email protected]> wrote:
> >
> > > > > <http://flexmojos.sonatype.org/faq.html#9>
> > > > >http://flexmojos.sonatype.org/faq.html#9
> >
> > > > > The same principle applies, compare the working config.xml with the
> > > > > problematic one.
> >
> > > > > VELO
> >
> > > > > On Thu, Oct 7, 2010 at 3:02 AM, Rupert < <[email protected]>
> > > > > [email protected]> wrote:
> >
> > > > >> Whoops, that was my trying extra things in case it helped!  It
> behaves
> > > > >> the same with that removed.
> >
> > > > >> Btw, you should see the following error:
> > > > >> ====
> > > > >>
> C:\Users\MyUser\Dev\FlexMojoTest\sparktest\src\main\flex\Main.mxml(3):
> > > > >> Error: The style 'contentBackgroundColor' is only supported by
> type
> > > > >> 'spark.components.Group' with the theme(s) 'spark'.
> >
> > > > >>  <s:Group contentBackgroundColor="#FF0000">
> > > > >> ====
> >
> > > > >> On Oct 7, 12:46 am, Marvin Froeder <[email protected]> wrote:
> > > > >> > Since when spark.swc is a theme?
> >
> > > > >> > On Thu, Oct 7, 2010 at 2:43 AM, Rupert <[email protected]>
> > > wrote:
> > > > >> > > Bryan,
> > > > >> > > Tried both, no difference AFAICT.
> >
> > > > >> > > Velo,
> > > > >> > > No, doesn't seem to.  Out of interest, this thread is the same
> > > > >> > > problem:
> >
> > > > >> > ><
> > >http://groups.google.com/group/flex-mojos/browse_frm/thread/7c62cda86.>
> > > > >>
> http://groups.google.com/group/flex-mojos/browse_frm/thread/7c62cda86.
> > > ..
> > > > >> > > (yes, it's revealed because we're using spark-only styles)
> >
> > > > >> > > I've created a simple test case with 1 pom and 1 mxml, inlined
> > > below.
> > > > >> > > HTH!
> >
> > > > >> > > ##
> > > > >> > > ## src/main/flex/Main.mxml
> > > > >> > > ##
> > > > >> > > <?xml version="1.0" encoding="utf-8"?>
> > > > >> > > <s:Application xmlns:fx=" <http://ns.adobe.com/mxml/2009>
> > > > >>http://ns.adobe.com/mxml/2009";
> > > > >> > > xmlns:s="library:// <http://ns.adobe.com/flex/spark>
> > > > >> ns.adobe.com/flex/spark" xmlns:mx="library://
> > > > >> > > <http://ns.adobe.com/flex/mx>ns.adobe.com/flex/mx">
> > > > >> > >  <s:Group contentBackgroundColor="#FF0000">
> > > > >> > >    <mx:Text text="Hello World!"/>
> > > > >> > >  </s:Group>
> > > > >> > > </s:Application>
> >
> > > > >> > > ##
> > > > >> > > ## pom.xml
> > > > >> > > ##
> > > > >> > > <?xml version="1.0" encoding="UTF-8"?>
> > > > >> > > <project xmlns=" <http://maven.apache.org/POM/4.0.0>
> > > > >>http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
> > > > >> > > <http://www.w3.org/2001/XMLSchema-instance>
> > > > >>www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> >
> > > > >> <
> > >http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0..
> .>
> > > > >>
> maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd";>
> > > > >> > >  <modelVersion>4.0.0</modelVersion>
> >
> > > > >> > >  <groupId>blah</groupId>
> > > > >> > >  <artifactId>sparktest</artifactId>
> > > > >> > >  <version>1.0-SNAPSHOT</version>
> > > > >> > >  <packaging>swf</packaging>
> > > > >> > >  <name>sparktest Flex</name>
> >
> > > > >> > >  <properties>
> > > > >> > >    <flex.version>4.1.0.16076</flex.version>
> > > > >> > >    <flexmojos.version>4.0-SNAPSHOT</flexmojos.version>
> > > > >> > >  </properties>
> >
> > > > >> > >  <build>
> > > > >> > >    <sourceDirectory>src/main/flex</sourceDirectory>
> > > > >> > >    <plugins>
> > > > >> > >      <plugin>
> > > > >> > >        <groupId>org.sonatype.flexmojos</groupId>
> > > > >> > >        <artifactId>flexmojos-maven-plugin</artifactId>
> > > > >> > >        <version>${flexmojos.version}</version>
> > > > >> > >        <extensions>true</extensions>
> > > > >> > >        <dependencies>
> > > > >> > >          <dependency>
> > > > >> > >            <groupId>com.adobe.flex</groupId>
> > > > >> > >            <artifactId>compiler</artifactId>
> > > > >> > >            <version>${flex.version}</version>
> > > > >> > >            <type>pom</type>
> > > > >> > >          </dependency>
> > > > >> > >        </dependencies>
> > > > >> > >      </plugin>
> > > > >> > >    </plugins>
> > > > >> > >  </build>
> >
> > > > >> > >  <dependencies>
> > > > >> > >    <dependency>
> > > > >> > >      <groupId>com.adobe.flex.framework</groupId>
> > > > >> > >      <artifactId>flex-framework</artifactId>
> > > > >> > >      <version>${flex.version}</version>
> > > > >> > >      <type>pom</type>
> > > > >> > >    </dependency>
> > > > >> > >    <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>sparkskins</artifactId>
> > > > >> > >      <version>${flex.version}</version>
> > > > >> > >      <type>swc</type>
> > > > >> > >      <!-- theme -->
> > > > >> > >      <scope>theme</scope>
> > > > >> > >      <!-- <scope>compile</scope> -->
> > > > >> > >    </dependency>
> > > > >> > >    <dependency>
> > > > >> > >      <groupId>com.adobe.flex.framework</groupId>
> > > > >> > >      <artifactId>spark</artifactId>
> > > > >> > >      <version>${flex.version}</version>
> > > > >> > >      <type>swc</type>
> > > > >> > >      <scope>theme</scope>
> > > > >> > >    </dependency>
> > > > >> > >  </dependencies>
> >
> > > > >> > > </project>
> >
> > > > >> > > --
> > > > >> > > 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]
> >
> > > > >> [email protected]
> > > > >> > > To unsubscribe from this group, send email to
> > > > >> > > <flex-mojos%[email protected]<flex-mojos%[email protected]>
> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >
> >
> > > > >> [email protected]<flex-mojos%[email protected]>
> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >
> > > <
> > > > >> flex-mojos%[email protected]<flex-mojos%[email protected]>
> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >
> > > <flex-mojos%[email protected]<flex-mojos%[email protected]>
> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >
> >
> > > > >> > > For more options, visit this group at
> > > > >> > > <http://groups.google.com/group/flex-mojos>
> > > > >>http://groups.google.com/group/flex-mojos
> >
> > > > >> > > <http://flexmojos.sonatype.org/>
> 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]
> >
> > > > >> [email protected]
> > > > >> To unsubscribe from this group, send email to
> > > > >>  
> > > > >> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >
> >
> > > > >> [email protected]<flex-mojos%[email protected]>
> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >
> > > > >> For more options, visit this group at
> > > > >>  <http://groups.google.com/group/flex-mojos>
> > > > >>http://groups.google.com/group/flex-mojos
> >
> > > > >>  <http://flexmojos.sonatype.org/>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]>
> > > > > [email protected]
> > > > > To unsubscribe from this group, send email to
> > > > >  
> > > > > <[email protected]<flex-mojos%[email protected]>
> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >
> >
> > > > > [email protected]<flex-mojos%[email protected]>
> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >
> > > > > For more options, visit this group at
> > > > >  <http://groups.google.com/group/flex-mojos>
> > > > >http://groups.google.com/group/flex-mojos
> >
> > > > >  <http://flexmojos.sonatype.org/>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]>
> <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >
> > > <flex-mojos%[email protected]<flex-mojos%[email protected]>
> <flex-mojos%[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]<flex-mojos%[email protected]>
> <flex-mojos%[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]<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