-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Java language worker to use GenericWorkerProvider #3047
Conversation
pragnagopa
commented
Jun 22, 2018
•
edited
Loading
edited
- Delete JavaWorkerProvider. Fixes Move Java worker providers to use generic worker provider model #2974
- Clean up unused classes. Fixes Remove IWorkerProvider.GetWorkerDirectoryPath #3031
- Removed dependency on JAVA_HOME. Fixes Remove dependency on JAVA_HOME #2920
- Fixes Multiple cli instances causing lots of cpu usage when app is idle if each instances does not define a unique node debug port. #2775
@@ -746,9 +746,6 @@ private void InitializeWorkers() | |||
// TODO: We still have some hard coded languages, so we need to handle them. Remove this switch once we've moved away from that. | |||
switch (_language.ToLowerInvariant()) | |||
{ | |||
case LanguageWorkerConstants.JavaLanguageWorkerName: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this switch and TODO go away now and be a simple if(!DotNetLanguageWorker) check?
@@ -24,5 +23,9 @@ public static class LanguageWorkerConstants | |||
public const string WorkerDescriptionDefaultWorkerPath = "defaultWorkerPath"; | |||
public const string WorkerDescription = "Description"; | |||
public const string WorkerDescriptionArguments = "Arguments"; | |||
|
|||
// Java | |||
public const string AppServiceEnvJavaVersion = "zulu8.23.0.3-jdk8.0.144-win_x64"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hard coded version seems brittle. What if someone specifies their own java_home value pointing to their own version that is different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #3048 to update worker.config.json to provide java version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple questions, otherwise looks good
5ea2a10
to
7659388
Compare