You probably want to generate replacement text first by processing the directory containing the .js files.
fileset , pathconvert html . " my_dir", :
<fileset id="dir.contents" dir="my_dir">
<include name="*.js"/>
</fileset>
<pathconvert pathsep="${line.separator}" property="js.html" refid="dir.contents">
<chainedmapper>
<mapper type="flatten" />
<regexpmapper from="(.*)"
to='<script type="text/javascript" src="http://your.url/\1"></script>' />
</chainedmapper>
</pathconvert>
<echo>${js.html}</echo>
flatten , .
:
[echo] <script type="text/javascript" src="http://your.url/a.js"></script>
[echo] <script type="text/javascript" src="http://your.url/b.js"></script>
[echo] <script type="text/javascript" src="http://your.url/c.js"></script>
, ${js.html} regexp.