Figured it out. Had to change things a bit but it appears to be working.

<target name="Administrator">
    <java jar="${mxmlc.jar}" fork="true">
        <arg value="-local-fonts-snapshot"/>
        <arg value="${flexsdk.home}/frameworks/winFonts.ser"/>
        <arg value="-load-config"/>
        <arg value="${basedir}/build/administrator-config.xml"/>
        <arg line="'${basedir}/as3/Administrator.mxml'"/>
    </java>
</target>



Paul Spitzer wrote:
> In my attempt to use mxmlc.jar w/ ANT I found that the following error 
> is reported... "defaults: Error: unable to open './winFonts.ser'". I 
> found the file in the Flex SDK 2\frameworks directory and modified my 
> <java> task. My target looks like (note the dir)...
>
> <target name="Administrator">
>    <java jar="${mxmlc.jar}" fork="true" dir="${flexsdk.home}/frameworks">
>        <arg line="-load-config 
> '${basedir}/build/administrator-config.xml'"/>
>        <arg line="'${basedir}/as3/Administrator.mxml'"/>
>    </java>
> </target>
>
> The problem now is that my relative source paths in my config don't 
> resolve properly. <path-element>as3</path-element> I'd really rather 
> not make those absolute paths.
>
> Any ideas? Many thanks.
>



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to