Java &引用;。蚂蚁不存在”;错误生成Aibu

Java &引用;。蚂蚁不存在”;错误生成Aibu,java,macos,ant,Java,Macos,Ant,我成功地用蚂蚁建造了咖啡店。但是,我无法构建图像序列注释器 pc-194-6:aibu六月$ant 构建文件:/Users/liangjun/Documents/aibu/build.xml 常春藤: 生成失败 /Users/liangjun/Documents/aibu/build.xml:13:/Users/liangjun/.ant不存在。 尝试删除 <fileset dir="${user.home}/.ant/" includes="*.jar"/> 在构建aibu项目

我成功地用蚂蚁建造了咖啡店。但是,我无法构建图像序列注释器

pc-194-6:aibu六月$ant
构建文件:/Users/liangjun/Documents/aibu/build.xml
常春藤:

生成失败
/Users/liangjun/Documents/aibu/build.xml:13:/Users/liangjun/.ant不存在。
尝试删除

<fileset dir="${user.home}/.ant/" includes="*.jar"/>

在构建aibu项目之前。

我在使用ant build构建jar时遇到了类似的问题。 我通过
mkdir~/.ant/lib
然后重新运行
ant编译jar
它成功地运行了


似乎有点俗气:-)

只是猜测,但构建例程可能会寻找不同的蚂蚁位置。你能试试“哪只蚂蚁”并搜索蚂蚁二进制文件,看看你的机器上有什么蚂蚁的位置吗?看起来你是对的,但在我安装了常春藤之后,它仍然不能工作。不知道为什么这条路是个问题。我尝试将路径更改为ant-lib和ivy-lib,但都没有完成。
<condition property="ivy.home" value="${env.IVY_HOME}">
  <isset property="env.IVY_HOME" />
</condition>
<property name="ivy.home" value="${user.home}/.ant" />
<property name="ivy.jar.dir" value="${ivy.home}/lib" />
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />

<target name="download-ivy" unless="offline">

    <mkdir dir="${ivy.jar.dir}"/>
    <!-- download Ivy from web site so that it can be used even without any special installation -->
    <get src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar" 
         dest="${ivy.jar.file}" usetimestamp="true"/>
</target>

<target name="init-ivy" depends="download-ivy">
  <!-- try to load ivy here from ivy home, in case the user has not already dropped
          it into ant's lib dir (note that the latter copy will always take precedence).
          We will not fail as long as local lib dir exists (it may be empty) and
          ivy is in at least one of ant's lib dir or the local lib dir. -->
    <path id="ivy.lib.path">
        <fileset dir="${ivy.jar.dir}" includes="*.jar"/>

    </path>
    <taskdef resource="org/apache/ivy/ant/antlib.xml"
             uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
</target>
ant publish-working