Skip to content

Conversation

@dhirupandey
Copy link
Contributor

No description provided.

@dhirupandey dhirupandey self-assigned this Sep 23, 2021
func createJavaCommand(javaCmd string, details *RunDetails) (*exec.Cmd, error) {
args := details.getCommand()
appDir := details.getenvOrDefault(v1.EnvVarCohAppDir, "/app")
jibMainClassFileName := appDir + "/jib-main-class-file"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is in the wrong place. We determine the main class to use in the func server(details *RunDetails, _ *cobra.Command) line 43 of cmd_server.go. We get the value of the environment variable v1.EnvVarAppMainClass which will be set if the user specified a main class in their yaml. If this is not set, i.e. found == false then do your stuff before the switch. If you find a JIB main class in the file set mc to be the class name and set found = true.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes a lot of sense. Thanks JK. I'll make that change

@thegridman thegridman merged commit 2ceb6ab into oracle:master Sep 24, 2021
thegridman pushed a commit to thegridman/coherence-operator that referenced this pull request Sep 17, 2022
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