-
Notifications
You must be signed in to change notification settings - Fork 5
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
xjc generation changes #24
Conversation
cppbuild.bash
Outdated
' "$file" | ||
|
||
# Delete the Generated on: line so we don't constantly have new vcs changes to these files | ||
sed -i '/\/\/ Generated on:/d' "$file" |
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.
🙏
file(dest).mkdirs() | ||
fun runScript(scriptPath: String, envVars: Map<String, String> = emptyMap(), vararg args: String) { | ||
val isWindows = System.getProperty("os.name").lowercase().contains("win") | ||
val bashCommand = if (isWindows) "C:\\Program Files\\Git\\git-bash.exe" else "bash" |
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.
Wouldn't it be more reliable to write a powershell?
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.
No, because bash is not available on the default Path
xjc
, I found this to be less flaky overall. It will not run if xjc is not available on the system.