@rem Copyright 2016 The Bazel Authors. All rights reserved.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem    http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem This script was generated from java_stub_template_windows.txt.  Please
@rem don't edit it directly.
@rem See the header comments in the accompanying shell script (same path as that
@rem of this file, minus the ".cmd" extension) for available command line flags.

@SETLOCAL ENABLEEXTENSIONS

@set bash_path=%bash_exe_path%
@set cygpath_path=%cygpath_exe_path%

@rem launcher=${$0%.cmd}
@set launcher=%~dp0%~n0

@rem sh_path=$($cygpath_path -m $launcher)
@for /f %%i in ('%cygpath_path% -m %launcher%') do @set sh_path=%%i

@call %bash_path% -c "%sh_path% %*"
