zooInspector.cmd 1.2 KB

1234567891011121314151617181920212223242526
  1. @echo off
  2. @rem Licensed to the Apache Software Foundation (ASF) under one or more
  3. @rem contributor license agreements. See the NOTICE file distributed with
  4. @rem this work for additional information regarding copyright ownership.
  5. @rem The ASF licenses this file to You under the Apache License, Version 2.0
  6. @rem (the "License"); you may not use this file except in compliance with
  7. @rem the License. You may obtain a copy of the License at
  8. @rem
  9. @rem http://www.apache.org/licenses/LICENSE-2.0
  10. @rem
  11. @rem Unless required by applicable law or agreed to in writing, software
  12. @rem distributed under the License is distributed on an "AS IS" BASIS,
  13. @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. @rem See the License for the specific language governing permissions and
  15. @rem limitations under the License.
  16. @rem Get the path to the directory containing this script
  17. SET SCRIPT_DIR=%~dp0
  18. @rem Get the path to the uber jar for this tool
  19. @rem (Requires "mvn install" or "mvn package" be run first)
  20. set JAVA_LIB=
  21. for /F %%f in ('dir /b "%SCRIPT_DIR%\target\zookeeper-contrib-zooinspector-*-jar-with-dependencies.jar" 2^>nul') do (
  22. set JAVA_LIB=%SCRIPT_DIR%target\%%f
  23. )
  24. java -jar %JAVA_LIB%