| Priority |
Normal |
| Type | Bug |
| State | Fixed |
| Assignee | Alexander Doroshko |
| Subsystem | Flex Support |
| Affected versions |
No affected versions
|
| Fixed in |
No fix versions
|
| Fixed in build |
Next build |
| Build |
9684
|
| Fixed in build |
10057
|
| Severity |
0
|
IDEA-47637 |
Problem with multi-source setup |
|
|
But flex-mojos works with that configuration. See attached pom.xml
I didn't analyze that deeply but I think trick is in LibraryMojo.java (line 237?)
builder = new flex2.tools.oem.Library;
builder..addArchiveFile(resource)
so the cause of this issue seems to be Flex Compiler's bug.
and Flex 4 SDK...
develar:~ develar$ cd workspace/XpressPages
develar:XpressPages develar$ ls
backend client pom.xml xpressPages.iml
develar:XpressPages develar$ fcsh
Adobe Flex Compiler SHell (fcsh)
Version 4.0.0 build 5082
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
(fcsh) mxmlc -load-config=client/editorSkins/twp/target/skins/twp-1.0-SNAPSHOT-config-report.xml
fcsh: Assigned 1 as the compile target id
Loading configuration file /Users/develar/workspace/XpressPages/client/editorSkins/twp/target/skins/twp-1.0-SNAPSHOT-config-report.xml
/Users/develar/workspace/XpressPages/client/editorSkins/twp/target/skins/twp-1.0-SNAPSHOT.swf (24959 bytes)
(fcsh) compc -load-config=client/navigation/target/navigation-1.0-SNAPSHOT-config-report.xml
fcsh: Assigned 2 as the compile target id
Loading configuration file /Users/develar/workspace/XpressPages/client/navigation/target/navigation-1.0-SNAPSHOT-config-report.xml
/Users/develar/workspace/XpressPages/client/navigation/target/navigation-1.0-SNAPSHOT.swc (10309 bytes)
(fcsh) mxmlc -load-config=client/userSkins/navigationSkins/target/skins/navigationSkins-1.0-SNAPSHOT-config-report.xml
fcsh: Assigned 3 as the compile target id
Loading configuration file /Users/develar/workspace/XpressPages/client/userSkins/navigationSkins/target/skins/navigationSkins-1.0-SNAPSHOT-config-report.xml
/Users/develar/workspace/XpressPages/client/userSkins/navigationSkins/target/skins/navigationSkins-1.0-SNAPSHOT.swf (33271 bytes)
(fcsh) compc -load-config=client/commonLibrary/flexLibrary/target/flexLibrary-1.0-SNAPSHOT-config-report.xml
fcsh: Assigned 4 as the compile target id
Loading configuration file /Users/develar/workspace/XpressPages/client/commonLibrary/flexLibrary/target/flexLibrary-1.0-SNAPSHOT-config-report.xml
/Users/develar/workspace/XpressPages/client/commonLibrary/flexLibrary/target/flexLibrary-1.0-SNAPSHOT.swc (18288 bytes)
(fcsh) compc -load-config=client/commonLibrary/ribbon/target/ribbon-1.0-SNAPSHOT-config-report.xml
fcsh: Assigned 5 as the compile target id
Loading configuration file /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/target/ribbon-1.0-SNAPSHOT-config-report.xml
/Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/target/ribbon-1.0-SNAPSHOT.swc (19021 bytes)
(fcsh) compc -load-config=client/model/target/model-1.0-SNAPSHOT-config-report.xml
fcsh: Assigned 6 as the compile target id
Loading configuration file /Users/develar/workspace/XpressPages/client/model/target/model-1.0-SNAPSHOT-config-report.xml
/Users/develar/workspace/XpressPages/client/model/target/model-1.0-SNAPSHOT.swc (4547 bytes)
(fcsh) mxmlc -load-config=client/editor/target/editor-3.0-SNAPSHOT-config-report.xml
fcsh: Assigned 7 as the compile target id
Loading configuration file /Users/develar/workspace/XpressPages/client/editor/target/editor-3.0-SNAPSHOT-config-report.xml
/Users/develar/workspace/XpressPages/client/editor/target/editor-3.0-SNAPSHOT.swf (244062 bytes)
(fcsh) compile 1
Loading configuration file /Users/develar/workspace/XpressPages/client/editorSkins/twp/target/skins/twp-1.0-SNAPSHOT-config-report.xml
Nothing has changed since the last compile. Skip...
/Users/develar/workspace/XpressPages/client/editorSkins/twp/target/skins/twp-1.0-SNAPSHOT.swf (24960 bytes)
(fcsh) compile 2
Loading configuration file /Users/develar/workspace/XpressPages/client/navigation/target/navigation-1.0-SNAPSHOT-config-report.xml
Nothing has changed since the last compile. Skip...
/Users/develar/workspace/XpressPages/client/navigation/target/navigation-1.0-SNAPSHOT.swc (10304 bytes)
(fcsh) compile 3
Loading configuration file /Users/develar/workspace/XpressPages/client/userSkins/navigationSkins/target/skins/navigationSkins-1.0-SNAPSHOT-config-report.xml
Detected configuration changes. Recompile...
Recompile: /Users/develar/workspace/XpressPages/client/userSkins/navigationSkins/src/main/flex/com/thewebproduction/xpressPages/skins/navigationSkins/NavigationButtonSkin.mxml
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/userSkins/navigationSkins/src/main/flex/com/thewebproduction/xpressPages/skins/navigationSkins/NavigationContainerSkin.mxml
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/userSkins/navigationSkins/src/main/flex/navigationSkins.css
Reason: Forced recompilation.
Files changed: 0 Files affected: 3
/Users/develar/workspace/XpressPages/client/userSkins/navigationSkins/target/skins/navigationSkins-1.0-SNAPSHOT.swf (33271 bytes)
(fcsh) compile 4
Loading configuration file /Users/develar/workspace/XpressPages/client/commonLibrary/flexLibrary/target/flexLibrary-1.0-SNAPSHOT-config-report.xml
Nothing has changed since the last compile. Skip...
/Users/develar/workspace/XpressPages/client/commonLibrary/flexLibrary/target/flexLibrary-1.0-SNAPSHOT.swc (18288 bytes)
(fcsh) compile 5
Loading configuration file /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/target/ribbon-1.0-SNAPSHOT-config-report.xml
Detected configuration changes. Recompile...
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/fluent/skins/ApplicationTitleBarSkin.mxml
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/fluent/skins/StatusBarSkin.mxml
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/fluent/components/ApplicationTitleBar.as
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/ribbon/ApplicationButton.as
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/ribbon/RibbonBox.as
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/ribbon/Tab.as
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/ribbon/Ribbon.as
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/ribbon/Tabs.as
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/fluent/skins/StatusBarSideSkin.mxml
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/ribbon/Group.as
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/fluent/components/StatusBar.as
Reason: Forced recompilation.
Recompile: /Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/ribbon/skins/TabSkin.as
Reason: Forced recompilation.
Files changed: 0 Files affected: 12
/Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/fluent/skins/ApplicationTitleBarSkin.mxml: Error: unable to resolve '/applicationTitleBar/background.png' for transcoding
/Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/fluent/skins/ApplicationTitleBarSkin.mxml: Error: Unable to transcode /applicationTitleBar/background.png.
/Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/fluent/skins/StatusBarSkin.mxml: Error: unable to resolve '/statusBar/sideDivider.png' for transcoding
/Users/develar/workspace/XpressPages/client/commonLibrary/ribbon/src/main/flex/com/thewebproduction/fluent/skins/StatusBarSkin.mxml: Error: Unable to transcode /statusBar/sideDivider.png.
(fcsh)
@@ -454,6 +457,7 @@
benchmark.stopTime(Benchmark.PRECOMPILE, false);
}
+ ThreadLocalToolkit.getPathResolver().addSinglePathResolver(new SourcePathResolver(s.sourcePath));
List<CompilationUnit> units = CompilerAPI.compile(s.fileSpec, s.sourceList, s.classes.values(),
s.sourcePath, s.resources, s.bundlePath, swcContext,
symbolTable, configuration, compilers,
@@ -1350,4 +1354,28 @@
super();
}
}
Я удалил idea-fcsh-fix.jar (так Fcsh в нем переопределял мой) и собрал свой. Замечу, что mxmlc работает отлично и без патча (у меня есть модуль swf который использует embed так же, как и эта библиотека swc).
Будет отлично, если вы также будете исправлять проблему и для 4 версии SDK.
patch will be updated soon
@@ -454,6 +457,7 @@
benchmark.stopTime(Benchmark.PRECOMPILE, false);
}
+ ThreadLocalToolkit.getPathResolver().addSinglePathResolver(new SourcePathResolver(s.sourcePath));
List<CompilationUnit> units = CompilerAPI.compile(s.fileSpec, s.sourceList, s.classes.values(),
s.sourcePath, s.resources, s.bundlePath, swcContext,
symbolTable, configuration, compilers,
@@ -602,6 +606,7 @@
benchmark.stopTime(Benchmark.PRECOMPILE, false);
}
+ ThreadLocalToolkit.getPathResolver().addSinglePathResolver(new SourcePathResolver(s.sourcePath));
if (projector != null && projector.getName().endsWith("avmplus.exe"))
{
s.units = CompilerAPI.compile(s.fileSpec, s.sourceList, null, s.sourcePath, s.resources, s.bundlePath,
@@ -1350,4 +1355,28 @@
super();
}
}
to be precise, SourcePathResolver must be set before each invocation of CompilerAPI.compile(...),
in compc() and compile_compc() also
Adobe issues are:
http://bugs.adobe.com/jira/browse/SDK-20569
http://bugs.adobe.com/jira/browse/SDK-20570