I just created a sample project to confirm embedding assets (a
picture, a sound file, whatever) is not possible when placing them in
the src/test/resources folder. I used the most recent flexmojos
version (3.7.1 and 3.8-SNAPSHOT) and tried any source path for the
asset i can imagine ("/pic.png", "pic.png", "test-classes/pic.png", "/
test-classes/pic.png", etc) but still without any success...
The resources itself are copied to the target/test-classes/ folder
though, but it seems as the compiler cant "see" them and therefore
throws a compilation error:
"[...] unable to resolve '/pic.png' for transcoding [...] Unable to
transcode pic.png." ... you know it.

If you move the file from src/test/resources to src/main/resources
everything works just fine, but of course than you have your test
resources in the final output, which is definetly not a valid solution!

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