Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing ant build.xml in Eclipse

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"/> 
like image 776
Suresh Avatar asked Oct 07 '10 09:10

Suresh


People also ask

Where is build xml in Eclipse?

xml file, right click the project select new->other->xml , enter the name as build. xml and click finish . to build the project right click the build. xml file and select ant build .

How do I open Ant in Eclipse?

To open this view, select Window→ Show View→ Other→ Ant (or Window→ Show View→ Ant if you've opened this view before).

How do I run an Ant file in xml?

To run the ant build file, open up command prompt and navigate to the folder, where the build. xml resides, and then type ant info. You could also type ant instead. Both will work,because info is the default target in the build file.


1 Answers

From this link:

  1. Open Eclipse, select File > New > Project
  2. Select "Java Project from Existing Ant Build File"
  3. Show your build file and write a project name
like image 126
mmdemirbas Avatar answered Sep 18 '22 16:09

mmdemirbas