Odd, as far I can tell the only code that is platformn related is the
one to launch unit tests.  Everything else is pure plain java.

Particulary I dont do *nix OSes, only windows, could be something
there can't tell.

Any *nix guy willing to help?

On Oct 11, 11:49 am, jwpammer <[email protected]> wrote:
> Hey guys. First, thanks for a great product – and the continued
> efforts to make it better with each release.
>
> Now, my issue…
>
> I am seeing differences in the flex-config.xml file that is generated
> between Ubuntu and Mac OS X. Our Mac build works flawlessly, but the
> Ubuntu build ends up ignoring properties explicitly set in the
> pom.xml.
>
> First, some context:
>
> Mac Environment:
> Apache Maven 3.0.3 (r1075438; 2011-02-28 11:31:09-0600)
> Maven home: /usr/share/maven
> Java version: 1.6.0_26, vendor: Apple Inc.
> Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/
> Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x", version: "10.7.1", arch: "x86_64", family: "mac"
>
> Ubuntu Environment
> Apache Maven 3.0.3 (r1075438; 2011-02-28 11:31:09-0600)
> Maven home: /usr/local/maven
> Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.38-11-virtual", arch: "amd64", family:
> "unix"
>
> Flex Mojos: 4.0-RC2
> Flex SDK:4.5.1.21328
>
> Here is a portion of our pom.xml (note some of these setting are just
> for illustration purposes):
>
> <configuration>
>   <debug>true</debug>
>   <optimize>true</optimize>
>   <sourceFile>${source.file}</sourceFile>
>   <swfVersion>11<swfVersion>
>   <headlessServer>true</headlessServer>
>   <fonts>
>     <maxCachedFonts>10</maxCachedFonts>
>     <maxGlyphsPerFace>500</maxGlyphsPerFace>
>     <managers>
>         <manager>flash.fonts.AFEFontManager</manager>
>         <manager>flash.fonts.CFFFontManager</manager>
>     </managers>
>   </fonts>
>   <themes>
>     <theme>themes/Spark/spark.css</theme>
>   </themes>
> </configuration>
>
> On Mac, the configuration above produces the following flex-config.xml
> (abbreviated):
>
> <flex-config>
>    <compiler>
>       <debug>true</debug>
>       <fonts>
>          <managers>
>             <manager-class>flash.fonts.AFEFontManager</manager-class>
>             <manager-class>flash.fonts.CFFFontManager</manager-class>
>          </managers>
>          <max-cached-fonts>10</max-cached-fonts>
>          <max-glyphs-per-face>500</max-glyphs-per-face>
>       </fonts>
>       <headless-server>true</headless-server>
>    </compiler>
>    <swf-version>11</swf-version>
> </flex-config>
>
> But on Ubuntu, the <swfVersion> is ignored as well as the entire
> <fonts> section.  Some properties applied correctly though, like
> <debug>, <optimize> and <headless-server> (abbreviated)::
>
> <flex-config>
>    <compiler>
>       <debug>true</debug>
>       <fonts>
>          <managers>
>             <manager-class>flash.fonts.JREFontManager</manager-class>
>             <manager-class>flash.fonts.BatikFontManager</manager-
> class>
>          </managers>
>          <max-cached-fonts>20</max-cached-fonts>
>          <max-glyphs-per-face>1000</max-glyphs-per-face>
>       </fonts>
>       <headless-server>true</headless-server>
>    </compiler>
>    <swf-version>10</swf-version>
> </flex-config>
>
> I haven’t been able to determine if the settings are getting applied
> and then later overridden or if they are simply getting ignored.
>
> It’s worth mentioning that I’ve been able to reproduce this on Ubuntu
> 10.04 and 11.04 – both which were freshly built servers.
>
> The current work-around I found is to use an external config.xml that
> specifies these configuration properties that aren’t applying. So, the
> pom.xml above becomes:
>
> <configuration>
>   <debug>true</debug>
>   <optimize>true</optimize>
>   <sourceFile>${source.file}</sourceFile>
>   <loadConfigs>
>     <loadConfig>./flex-config-template.xml</loadConfig>
>   </loadConfigs>
>   <swfVersion>11<swfVersion>
>   <headlessServer>true</headlessServer>
>   <fonts>
>     <advancedAntiAliasing>true</advancedAntiAliasing>
>     <maxCachedFonts>10</maxCachedFonts>
>     <maxGlyphsPerFace>500</maxGlyphsPerFace>
>     <managers>
>         <manager>flash.fonts.AFEFontManager</manager>
>         <manager>flash.fonts.CFFFontManager</manager>
>     </managers>
>   </fonts>
>   <themes>
>     <theme>themes/Spark/spark.css</theme>
>   </themes>
> </configuration>
>
> With a flex-config-template.xml that looks like:
>
> <?xml version="1.0"?>
> <flex-config>
>   <swf-version>11</swf-version>
>   <compiler>
>     <fonts>
>       <managers>
>         <manager-class>flash.fonts.AFEFontManager</manager-class>
>         <manager-class>flash.fonts.CFFFontManager</manager-class>
>       </managers>
>     </fonts>
>   </compiler>
> </flex-config>
>
> This approach generates what we need on both platforms, but is a bit
> clunky. I’m curious to learn if there is something specific we should
> be doing on the Ubuntu servers to get this working or if this is a
> known issue. Thanks in advance, Justin

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