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

Key: SDK-12251
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: B B
Assignee: Gaurav Jain
Reporter: Tom Lane
Votes: 0
Watchers: 1
Operations

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

Problem finding external stylesheet with multiple source path folders

Created: 08/20/07 05:18 PM   Updated: 09/06/07 11:27 AM
Component/s: MXML Compiler
Security Level: Public (All JIRA Users )

File Attachments: 1. Zip Archive extcss.zip (4 kb)


Severity: Non Functioning
Reproducibility: Every Time
Discoverability: Medium
Found in Version: SDK Moxie M2 (Beta)
Milestone: SDK Moxie M3 (Beta 2)
Affected OS(s): Mac
Steps to Reproduce:
Steps to reproduce:
1. Unzip bugfiles
2. cd into diffSrcProj and compile from command line like this (update paths as appropriate):

mxmlc -source-path /absolutepathto/diffSrcProj/ /absolutepathto/diffSrcClass/ -- extDiffSrcASTest.mxml
 
 Actual Results:
 
Loading configuration file /Users/tom/source/flex/ide/zorn.flex/devsdks/moxie/frameworks/flex-config.xml
This beta will expire on Wed Oct 31 00:00:00 PDT 2007.
/...../diffSrcProj/extDiffSrcASTest.mxml(3): Error: Problem finding external stylesheet: extClassRefAS.css

        <mx:Style source="extClassRefAS.css"/>

 

It works if you move extClassRefAS.css into diffSrcProj
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Gaurav Jain
Resolved by: Paul Reilly
Fixed Version: SDK Moxie M3 (Beta 2) - Next Build
Confirmed Version: SDK Moxie M3 (Beta 2) - 181749
Participants: Gaurav Jain, Lauren Park, Paul Reilly and Tom Lane


 All   Comments      Sort Order:
Gaurav Jain - [08/21/07 09:53 AM ]
Tom, can you please attach the bug files.

Tom Lane - [08/21/07 12:54 PM ]
Oops, sorry.

Lauren Park - [08/28/07 04:44 AM ]
re-assigned to Gaurav.

Gaurav Jain - [08/28/07 11:07 AM ]
Workaround is to define relative path in the source attribute of style element.

<mx:Style source="../diffSrcClass/extClassRefAS.css"/>

will work.

Gaurav Jain - [08/28/07 11:13 AM ]
I don't think its a bug.

The documentation says that the value of source property is teh URL of a file that contains style declaration.

Tom Lane - [08/28/07 02:20 PM ]
i don't agree. One, "extClassRefAS.css" *is* a URL to a file that contains a style declaration. Two, this works if you put it in the first source path, just not the second. Three, it's obvious from the "workaround" that the compiler is only trying to resolve the relative URL from the first folder (diffSrcProj) and not the second one as it should.

Tom Lane - [08/28/07 02:25 PM ]
I'm told the process is to kick this back to IRB.

Lauren Park - [08/31/07 12:12 AM ]
Sending to Gaurav.

Gaurav Jain - [08/31/07 10:00 AM ]
>> this works if you put it in the first source path, just not the second.
Works because then the file location becomes relative to the mxml file.

>> it's obvious from the "workaround" that the compiler is only trying to resolve the relative URL from the first folder (diffSrcProj) and not the second one as it should.

If I change the example to move extClassRefAS.css from folder diffSrcClass to folder diffSrcProj and also move extDiffSrcASTest.mxml to a folder diffSrcProj/mxml and if I use the command
mxmlc -sp=diffSrcProj diffSrcProj\mxml\extDiffSrcASTest.mxml

It doesn't work even though the css is now in the first and only source path but not relative to the mxml.


Lauren Park - [09/04/07 03:59 PM ]
Opened.

Tom Lane - [09/04/07 08:08 PM ]
I totally do not follow that last comment from Gaurav. I believe the original steps demonstrate the bug. The mx:Style source path is a source-root-relative path. It should resolve regardless of which source path the css file is in and regardless of which one the mxml file is in.

Paul Reilly - [09/05/07 09:00 PM ]
This should be fixed by change 181629.

Gaurav Jain - [09/06/07 11:27 AM ]
Confirmed Fixed.