Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Yes you can create a default.build file (in this way you don't need to specify the file, because it's used by default). On it you can create the following targets:</p> <pre><code>&lt;target name="all" depends="app1, app2" /&gt; &lt;target name="app1"&gt; &lt;ant antfile=&lt;app1file&gt; target="compile" /&gt; &lt;/target&gt; &lt;target name="app2"&gt; &lt;ant antfile=&lt;app2file&gt; target="compile" /&gt; &lt;/target&gt; </code></pre> <p>On this way you can use both ant file from one unique file.</p> <p>And you can do all in only one file, if you replace the app1 and app2 targets, with the needed targets to compile them that you have in the separate files.</p> <p>EDITED:</p> <p>You have different ways to include both of them in only one file, maybe the easiest one is include a suffix for each project on each target. And you can call the specific project target or the target for both.</p> <p>I put you an example with the compile target (and for init target too).</p> <p>You can use compile for compile both projects (I call the other project other), and compileazeboster to compile the azeboster project. </p> <p>You can search the common things to avoid the innecesary duplicated code (common paths, targets and so on)</p> <pre><code>&lt;property name="srcazebooster" location="src/com/aelitis"/&gt; &lt;property name="buildazebooster" location="build/azebooster"/&gt; &lt;property name="jarazebooster" location="jar/azebooster"/&gt; &lt;property name="srcother" location="src/other"/&gt; &lt;property name="buildother" location="build/other"/&gt; &lt;property name="jarother" location="jar/other"/&gt; &lt;!-- Start it --&gt; &lt;target name="init" depends="initazebooster, initother"/&gt; &lt;!-- Build it --&gt; &lt;target name="compile" depends="compileazebooster, compileother" description="compile the source for all" /&gt; &lt;!-- Start azebooster--&gt; &lt;target name="initazebooster"&gt; &lt;tstamp/&gt; &lt;mkdir dir="${buildazebooster}"/&gt; &lt;mkdir dir="${jarazebooster}"/&gt; &lt;/target&gt; &lt;!-- Build azeboster--&gt; &lt;target name="compileazebooster" depends="initazebooster" description="compile the source for azebooster" &gt; &lt;javac srcdir="${srcazebooster}" destdir="${buildazebooster}"&gt; &lt;classpath&gt; &lt;path refid="classpath"/&gt; &lt;/classpath&gt; &lt;/javac&gt; &lt;/target&gt; &lt;!-- Start other--&gt; &lt;target name="initother"&gt; &lt;tstamp/&gt; &lt;mkdir dir="${buildotherr}"/&gt; &lt;mkdir dir="${jarother}"/&gt; &lt;/target&gt; &lt;!-- Build other--&gt; &lt;target name="compileother" depends="initother" description="compile the source for other" &gt; &lt;javac srcdir="${srcother}" destdir="${buildother}"&gt; &lt;classpath&gt; &lt;path refid="classpath"/&gt; &lt;/classpath&gt; &lt;/javac&gt; &lt;/target&gt; </code></pre>
 

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