blackducksoftware / hub-detect

This is now deprecated. Please see synopsys-detect.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hub-detect doesn't work with Windows 10 and git bash using gradle as package manager

kaempke opened this issue · comments

When I try running hub-detect inside git bash in Windows 10, hub-detect is starting gradlew.bat instead of gradlew.sh. I couldn,t find a property for this issue.

Any ideas?

That is the intended behavior of detect at this time. When on windows it will search for an executable it knows it can run (cmd, exe, bat, etc). In this case, are you saying that you only have a gradlew.sh so you want detect to use windows bash to execute the gradlew.sh? If that's the case, I think this would have to be a new feature request.

Yes. I need to get Detect working with git Bash and Windows.

commented

@kaempke Apologies, but that is not within the purview of Detect. We recommend you create a gradlew.bat to eliminate this edge case scenario.

Workaround: Provide specific gradle executable via the property: --detect.gradle.path=