Sha256: d97ca3b8a7625ceeb7734083532ecad4b9744042519009b6c3fbb99b7753a740

Contents?: true

Size: 572 Bytes

Versions: 3

Compression:

Stored size: 572 Bytes

Contents

require "rake"
require "fileutils"
require "dtc_rake/config"
require "dtc_rake/product"
require "dtc_rake/ui"
require "dtc_rake/util"

include DtcRake::UI
product = DtcRake::Product.instance

if product.has_cmd
  namespace :build do
    desc "Builds pack with command server"
    task :cmd do
      DtcRake.check_jruby!
      DtcRake.check_bundler!
      announce "Building command server pack"

      FileUtils.cd product.cmd_project do
        system "rake package"
      end

      DtcRake.mv_to_output_dir(product.cmd_project, product.cmd_file_name)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dtc_rake-1.2.1 lib/tasks/build_cmd.rake
dtc_rake-1.2.0 lib/tasks/build_cmd.rake
dtc_rake-1.1.0 lib/tasks/build_cmd.rake