Adding Files to a Project |
If you have a small number of source files then it may be easiest to just supply their names to the analyzer using the wildcarding abilities of your operating system shell. In this example we will process all Ada specification files (.ads) and Ada body files (.adb) in the folder:
In some cases there may be too many file locations to use the -add technique. A common command line limitation is 255 characters. A directory with hundreds or thousands of files may easily exceed this limit. In this case, or when you want more fine-grained/repeatable control over what files are processed, you should create a “listfile”. This file must have a format of one filename per line:
c:\myfiles\myproject\myproject.ads c:\myfiles\myproject\myproject.adb c:\myfiles\myproject\support.ads c:\myfiles\myproject\io.ads h:\shared\allprojects\file2.ads h:\options\file3.ads h:\options\file4.ads h:\options\file5.ads
is processed via the -add command line option:
Note that there is no limit on the number of files listed in the list file.
Scientific Toolworks, Inc. http://www.scitools.com |