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

Reply via email to