Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The replacefilter token is going to replace the token you define. Why don't you add a placeholder value in the XML (i.e. [[buildTimeStamp]] ) and then use:</p> <pre><code>&lt;replace file="${conf.dir}/dev/context.xml" &gt; &lt;replacefilter token="[[buildTimeStamp]]" value="${time}" /&gt; &lt;/replace&gt; </code></pre> <p>So your original xml would be</p> <pre><code>&lt;Parameter name="deployingTimeStamp" value="[[buildTimeStamp]]" &lt;!-- shall be changed! --&gt; override="true" /&gt; </code></pre> <hr> <p><strong>Additional tips based on comment discussion:</strong></p> <p>What you might not be doing is copying your main source files into a build directory to perform your replaces first. This is pretty standard in build scripts which is why I mentioned you check your files out of source control first. If you are not using source control and have a folder on your computer then you need to copy the files from that folder to another folder first before performing your replace and other packaging of the app.</p> <pre><code> &lt;copy todir="../dest/dir"&gt; &lt;fileset dir="src_dir" excludes="**/*.java"/&gt; &lt;/copy&gt; </code></pre> <p>Something like above where you copy source to working directory. THEN you perform your actions on it, and afterwards remove it when you have a package (i.e. jar file or war file or something if java). You can view the delete functionality in Ant's documentation as well:</p> <ul> <li><a href="http://ant.apache.org/manual/Tasks/copy.html" rel="nofollow">http://ant.apache.org/manual/Tasks/copy.html</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload