"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const version_1 = require("../upgrade/version");
const build_1 = require("./build");
const Command = require('../ember-cli/lib/models/command');
// defaults for BuildOptions
exports.baseJarCommandOptions = build_1.baseBuildCommandOptions.concat([
    { name: 'output-jar-path', type: 'Path', default: 'dist', aliases: ['ojp'] },
    { name: 'input-jar-path', type: 'Path', default: 'liferay', aliases: ['ijp'] }
]);
const JarCommand = Command.extend({
    name: 'jar',
    description: 'Create a portlet jar for deployment to Liferay DXP',
    aliases: ['j'],
    availableOptions: exports.baseJarCommandOptions.concat([]),
    run: function (commandOptions) {
        const project = this.project;
        // Check angular version.
        version_1.Version.assertAngularVersionIs2_3_1OrHigher(project.root);
        const JarTask = require('../tasks/speedray/jar').default;
        const jarTask = new JarTask({
            cliProject: project,
            ui: this.ui,
        });
        return jarTask.run(commandOptions);
    }
});
exports.default = JarCommand;
//# sourceMappingURL=/home/ddavis/Projects/xtivia/speedray/speedray-cli/commands/jar.js.map