History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: SDK-14690
Type: Bug Bug
Status: Internal Review Internal Review
Priority: C C
Assignee: Jono
Reporter: James Yoon
Votes: 7
Watchers: 6
Operations

If you were logged in you would be able to see more operations.
Flex SDK

Flex Ant Task can't include external assets

Created: 02/19/08 12:41 PM   Updated: 07/07/08 03:24 PM
Component/s: Ant Tasks
Security Level: Public (All JIRA Users )

File Attachments: 1. Zip Archive SDK-14690.zip (3 kb)

Issue Links:
Duplicate
 
This issue is duplicated by:
SDK-15466 Embed asset source starting with "/" ... B Open

Severity: Non Functioning
Reproducibility: Every Time
Discoverability: Low
Found in Version: SDK Flex 3 (Released)
Milestone: SDK Flex 3.2.0
Affected OS(s): Windows - XP
Steps to Reproduce:
Steps to reproduce:
1. create project test, test1, and test2
2. create folder named 'include' and add assets
3. add source-path in build.xml and run it.
 
 Actual Results:
 
[mxmlc] C:\Projects\test\Test.mxml(26): Error: unable to resolve '/assets/img/1.gif' for transcoding
[mxmlc]
[mxmlc] [Embed(source="/assets/img/1.gif")]

 Expected Results:
 
 Compile success

 Workaround (if any):
 
 --------------------------------------- From Flexcoders ---------------------------------------------------------

 This looks like a bug. Can you please file a bug at
http://bugs.adobe.com/flex

Thanks,
Gaurav

--- In flexcoders@yahoogroups.com, "kp_gem" <jamesyoon72@...> wrote:
>
> Thanks Gaurav,
>
> Here is my directory structure for multiple projects.
>
> --- include - assets - img
> |
> |- test
> |
> |- test1
> |
> |- test2
>
>
> test, test1, and test2 are flex projects and sharing assets in
> the 'include' folder.
>
> And, the ant task is
>
> <?xml version="1.0" encoding="utf-8"?>
> <project name="Builder" basedir=".">
> <taskdef resource="flexTasks.tasks"
> classpath="flexTasks.jar" />
> <property name="FLEX_HOME" value="C:/Program Files/Adobe/Flex
> Builder 3 Plug-in/sdks/3.0.0"/>
> <property name="APP_ROOT" value="C:/Projects/test/src"/>
> <property name="ASSETS" value="C:/Projects/include"/>
> <property name="DEPLOY_DIR" value="C:/Projects/WebContent"/>
> <target name="main">
> <mxmlc
> file="${APP_ROOT}/test.mxml"
> output="${DEPLOY_DIR}/test.swf"
> actionscript-file-encoding="UTF-8"
> incremental="true"
> >
> <load-config filename="${FLEX_HOME}/frameworks/flex-
> config.xml"/>
> <source-path path-element="${FLEX_HOME}/frameworks"/>
> <compiler.library-path dir="${FLEX_HOME}/frameworks"
> append="true">
> <include name="libs" />
> <include name="../bundles/locale}" />
> </compiler.library-path>
> <source-path path-element="${ASSETS}" />
> </mxmlc>
> </target>
> </project>
>
>
>
> --- In flexcoders@yahoogroups.com, "Gaurav Jain" <gauravj@> wrote:
> >
> > Can you show the complete ant task target?
> >
> > I suspect that the parent folder of assets is not specified in the
> > source path.
> >
> > Thanks,
> > Gaurav
> >
> > --- In flexcoders@yahoogroups.com, "kp_gem" <jamesyoon72@> wrote:
> > >
> > > Hi,
> > >
> > > Is there any way to include external assets to Flex Ant Tasks
> (mxmlc)?
> > > I am working on multiple flex projects and want to share 1 single
> > > central assets. However, I couldn't find a way in Flex Ant and I
> got an
> > > following error.
> > >
> > > [mxmlc] C:\Projects\test\Test.mxml(26): Error: unable to
> > > resolve '/assets/img/1.gif' for transcoding
> > > [mxmlc]
> > > [mxmlc] [Embed(source="/assets/img/1.gif")]
> > >
> > > But, when I compiled in Flex Builder, it worked ok. Or, please
> let me
> > > know if there is work around to share assets.
> > >
> > > Thanks
> > >
> >
>
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Kristen Sindac
Participants: Brent Arndorfer, James Yoon, Jono, Kristen Sindac and Lauren Park
JDK: Sun 1.5.x


 All   Comments      Sort Order:
Kristen Sindac - [04/23/08 02:03 PM ]
reproduced in Flex 3 SDK release build

Kristen Sindac - [04/23/08 02:04 PM ]
attached test files to reproduce

Brent Arndorfer - [06/13/08 12:50 PM ]
Is there any known workaround for this?

Lauren Park - [06/18/08 08:28 PM ]
Opened to Jono.

James Yoon - [06/18/08 10:48 PM ]
One workaround way is that you have to copy and delete manually.

<copy ...... >

<mxmlc ....>

<delete ....>

Brent Arndorfer - [06/30/08 08:16 AM ]
Thanks, James. On Windows/Mac I was able to work around this issue by using relative paths only for any embeds. And even though that worked OK on win/mac, still got error on linux with identical build script.

Jono - [07/07/08 01:57 PM ]
I'm 80% certain this is a dupe, but definitely another use case to test when fixing SDK-15466.

Jono - [07/07/08 03:24 PM ]
I believe this is a dupe.