Favicon a HTML wrapper

5 views
Skip to first unread message

Juraj Michalek

unread,
Mar 10, 2009, 3:02:26 AM3/10/09
to flexg...@googlegroups.com
Ahoj.

Ant task pre buildovanie Flex aplikacii umoznuje generovat html templatu
(index.html)
<html-wrapper
title="App"
height="100%"
width="100%"
bgcolor="#869ca7"
application="App"
swf="App"
version-major="${PLAYER_MAJOR_VERSION}"
version-minor="${PLAYER_MINOR_VERSION}"
version-revision="${PLAYER_REVISION}"
history="true"
template="express-installation"
output="${BIN_DIR}"
/>

To vygeneruje templatu postavenu na express-installation. Potreboval by
som do vysledku index.html pridat odkaz na favicon.ico.

Nemate nejaky napad?

Georgik

Michal Pavlasek

unread,
Mar 10, 2009, 3:07:49 AM3/10/09
to flexg...@googlegroups.com
nazdar,

nedalo by sa to pomocou ant replace tagu?
nahradit miesto, kam to chces pridat tym co tam je plus favicon.ico?

<replace dir="${dir}" value="${blaaaaa}">
  <include name="index.html"/>
  <replacetoken>${blaaaaa} favicon.ico</replacetoken>
</replace>

neskusal som to teraz, je to len z hlavy a teda mozno volovina :)

bye
CoPLaS

2009/3/10 Juraj Michalek <juraj.m...@asinus.org>

Juraj Michalek

unread,
Mar 10, 2009, 3:25:28 AM3/10/09
to flexg...@googlegroups.com
Ahoj.

Vdaka za tip :) Tak nakoniec som to vyriesil, problem bol v tom, ze bolo
treba pri nahradzani odescapovat XML znaky pre < a >
Tu je riesenie:
<replaceregexp file="${BIN_DIR}/index.html"
match="&lt;/head&gt;"
replace='&lt;link rel="shortcut icon" href="favicon.ico"
type="image/x-icon" /&gt;&lt;/head&gt;'/>

Este dostat znak noveho riadku pred </head> a uz je to uplne dokonale ;)

S pozdravom Georgik
Reply all
Reply to author
Forward
0 new messages