Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I build an Android project using ant4Eclipse?
    primarykey
    data
    text
    <p>I am attempting to build an Android application -- that had previously only been build using Eclipse -- using ant4Eclipse to automate the build. It has two projects, one that gets built as a JAR, and the APK (which references the JAR). Both projects reference Android libraries.</p> <p>The desired macro build process is:</p> <ol> <li>Build the JAR project (called XX)</li> <li>Export the JAR project into the APK project's lib folder</li> <li>Build the APK project</li> </ol> <p>Right now, I'm just trying to get the JAR to build. I'm sure I'll run into more problems down the line with the second project but...one thing at a time. Here's my <strong>build.xml</strong>:</p> <pre><code>&lt;project name="XX" xmlns:ant4eclipse="antlib:org.ant4eclipse" xmlns:antcontrib="antlib:net.sf.antcontrib"&gt; &lt;property environment="env"/&gt; &lt;property name="workspaceDirectory" value="${basedir}/.." /&gt; &lt;taskdef uri="antlib:net.sf.antcontrib" resource="net/sf/antcontrib/antlib.xml" /&gt; &lt;taskdef uri="antlib:org.ant4eclipse" resource="org/ant4eclipse/antlib.xml" /&gt; &lt;import file="${env.ANT_HOME}/lib/a4e-jdt-macros.xml"/&gt; &lt;!-- This is here because ANT found this library reference in my project's .classpath and couldn't find it, so I added it thus --&gt; &lt;ant4eclipse:jdtClassPathLibrary name="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"&gt; &lt;fileset dir="C:\eclipse\eclipse-galileo\plugins"&gt; &lt;include name="com.android.ide.eclpise.*.jar"/&gt; &lt;/fileset&gt; &lt;/ant4eclipse:jdtClassPathLibrary &gt; &lt;!-- I borrowed this from http://stackoverflow.com/questions/5649348/ant4eclipse-examples --&gt; &lt;target name="compileAndJar"&gt; &lt;buildJdtProject workspacedirectory="${workspaceDirectory}" projectname="XX"&gt; &lt;finish&gt; &lt;jar destfile="${jar.dir}/myjar.jar"&gt; &lt;ant4eclipse:jdtProjectFileSet workspacedirectory="${workspaceDirectory}" projectname="${buildJdtProject.project.name}"/&gt; &lt;/jar&gt; &lt;/finish&gt; &lt;/buildJdtProject&gt; &lt;/target&gt; &lt;/project&gt; </code></pre> <p>Now here's the error I'm getting when I run <strong>ant compileAndJar</strong></p> <pre><code>BUILD FAILED C:\dev\Project\Client\Android\XX\build.xml:31: The following error occurred while executing this line: C:\bin\apache-ant-1.8.2\lib\a4e-jdt-macros.xml:77: The following error occurred while executing this line: C:\bin\apache-ant-1.8.2\lib\a4e-jdt-macros.xml:133: Reference buildJdtProject.boot.classpath.path not found. </code></pre> <p>Also note I'm seeing this in the build output:</p> <blockquote> <pre><code> [echo] - bootclasspath -&gt; ${buildJdtProject.boot.classpath} </code></pre> </blockquote>
    singulars
    1. This table or related slice is empty.
    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.
 

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