进口在Eclipse的Ant build.xml [英] importing ant build.xml in eclipse
本文介绍了进口在Eclipse的Ant build.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用Ant来构建一个Android项目,是否有可能在Eclipse IDE中导入这种蚂蚁的项目?
更新:有一个选项用来创建项目的Ant 的build.xml
在eclipse文件 - >新建 - >项目 - > Java的> Java项目,从现有的Ant构建。如果选择了build.xml文件就显示错误指定生成文件不包含javac任务
我猜javac在这个任务中声明
<的taskdef名=设置
类名=com.android.ant.SetupTask
classpathref =android.antlibs/>
解决方案
- 开启Eclipse中,选择文件> 新> 项目
- 选择 Java项目,从现有的Ant构建文件
- 在显示你的构建文件,并写入一个项目名称
I have an android project that uses ant to build, is it possible to import this ant project in eclipse IDE?
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
I guess javac is declared in this task
<taskdef name="setup"
classname="com.android.ant.SetupTask"
classpathref="android.antlibs"/>
解决方案
From this link:
- Open Eclipse, select File > New > Project
- Select "Java Project from Existing Ant Build File"
- Show your build file and write a project name
这篇关于进口在Eclipse的Ant build.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文