Ok, so for the moment the includeFiles (including all other files) is my only option to exclude a file from compiling?
- Peter On Mon, Dec 22, 2008 at 4:22 PM, Marvin Froeder <[email protected]> wrote: > Ow shit.... > > Then you should put this tester somewhere else.... But this is weird, I > expect this externs worked. Possible a bug on flex. > > BTW, I guess I know how it works. It does compile the file (that why you > get error). But, doesn't include on swc file. > > Another thing you can do is use includeFiles to include just what you need. > > > VELO > > > On Mon, Dec 22, 2008 at 12:39 PM, Peter Nicolai Motzfeldt < > [email protected]> wrote: > >> Hi, thank you for helping me :-) >> >> I have also tried to use just FlexTester >> >> <configuration> >> <externs> >> <extern>FlexTester</extern> >> </externs> >> </configuration> >> >> [ERROR] C:\Dev\trunk\project\flex\src\main\flex\FlexTester.mxml:[9,-1] >> Type was not found o >> r was not a compile-time constant: TestRunnerBase. >> [ERROR] C:\Dev\trunk\project\flex\src\main\flex\FlexTester.mxml:[16,-1] >> Access of undefined >> property AllTests. >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> >> >> This is my FlexTester.mxml >> >> <?xml version="1.0" encoding="utf-8"?> >> <mx:Application >> xmlns:mx="http://www.adobe.com/2006/mxml" >> xmlns:flexui="flexunit.flexui.*" >> layout="absolute" >> creationComplete="runAllTests()" >> > >> >> <flexui:TestRunnerBase id="testRunner" width="100%" height="100%"/> >> >> <mx:Script> >> <![CDATA[ >> >> public function runAllTests() : void >> { >> testRunner.test = AllTests.suite(); >> testRunner.startTest(); >> } >> ]]> >> </mx:Script> >> </mx:Application> >> >> Any idea? >> >> >> On Fri, Dec 19, 2008 at 5:53 PM, Marvin Froeder <[email protected]>wrote: >> >>> Take a look on sample here: >>> >>> http://docs.flex-mojos.info/flex-compiler-mojo/compile-swf-mojo.html#externs >>> >>> You should declare class name, not source file name. >>> >>> But, if still not working send your console output to me. >>> >>> >>> VELO >>> >>> >>> >>> >>> On Fri, Dec 19, 2008 at 2:49 PM, Peter Nicolai Motzfeldt < >>> [email protected]> wrote: >>> >>>> Thanks for the quick response. >>>> >>>> My build looks like this now, and the FlexTester.mxml is located in >>>> src/main/flex: >>>> >>>> <build> >>>> <sourceDirectory>src/main/flex</sourceDirectory> >>>> <testSourceDirectory>src/test/flex</testSourceDirectory> >>>> <plugins> >>>> <plugin> >>>> <groupId>info.flex-mojos</groupId> >>>> <extensions>true</extensions> >>>> <artifactId>flex-compiler-mojo</artifactId> >>>> <configuration> >>>> <externs> >>>> <extern>FlexTester.mxml</extern> >>>> </externs> >>>> </configuration> >>>> <executions> >>>> <execution> >>>> <goals> >>>> <goal>compile-swc</goal> >>>> </goals> >>>> </execution> >>>> </executions> >>>> </plugin> >>>> <plugins> >>>> </build> >>>> >>>> It still complains about not finding TestRunnerBase, what am I doing >>>> wrong? >>>> >>>> - Peter >>>> >>>> >>>> On Fri, Dec 19, 2008 at 5:04 PM, Marvin Froeder <[email protected]>wrote: >>>> >>>>> Hi Peter, >>>>> >>>>> Sure, that is doable: >>>>> >>>>> http://docs.flex-mojos.info/flex-compiler-mojo/compile-swf-mojo.html#externs >>>>> >>>>> >>>>> VELO >>>>> >>>>> >>>>> On Fri, Dec 19, 2008 at 1:20 PM, Peter Nicolai Motzfeldt < >>>>> [email protected]> wrote: >>>>> >>>>>> >>>>>> Hi >>>>>> >>>>>> Must say this is a great tool, thanks alot. Keep up the good work! >>>>>> >>>>>> I am testing a swc library and I do not want to add a new project so >>>>>> that I can run my tests from eclipse. But rather be able to have a >>>>>> TestRunner.mxml file located in the src/main/flex folder. >>>>>> >>>>>> But then I get an error compiling with maven since it needs flexunit >>>>>> classes. >>>>>> >>>>>> Is there a way building a swc project with maven and specify that I >>>>>> want to exclude the TestRunner.mxml file when compiling? >>>>>> >>>>>> Thanks >>>>>> >>>>>> - Peter >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
