Skip navigation.
Downloads | Product Documentation | Support

WebLogic Server Command Reference

## SearchAndBuild

This `Ant` task executes `build.xml` files that are included within the `FileSet`. The task assumes that all of the files defined in `FileSet` are valid build files, and executes the `Ant` task of each of them.

Make certain that your `FileSet` filtering is correct. If you include the `build.xml` file that `SearchAndBuildTask` is being called from, you will be stuck in an infinite loop as this task will execute the top level build file—itself—forever. See FileSet.

### Example

`<project name="all_modules" default="all" basedir=".">`

`<taskdef name="buildAll" classname="weblogic.ant.taskdefs.build.SearchAndBuildTask"/>`

`<target name="all">`

`<buildAll>`

`<fileset dir="${basedir}">`

`<include name="**\build.xml"/>`

`<exclude name="build.xml"/>`

`</fileset>`

`</buildAll>`

`</target>`

`</project>`