Débora
Débora

Reputation: 5952

Find the Ant build files in a directory

There are projects in one of my folder. I need Ant to find the build files of those projects from the console and display. I tried following,

/myLibs/apache-ant-1.8.2/bin/ant -find /devel/projects  

My projects are located in '/devel/projects' and ant build files are in inner directories. For instance, one build file is in " /devel/projects/MOP-release/src/mop_build.xml " .

Once the above command is run, then it throws error

    What? Buildfile: /devel/projects is a dir!  
    Build failed

Error is true, and yes it is a directory. Problem is Ant find does not work. Let me how to solve this?

Upvotes: 0

Views: 1808

Answers (1)

Taher A. Ghaleb
Taher A. Ghaleb

Reputation: 5240

I think you should firstly go to the /devel/projects directory and then search using this only:

/myLibs/apache-ant-1.8.2/bin/ant -find build.xml

All the best.

Upvotes: 1

Related Questions