function productionServerCompiler(varargin)

%PRODUCTIONSERVERCOMPILER Production Server Compiler app
%
%    This function will start the Production Server Compiler. You can
%    create, build and package archive deployment projects using the
%    Production Server Compiler app.
%
%    USAGE:
%    PRODUCTIONSERVERCOMPILER will start the app with an empty Production
%    Server project.
%
%    PRODUCTIONSERVERCOMPILER projectname will open an existing project in
%    the app. If the project does not exist, an error will be generated and
%    the program will exit.
%
%    See also applicationCompiler, compiler.build.productionServerArchive,
%    deploytool, libraryCompiler, mcc, webAppCompiler

% Copyright 2014-2020 MathWorks, Inc.

narginchk(0,2)

% Verify Compiler license
status = license('checkout','MATLAB_Builder_for_Java');
if ~status
    error(message('CompilerSDK:deploytool:license_checkout_error'))
end

compiler.internal.launchui(mfilename,varargin{:})

