(empty log message)
@@ -238,7 +238,7 @@ | ||
238 | 238 | |
239 | 239 | <target name="add_tracks" |
240 | 240 | description="Add the tracking codes to the documents"> |
241 | - <!-- before the start tag of the body --> | |
241 | + | |
242 | 242 | <reflexive> |
243 | 243 | <fileset dir="${dist.dir}"> |
244 | 244 | <include pattern="apidocs/**/*.html"/> |
@@ -246,24 +246,15 @@ | ||
246 | 246 | </fileset> |
247 | 247 | <filterchain> |
248 | 248 | <replaceregexp> |
249 | + <!-- before the start tag of the body --> | |
249 | 250 | <regexp |
250 | - pattern="<body" | |
251 | - replace="<script type="text/javascript"> window.google_analytics_uacct = "UA-642086-5"; </script> <body" | |
251 | + pattern="<body.*>" | |
252 | + replace="$0 <script type="text/javascript"> window.google_analytics_uacct = "UA-642086-5"; </script> " | |
252 | 253 | ignoreCase="true"/> |
253 | - </replaceregexp> | |
254 | - </filterchain> | |
255 | - </reflexive> | |
256 | - <!-- before the end tag of the body --> | |
257 | - <reflexive> | |
258 | - <fileset dir="${dist.dir}"> | |
259 | - <include pattern="apidocs/**/*.html"/> | |
260 | - <include pattern="apidocs-all/**/*.html"/> | |
261 | - </fileset> | |
262 | - <filterchain> | |
263 | - <replaceregexp> | |
254 | + <!-- before the end tag of the body --> | |
264 | 255 | <regexp |
265 | 256 | pattern="<\/body>" |
266 | - replace="<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-642086-5"); pageTracker._trackPageview(); </script> </body>" | |
257 | + replace="<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-642086-5"); pageTracker._trackPageview(); </script> $0" | |
267 | 258 | ignoreCase="true"/> |
268 | 259 | </replaceregexp> |
269 | 260 | </filterchain> |