Comments (9)
There should be one config file here: %APPDATA%/JEnv/jenv.config.json
Every other file named jenv.config is most likely from an old version of jenv and can safely be deleted.
I thought of maybe a template name like ``java%version%` where %version% will be replaced by the java version. This would allow for more flexibility and could be expanded in the future. but let's discuss this in the new issue.
It would be exciting though if you would keep me up to date on how your company integrated jenv into the workflow. As I do not use windows anymore I often don't know what the problems are and what features are missing
from jenv-for-windows.
Also raised a similar issue in the jenv project. See jenv/jenv#362
from jenv-for-windows.
That sounds like a great feature. Do you want to work on it?
from jenv-for-windows.
This is now implemented and will therefore be closed. View Readme for jenv autoscan
from jenv-for-windows.
This jenv autoscan
is great! Would it be possible to accept some kind of -y
to autoaccept the suggested name, so there is no need of user intervention?
from jenv-for-windows.
Sure. This can be easily implemented.
Out of curiousity, why would one not want to review the suggestions? Are you writing any script that uses JEnv?
Would you please open a new issue so this can be implemented. Also answer thefe if the -y flag is just for names or also to add the java version? Should they be separated i to two flags?
from jenv-for-windows.
Out of curiousity, why would one not want to review the suggestions? Are you writing any script that uses JEnv?
Yes, we are trying to automate some things for our developers.
Would you please open a new issue so this can be implemented. Also answer thefe if the -y flag is just for names or also to add the java version? Should they be separated i to two flags?
Sure. I'll open now!
from jenv-for-windows.
In this case, it might be better to copy a jenv.config template into the config folder.
I suppose your company has all its Java versions installed on C:/ProgramFiles/java/ or at some fixed path that won't change.
Then you could create a jenv.config, add all the versions with custom names, and when a new user profile is created automatically copy the config file into %APPDATA%/JEnv
from jenv-for-windows.
Yes, this may do the trick for now. But I have 2 files there: jenv.config
and jenv.config.json
. On the second one there is information about locals and global too. Is it enough to only add versions to the first one?
BTW, I just see the new jenv add
command on the original jEnv project. It doesn't require a name anymore and autocreate some alias for the specified installation. See here.
from jenv-for-windows.
Related Issues (20)
- win10无法切换全局版本 HOT 3
- Cannot change global variables for Windows10 HOT 3
- Option to download and install java versions HOT 8
- Use `.java-version` file for local version HOT 2
- Help feature not working because mandatory params where not fullfilled
- Autoaccept defaults on "jenv autoscan" HOT 2
- Error when jEnv is on a Path with spaces HOT 1
- Success message when removing invalid jdk name HOT 1
- Make jenv for Windows have same commandline options and logic as https://www.jenv.be/ HOT 15
- Non destructive PATH configuration HOT 1
- Can't add a java version HOT 1
- JEnv is changing your environment variables. This process could take longer but it happens only when a jenv executable is found in your path HOT 10
- List registered JDKs HOT 2
- Using "jenv change" doesn't change JAVA_HOME for current session
- "jenv use" doesn't work in powershell HOT 11
- There is no way to show the current global version HOT 1
- Conflicts with other batch file executions on windows HOT 4
- bash: jenv: command not found in gitbash HOT 1
- "jenv list" not display jdk currently used after "jenv local" and then "jenv use" in a directory HOT 1
- Environment variable backup HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenv-for-windows.