@Marvin - I tried changing the sourceFile path to be relative to the source path such that:
<execution> <id>compile-css-to-swf</id> <phase>compile</phase> <goals> <goal>compile-swf</goal> </goals> <configuration> <sourcePaths> <path>src/main/resources/styles</path> </sourcePaths> <sourceFile>styles.css</sourceFile> <output>/Users/blegros/Documents/workspace/Console/ui/ flex/target/styles/console-flex-1.0.0-SNAPSHOT_style.swf</output> </configuration> </execution> but I didn't have any luck; I got the same error. I tried variations of moving the source path up and the sourceFile down with the same luck. Hope this helps some. Any suggestions on plan of attack? -Brian On Aug 11, 9:48 am, Marvin Froeder <velo...@gmail.com> wrote: > Hrm... > Source file is supposed to be relative to source directories...... > > VELO > > On Tue, Aug 11, 2009 at 10:39 AM, Brian <legr...@gmail.com> wrote: > > > @Marvin - Sorry I should have included the error. I got the error > > "Source file not expecified and no default found!" when executing > > [flexmojos:compile-swf {execution: compile-css-to-swf}]. I'm using > > 3.3-SNAPSHOT but I also tried it with 3.2.0 with the same results. > > Here is my effective POM as it relates to the plugin for that > > particular project: > > > <plugin> > > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-maven-plugin</artifactId> > > <version>3.3-SNAPSHOT</version> > > <extensions>true</extensions> > > <executions> > > <execution> > > <id>compile-css-to-swf</id> > > <phase>compile</phase> > > <goals> > > <goal>compile-swf</goal> > > </goals> > > <configuration> > > <sourcePaths> > > <path>src/main/resources/styles</path> > > </sourcePaths> > > <sourceFile>src/main/resources/styles/styles.css</ > > sourceFile> > > <output>/Users/blegros/Documents/workspace/Console/ui/ > > flex/target/styles/console-flex-1.0.0-SNAPSHOT_style.swf</output> > > </configuration> > > </execution> > > <execution> > > <id>generate-html-wrapper-for-final-site</id> > > <phase>package</phase> > > <goals> > > <goal>wrapper</goal> > > </goals> > > <configuration> > > <htmlName>index</htmlName> > > <outputDirectory>/Users/blegros/Documents/workspace/ > > Console/ui/flex/target/final-site</outputDirectory> > > </configuration> > > </execution> > > </executions> > > <dependencies> > > <dependency> > > <groupId>com.adobe.flex</groupId> > > <artifactId>license</artifactId> > > <version>3.3.0.4852</version> > > </dependency> > > <dependency> > > <groupId>com.adobe.flex</groupId> > > <artifactId>compiler</artifactId> > > <version>3.3.0.4852</version> > > <type>pom</type> > > </dependency> > > </dependencies> > > <configuration> > > <defaultLocale>en_US</defaultLocale> > > <runtimeLocales> > > <locale>en_US</locale> > > </runtimeLocales> > > <sourceFile>Main.mxml</sourceFile> > > <themes> > > <theme>styles/styles.css</theme> > > </themes> > > <headlessServer>true</headlessServer> > > <licenses> > > <flexbuilder3></flexbuilder3> > > </licenses> > > <resourceBundlePath>/Users/blegros/Documents/workspace/ > > Console/ui/flex/src/main/resources/locales/{locale}</ > > resourceBundlePath> > > <skipTest>true</skipTest> > > <targetPlayer>10.0.0</targetPlayer> > > <verboseStacktraces>true</verboseStacktraces> > > </configuration> > > </plugin> > > > -Brian > > > On Aug 11, 7:04 am, Marvin Froeder <velo...@gmail.com> wrote: > > > On Tue, Aug 11, 2009 at 12:59 AM, Brian <legr...@gmail.com> wrote: > > > > > Evening everyone, > > > > > I've found a few previous threads on this topic, but I'm not sure of a > > > > definitive answer. Can I add an execution to the flexmojos-maven- > > > > plugin where compile-swf is the intended goal to compile a css file to > > > > a swf? For example: > > > > > <plugin> > > > > <groupId>org.sonatype.flexmojos</groupId> > > > > <artifactId>flexmojos-maven-plugin</artifactId> > > > > <configuration> > > > > <defaultLocale>en_US</defaultLocale> > > > > <runtimeLocales> > > > > <locale>en_US</locale> > > > > </runtimeLocales> > > > > <sourceFile>Main.mxml</sourceFile> > > > > </configuration> > > > > <executions> > > > > <execution> > > > > <id>compile-css-to-swf</id> > > > > <phase>compile</phase> > > > > <goals> > > > > <goal>compile-swf</goal> > > > > </goals> > > > > <configuration> > > > > <sourcePaths> > > > > <path>src/main/resources/styles</path> > > > > </sourcePaths> > > > > <sourceFile>src/main/resources/styles/styles.css</ > > > > sourceFile> > > > > <output>${project.build.directory}/styles/$ > > > > {project.build.finalName}_style.swf</output> > > > > </configuration> > > > > </execution> > > > > </executions> > > > > </plugin> > > > > > I've had no luck getting this to work and effective-pom doesn't show > > > > me inheriting any configuration options into this execution, so my > > > > only guess is that flex-mojos doesn't support this currently, or that > > > > I'm completely misconfiguring something. I really want my css to live > > > > with my project (I don't want to create another project just for the > > > > css). Is there a configuration option I'm missing that will allow me > > > > to handle css files as resource bundles are handled? Are there > > > > anything new in 3.3-SNAPSHOT I can use? Should I just stick with the > > > > theme configuration option for now and embed, or should I start > > > > digging into the maven-ant-run plugin and the flex ant tasks? > > > > Well, that should worked =/ > > > What happened? > > > > VELO > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to flex-mojos@googlegroups.com To unsubscribe from this group, send email to flex-mojos+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---