在 Eclipse 中导入 ant build.xml [英] Importing ant build.xml in Eclipse

查看:45
本文介绍了在 Eclipse 中导入 ant build.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用ant构建的android项目,是否可以在eclipse IDE中导入这个ant项目?

I have an android project that uses ant to build, is it possible to import this ant project in eclipse IDE?

update :有一个选项可以使用 ant build.xml 在 eclipse File->New->Project->Java->Java project from existing ant Buildfile 中创建项目.如果选择了 build.xml 文件,它会显示错误 Specified buildfile does not contain a javac task

update : There is an option to create project using ant build.xml in eclipse File->New->Project->Java->Java project from existing ant Buildfile. and if the build.xml file is selected it show error Specified buildfile does not contain a javac task

我猜 javac 是在这个任务中声明的

I guess javac is declared in this task

<taskdef name="setup"
classname="com.android.ant.SetupTask"
classpathref="android.antlibs"/>

推荐答案

来自 这个链接:

  1. 打开 Eclipse,选择文件 > 新建 > 项目
  2. 选择来自现有 Ant 构建文件的 Java 项目"
  3. 显示您的构建文件并写入项目名称

这篇关于在 Eclipse 中导入 ant build.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆