multiproject-all-conventions compile fails

ross.attrill's Avatar

ross.attrill

05 Sep, 2012 05:55 AM

The 'multiproject-all-conventions' example is failing on compile for me due to a problem with resolving the images from the 'assets' project.

I am working on windows.

The error message is as follows:

:client:compile
[ant:java] Java Result: 2
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':client:compile'.
> taskName compilation failed: Loading configuration file D:\opt\adobe\flex_sdk_4.6.0.23201B\frameworks\flex-config.xml
  D:\src_github\GradleFx-Examples\multiproject-all-conventions\client\src\main\actionscript\Main.mxml: Error: unable to resolve '/images/warning-icon.png' for transcoding
  D:\src_github\GradleFx-Examples\multiproject-all-conventions\client\src\main\actionscript\Main.mxml: Error: Unable to transcode /images/warning-icon.png.

This change seems to fix the problem but I am not sure if the change will be platform independent.

file:\\GradleFx-Examples\multiproject-all-conventions\client\src\main\actionscript\Main.mxml
old new 
25      -    <controls:Image source="@Embed('/images/warning-icon.png')" />
    25  +    <controls:Image source="@Embed('images/warning-icon.png')" />

Should I raise an issue on this?

  1. Support Staff 1 Posted by Yennick Trevels on 05 Sep, 2012 02:12 PM

    Yennick Trevels's Avatar

    Hi Ross,

    I think it's a platform independent fix. I had it fixed in my local repository but didn't check it in yet. I'll check it in today.

    Thanks

  2. Yennick Trevels closed this discussion on 05 Sep, 2012 02:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac