Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes, it's possible using ant. Just use the copy or sync commands to move your file:</p> <pre><code>&lt;copy todir="${distribution}/location" file="${local.path}/data/file.txt"&gt; &lt;/copy&gt; </code></pre> <p>You can also copy with rules:</p> <pre><code>&lt;copy includeemptydirs="false" todir="${combined.bin}"&gt; &lt;fileset dir="${buildbin}"/&gt; &lt;fileset dir="${output2buildbin}"/&gt; &lt;fileset dir="${output3buildbin}"/&gt; &lt;/copy&gt; </code></pre> <p>Using sync:</p> <pre><code>&lt;sync includeemptydirs="false" todir="${distres}"&gt; &lt;fileset dir="${buildres}"&gt; &lt;include name="logging/**" /&gt; &lt;/fileset&gt; &lt;/sync&gt; </code></pre> <p>Tasks are described on their doc site:</p> <p><a href="http://ant.apache.org/manual/Tasks/copy.html" rel="nofollow">http://ant.apache.org/manual/Tasks/copy.html</a></p> <p>The same 'fileset' declarative applies to the war task:</p> <pre><code>Examples Assume the following structure in the project's base directory: thirdparty/libs/jdbc1.jar thirdparty/libs/jdbc2.jar build/main/com/myco/myapp/Servlet.class src/metadata/myapp.xml src/html/myapp/index.html src/jsp/myapp/front.jsp src/graphics/images/gifs/small/logo.gif src/graphics/images/gifs/large/logo.gif then the war file myapp.war created with &lt;war destfile="myapp.war" webxml="src/metadata/myapp.xml"&gt; &lt;fileset dir="src/html/myapp"/&gt; &lt;fileset dir="src/jsp/myapp"/&gt; &lt;lib dir="thirdparty/libs"&gt; &lt;exclude name="jdbc1.jar"/&gt; &lt;/lib&gt; &lt;classes dir="build/main"/&gt; &lt;zipfileset dir="src/graphics/images/gifs" prefix="images"/&gt; &lt;/war&gt; will consist of WEB-INF/web.xml WEB-INF/lib/jdbc2.jar WEB-INF/classes/com/myco/myapp/Servlet.class META-INF/MANIFEST.MF index.html front.jsp images/small/logo.gif images/large/logo.gif </code></pre> <p><a href="http://ant.apache.org/manual/Tasks/war.html" rel="nofollow">http://ant.apache.org/manual/Tasks/war.html</a></p>
    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.
    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