Giter Site home page Giter Site logo

Comments (9)

FelixSelter avatar FelixSelter commented on August 18, 2024 1

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.

ebresie avatar ebresie commented on August 18, 2024

Also raised a similar issue in the jenv project. See jenv/jenv#362

from jenv-for-windows.

FelixSelter avatar FelixSelter commented on August 18, 2024

That sounds like a great feature. Do you want to work on it?

from jenv-for-windows.

FelixSelter avatar FelixSelter commented on August 18, 2024

This is now implemented and will therefore be closed. View Readme for jenv autoscan

from jenv-for-windows.

rcsilva83 avatar rcsilva83 commented on August 18, 2024

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.

FelixSelter avatar FelixSelter commented on August 18, 2024

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.

rcsilva83 avatar rcsilva83 commented on August 18, 2024

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.

FelixSelter avatar FelixSelter commented on August 18, 2024

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.

rcsilva83 avatar rcsilva83 commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.