function filenames = saveBuildConfigurations(h)

% Copyright 2014 The MathWorks, Inc.

narginchk( 1, 1 );
allConfigs = h.BuildConfigurations.keys();
configs = [ ];
filenames = [ ];
for i = 1:numel( allConfigs )
bc = h.getBuildConfiguration( allConfigs{ i } );
if ~isempty( bc.File )
configs{ end + 1 } = allConfigs{ i }; %#ok<AGROW>
filenames{ end + 1 } = bc.File; %#ok<AGROW>
end
end
h.saveBuildConfigurationToFile( configs, filenames );
end