aprojls - List files and units within a PowerAda project
aprojls [-hadlpxFHPS] [paths ... ]
If no path is specified, the current directory is used.
If a path specified is a sublibrary, the units in the sublibrary are listed.
If a path specified is an
adalib.imports file, the full list of sublibraries it represents is shown; with -P, only the unique project-relative sublibraries are shown.
The -l flag displays a variety of information about the entities shown, similar to that seen in a directory or sublibrary view within powerada, except all optional fields are provided. A pipe character ('|') in the first column indicates that the file or unit is local; a blank indicates the file is shadowed.
- Show hidden files/units
- Prints version, and command line help information
- Don't show directory or sublibrary contents
- Long: show powerada info about each file
- List all files in the entire project
- Explode contents of special files: PowerAda executables,
- Show fully-qualified names rather than names relative to the local directory names
- Show only hidden files
- Show project-relative names
- Show shadows, i.e., files/units in parent baselines "covered" by more recent files of the same project-relative path (implies -F)
- one or more directory, file or sublibrary names
$POWERADA/bin/aprojls - the aprojls program image
- This must be defined and indicate the powerada/ada95 directory in the PowerAda installation.
- Names a baselines file identifying aliases for baseline projects.
# use aprojls with aprojbuild to rebuild a possibly-shadowed # executable aprojbuild -lx 'aprojls -F my_program' # list all the local and shadowed units in the local # sublibrary aprojls -l adalib #list all the local and shadowed units in the local executable aprojls -x exe_name # check the validity of your all your adalib.imports and by # displaying any errors that result from "exploding" them # (this will work for adalib.files, too): find $(aprojinfo -rl1) -name adalib.imports |\ xargs -s2000 aprojls -x > /dev/null # keep only stderr
See Problems and Questions at the beginning of this Appendix.