Oh sorry for that. Can't confirm that, because I've never used resources in
tests yet :-(

Chris
Am 18.08.2011 17:55 schrieb "pawel" <[email protected]>:
> Just to be clear, it's failing when compiling flexUnit tests, when I
> use -Dmaven.test.skip=true, then it's compiling just fine. Is it
> working for you, with tests too? For example such simple test:
>
> package com.samples
> {
>
> import com.samples.Utils;
> import org.flexunit.Assert;
> public class TestUtils
> {
> [Test]
> public function testGetResource():void
> {
> Assert.assertEquals(Utils.getResource(),'SAMPLESAMPLESAMPLE');
> }
> }
> }
>
> And Utils is the class with [ResourceBundle("myCoolResources")], and
> getResource method is doing
> resourceManager.getString('myCoolResources', 'ResourceString') .
> A
>
> On Aug 18, 5:40 pm, Christofer Dutz <[email protected]>
> wrote:
>> So in order to have my locale stuff in my projects I do the following:
>>
>> 1. In the pom.xml I specify which lannguages I wannt to support:
>> <configuration>
>> ...
>>                     <compiledLocales>
>>                         <locale>en_US</locale>
>>                         <locale>de_DE</locale>
>>                     </compiledLocales>
>> ...
>> </configuration>
>> 2. I create the directories: src/main/locales/de_DE and
src/main/locales/en_US
>> 3. I now place a property file callled "myCoolResources.properties"
>> into both of them
>> 4. In my Fllex Application I add the Metadata to import those localles:
>>     <fx:Metadata>
>>         [ResourceBundle("myCoolResources")]
>>     </fx:Metadata>
>> 5. I use the resources in my application:
>> resourceManager.getString('myCoolResources', 'ResourceString')
>>
>> So are you doing this and still having problems?
>>
>> Chris
>>
>> 2011/8/18 pawel <[email protected]>:
>>
>>
>>
>>
>>
>>
>>
>> > Chris,
>> > The tutorial is great, it nicely explains how people can contribute to
>> > project ( I haven't done setting Key stuff, but it seems to be working
>> > anyways). As for my problem, even with default locales location, it
>> > doesn't work. I've created sample project just to test it, so there
>> > should not be any additional wonky stuff, that would break it. Also
>> > from what I saw in FM code, I would say that using default locale
>> > location does not solve the problem.
>>
>> > On Aug 18, 12:11 pm, Christofer Dutz <[email protected]>
>> > wrote:
>> >> I wrote down a tutorial especially for contributing to flexmojos:
https://dev.c-ware.de/confluence/display/PUBLIC/Contributing+to+Flexm...
>>
>> >> Think it should explain most of the things you nees (Except setting up
>> >> the Key stuff for GITHub .. this is explained verry thoroughly on
>> >> github).
>>
>> >> But to your problem. If you simply use the default location of locales
>> >> (src/main/locales/{de_DE}/) then there is no need to define anything
>> >> and flexmojos finds the resources just fine.
>>
>> >> Chris
>>
>> >> 2011/8/17 Marvin Froeder <[email protected]>:
>>
>> >> > Basically you need to read
>> >> >http://help.github.com/fork-a-repo
>> >> > and
>> >> >http://help.github.com/send-pull-requests
>>
>> >> > Or just make .patch files and attach to jira.
>>
>> >> > VELO
>>
>> >> > On Wed, Aug 17, 2011 at 2:35 PM, pawel <[email protected]> wrote:
>>
>> >> >> Ok, I think I fixed that, just don't know how to send it to you. I
>> >> >> also fixed one other issue, and you told me that I should use Git
in
>> >> >> that thread, but I don't know how, never used it. I see on github
link
>> >> >> to read-only repo, so I can't push anything with it. do I have to
>> >> >> crate some account/branch or something else...
>>
>> >> >> Pawel
>>
>> >> >> On Aug 17, 6:47 pm, Marvin Froeder <[email protected]> wrote:
>> >> >> > Old issue, is a shame nobody wanna fix it. =/
>>
>> >> >> > VELO
>>
>> >> >> > On Wed, Aug 17, 2011 at 1:42 PM, pawel <[email protected]> wrote:
>> >> >> > > Hi,
>>
>> >> >> > > I'm trying to run Flexunit tests, but the compilation fails due
>> >> >> > > to:'Error: Unable to resolve resource bundle
"SpecificationHelp" for
>> >> >> > > locale "en_US" '. So the code I'm trying to test have
>> >> >> > > [ResourceBundle("SpecificationHelp")] annotations, so obviously
>> >> >> > > compiler needs this resource somewhere on source path. The
problem is,
>> >> >> > > the path I'm specifying with 'localesSourcePath' is not added
to
>> >> >> > > source paths, when compilling tests. Am I doing something
wrong, or FM
>> >> >> > > just lacks that feature? When I run maven with
-Dmaven.test.skip=true
>> >> >> > > then it works just fine, so I'm assuming all used tags,
spellings etc
>> >> >> > > are correct.
>>
>> >> >> > > Thanks,
>> >> >> > > Pawel
>>
>> >> >> > > --
>> >> >> > > 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/
>>
>> >> >> --
>> >> >> 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/
>>
>> >> > --
>> >> > 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/
>>
>> > --
>> > 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/
>
> --
> 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/

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