Skip to content
dudinea edited this page Aug 25, 2017 · 3 revisions

Run configurations

Description

Modern IDEs have run configurations which are a way to tell IDE how to run your project. Eclim have also run configurations. They are simple text files with elisp structure that describe how the project should be run. To run your project emacs-eclim uses java or jdb.

Installation

jdb is distributed with Oracle jdk so installation of jdb is the same as for jdk. If you’re using emacs-eclim I guess you’re already figure out how to install jdk.

Configuration

To store configuration emacs-eclim uses .eclim files that are kept in project root directory. Example of .eclim file:

;; -*- mode: emacs-lisp -*-
(((name . "Run remote control")
  (main-class . "com.lgi.remotecontrol.service.RemoteControlApplication")
  (program-args . "server src/main/resources/dev.json")
  (vm-args . "-Dwhatever=42")))

Mandatory keys:

  • name - used to identify configuration
  • main-class - main class to run

Optional keys:

  • vm-args - virtual machine arguments (e.g. -Dmvn.test.skip=true)
  • program-args - specific for this run program arguments that will be passed to main

Usage

Currently there’s single command that will ask which configuration to run.

Key-bindings

Key Binding Description
C-c C-e u r choose configuration and run
Clone this wiki locally