简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM