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"/>
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 .
To open this view, select Window→ Show View→ Other→ Ant (or Window→ Show View→ Ant if you've opened this view before).
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.
From this link:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With