Skip to Main Content Skip to Search
Product Documentation

getNonBuildFiles - Nonbuild-related files from model build information

Syntax

files=getNonBuildFiles(buildinfo, concatenatePaths, replaceMatlabroot, includeGroups, excludeGroups)

includeGroups and excludeGroups are optional.

Input Arguments

buildinfo

Build information returned by RTW.BuildInfo.

concatenatePaths

The logical value true or false.

If You Specify...The Function...
trueConcatenates and returns each filename with its corresponding path.
falseReturns only filenames.

    Note   It is not required to resolve the path of every file in the model build information, because the makefile for the model build will resolve file locations based on source paths and rules. Therefore, specifying true for concatenatePaths returns the path for each file only if a path was explicitly associated with the file when it was added.

replaceMatlabroot

The logical value true or false.

If You Specify...The Function...
trueReplaces the token $(MATLAB_ROOT) with the absolute path string for your MATLAB installation folder.
falseDoes not replace the token $(MATLAB_ROOT).

includeGroups (optional)

A character array or cell array of character arrays that specifies groups of nonbuild files you want the function to return.

excludeGroups (optional)

A character array or cell array of character arrays that specifies groups of nonbuild files you do not want the function to return.

Output Arguments

Names of nonbuild files stored in the model build information.

Description

The getNonBuildFiles function returns the names of nonbuild-related files, such as DLL files required for a final executable, or a README file, stored in the model build information. Use the concatenatePaths and replaceMatlabroot arguments to control whether the function includes paths and your MATLAB root definition in the output it returns. Using optional includeGroups and excludeGroups arguments, you can selectively include or exclude groups of nonbuild files the function returns.

If you choose to specify excludeGroups and omit includeGroups, specify a null string ('') for includeGroups.

Examples

Get all nonbuild filenames stored in build information myModelBuildInfo.

myModelBuildInfo = RTW.BuildInfo;
addNonBuildFiles(myModelBuildInfo, {'readme.txt' 'myutility1.dll'...
'myutility2.dll'});
nonbuildfiles=getNonBuildFiles(myModelBuildInfo, false, false);
nonbuildfiles

nonbuildfiles = 

    'readme.txt'    'myutility1.dll'    'myutility2.dll'

See Also

addNonBuildFiles

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS