{"id":25720144,"url":"https://github.com/gregwhitaker/envopts","last_synced_at":"2026-05-15T04:35:40.468Z","repository":{"id":82732512,"uuid":"248877840","full_name":"gregwhitaker/envopts","owner":"gregwhitaker","description":"Parses an environment variable into Java system parameters","archived":false,"fork":false,"pushed_at":"2020-03-21T23:11:59.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T17:41:34.743Z","etag":null,"topics":["docker","environment-variables","system-properties"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregwhitaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-21T00:22:22.000Z","updated_at":"2021-09-09T01:49:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"e80ac868-ab98-4132-a51f-bf4a78cf55ae","html_url":"https://github.com/gregwhitaker/envopts","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gregwhitaker/envopts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fenvopts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fenvopts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fenvopts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fenvopts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/envopts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fenvopts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33053945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","environment-variables","system-properties"],"created_at":"2025-02-25T17:36:40.404Z","updated_at":"2026-05-15T04:35:40.450Z","avatar_url":"https://github.com/gregwhitaker.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envopts\n[![Build Status](https://travis-ci.org/gregwhitaker/envopts.svg?branch=master)](https://travis-ci.org/gregwhitaker/envopts)\n\nParses an environment variable containing multiple system properties and sets the properties for use in a Java application.\n\nThis is useful for when you want to supply a bunch of system properties to a Docker container.\n\n## Importing\nThe library is available on [BinTray JCenter](https://bintray.com/gregwhitaker/maven/envopts):\n\n* Maven\n\n        \u003cdependency\u003e\n            \u003cgroupId\u003ecom.github.gregwhitaker\u003c/groupId\u003e\n            \u003cartifactId\u003eenvopts\u003c/artifactId\u003e\n            \u003cversion\u003e1.0.0\u003c/version\u003e\n        \u003c/dependency\u003e\n        \n* Gradle\n\n        implementation 'com.github.gregwhitaker:envopts:1.0.0'\n\n## Usage\nSimply supply an environment variable named `ENV_OPTS` with a comma-delimited string of system properties you would like\nto set on the JVM:\n\n    ENV_OPTS=-Dspring.profiles.active='local,dev',-Dlog4j.configurationFile=log4j2.xml\n    \nThen in your application startup add the following:\n\n    EnvOpts.parse();\n    \nOnce the environment variable is parsed you will be able to access the system properties like so:\n\n    System.getProperty(\"spring.profiles.active\")\n    \n## Examples\nPlease see the example projects below for demonstrations on how to use envopts in different environments:\n\n* [Docker](https://github.com/gregwhitaker/envopts-springboot-example) - Example of using envopts in a Spring Boot application packaged as a Docker container.\n\n## Building from Source\nRun the following command to build EnvOpts from source:\n\n    ./gradlew clean build\n\n## Bugs and Feedback\nFor bugs, questions, and discussions please use the [Github Issues](https://github.com/gregwhitaker/envopts/issues).\n\n## License\nMIT License\n\nCopyright (c) 2020 Greg Whitaker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fenvopts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Fenvopts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fenvopts/lists"}