Skip to content
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

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

pragnagopa
Copy link
Member

@pragnagopa pragnagopa commented Jun 22, 2018

@@ -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:
Copy link
Member

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";
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

@mathewc mathewc left a 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

@pragnagopa pragnagopa force-pushed the delJavaWorkerProvider branch from 5ea2a10 to 7659388 Compare June 25, 2018 16:51
@pragnagopa pragnagopa merged commit bf91f5d into Azure:dev Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants