Skip to content

ankitx-sharma/Dotenv_eclipse-env-variable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotenv: Apply .env to Eclipse Run Configurations

An Eclipse plugin that reads a .env file from the selected project and applies its key/value pairs to Java Application Run Configurations for the selected project.(Environment variables).

Features

  • Right-click a project in Project Explorer
    • Environment Variables → Apply .env to Run Configurations
  • Adds variables to the launch configuration’s Environment map
  • Does not auto-apply on Run/Debug (manual action by design)

How it works

  • Looks for .env in the selected project root
  • Parses lines in dotenv style:
    • KEY=VALUE
    • ignores blank lines and # comments

Installation (from update site)

  1. Help → Install New Software…
  2. Add… → select the update site
  • Update site: https://ankitx-sharma.github.io/Dotenv_eclipse-env-variable/updates/
  1. If you see “No categorized items”, uncheck:
    • Group items by category
  2. Install and restart Eclipse

Usage

  1. Create a .env file in your project root
  2. Create (or run once) a Java Run Configuration for your app
  3. Right-click the project:
    • Environment Variables → Apply .env to Run Configurations
  4. Verify in:
    • Run Configurations… → (your app) → Environment

Future Development Plan

  • Support multiple files (e.g. .env.local, .env.dev)
  • Better conflict handling (e.g. “override existing” toggle)

Compatibility

  • Tested with Eclipse 2026-03 (4.39) and Java projects.

License

MIT License

About

An Eclipse plugin that reads a .env file from the selected project and applies its key/value pairs to Java Application Run Configurations (Environment variables).

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages