<p>I am developing a small web app project (ColdFusion) and I am trying to keep my project split into multiple files during development, but deploy just one file on completion.</p>

<p>I have references to external files, for instance:</p>

<pre><code>&lt;script type="text/javascript" src="jquery-1.2.6.pack.js"&gt;&lt;/script&gt;
&lt;link type="text/css" rel="stylesheet" href="project.css" /&gt;
</code></pre>

<p>And when I build my project, I want to have the files included and embedded within the single finished product file.</p>

<pre><code>&lt;script type="text/javascript"&gt;eval(function(p,a,c,k,e,r) [...]&lt;/script&gt;
&lt;style type="text/css"&gt;div{font:normal;} [...]&lt;/style&gt;
</code></pre>

<p>Anyway, it doesn't look like there is a basic way for Ant to do this. Anyone know?</p>

Does this do what you want?
```
```
<property
    name="filename"
    value="jquery-1.2.6.pack.js"
/>

<loadfile
    property="contents"
    srcfile="${filename}"
/>

<replace dir=".">
    <include name="index.cfm"/>
    <replacetoken><![CDATA[<script type="text/javascript" src="${filename}"></script>]]></replacetoken>
    <replacevalue><![CDATA[<script type="text/javascript">${contents}</script>]]></replacevalue>
</replace>
```
```