Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The three wild cards are:

CharacterBehavior
**Matches any files in any directories
*Matches files in in a directory
?Matches a single character in a file/directory name

 


Examples

Example file system:

Code Block
Output\
	Binaries\
		App.exe
		Installer.exe
		Helpers\
			setup.bat
			cleanup.exe
	Images\
		logo.png
		Website\
			connect.jpeg
		App\
			error.png
			license.jpeg
	Source\
		App.cs
		MoreCode.cs
	ServerApp.exe

...

Code Block
Output\ServerApp.exe
Output\Binaries\App.exe
Output\Binaries\Installer.exe
Output\Binaries\Helpers\cleanup.exe

 


Wildcard Example: *

To find all .exe files in the Binaries directory and not in sub-directories you would use the pattern: Output\Binaries\*.exe

...

It would return the following files: 

Code Block
Output\Binaries\App.exe
Output\Binaries\Installer.exe
Output\Binaries\Helpers\cleanup.exe

 

...



Info

For more information on Ant patterns, see the official documentation at http://ant.apache.org/manual/dirtasks.html#patterns