You can use more elegant and crossplatform example of build.xml in
this preloader example:

http://mxdj.sys-con.com/read/274849.htm

-- 
Best regards,
 Constantiner                            mailto:[EMAIL PROTECTED]

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

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



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