function setBuildArtifact(h,varargin)

%   Copyright 2014 The MathWorks, Inc.

h.setBuildArtifactProperties( varargin{ : } );
% Remove the options the existing builder added to the build
% configurations
options = h.BuilderApplication.OptionsRegistry( 1:2:end );
h.removeBuildConfigurationOption( options );
% Regenerate the builder application
h.BuilderApplication = h.createBuildTool();
for i = 1:numel( h.SupportedLanguages )
    h.generateBuilderApplication( h.SupportedLanguages{ i } );
end
end
