mcc.bat 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @rem //
  2. @rem // BEGIN COPYRIGHT BLOCK
  3. @rem // This Program is free software; you can redistribute it and/or modify it under
  4. @rem // the terms of the GNU General Public License as published by the Free Software
  5. @rem // Foundation; version 2 of the License.
  6. @rem //
  7. @rem // This Program is distributed in the hope that it will be useful, but WITHOUT
  8. @rem // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. @rem // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  10. @rem //
  11. @rem // You should have received a copy of the GNU General Public License along with
  12. @rem // this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
  13. @rem // Place, Suite 330, Boston, MA 02111-1307 USA.
  14. @rem //
  15. @rem // In addition, as a special exception, Red Hat, Inc. gives You the additional
  16. @rem // right to link the code of this Program with code not covered under the GNU
  17. @rem // General Public License ("Non-GPL Code") and to distribute linked combinations
  18. @rem // including the two, subject to the limitations in this paragraph. Non-GPL Code
  19. @rem // permitted under this exception must only link to the code of this Program
  20. @rem // through those well defined interfaces identified in the file named EXCEPTION
  21. @rem // found in the source code files (the "Approved Interfaces"). The files of
  22. @rem // Non-GPL Code may instantiate templates or use macros or inline functions from
  23. @rem // the Approved Interfaces without causing the resulting work to be covered by
  24. @rem // the GNU General Public License. Only Red Hat, Inc. may make changes or
  25. @rem // additions to the list of Approved Interfaces. You must obey the GNU General
  26. @rem // Public License in all respects for all of the Program code and other code used
  27. @rem // in conjunction with the Program except the Non-GPL Code covered by this
  28. @rem // exception. If you modify this file, you may extend this exception to your
  29. @rem // version of the file, but you are not obligated to do so. If you do not wish to
  30. @rem // provide this exception without modification, you must delete this exception
  31. @rem // statement from your version and license this file solely under the GPL without
  32. @rem // exception.
  33. @rem //
  34. @rem //
  35. @rem // Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  36. @rem // Copyright (C) 2005 Red Hat, Inc.
  37. @rem // All rights reserved.
  38. @rem // END COPYRIGHT BLOCK
  39. @rem //
  40. @echo off
  41. setlocal
  42. set MCC_HOST=%1
  43. set MCC_PORT=%2
  44. if "%MCC_HOST%x"=="x" goto usage
  45. if "%MCC_PORT%x"=="x" goto usage
  46. rem
  47. set MCC_USER=
  48. if %3x==x goto nouser
  49. set MCC_USER=-u %3
  50. echo MCC_USER = %MCC_USER%
  51. :nouser
  52. set MCC_PASSWORD=
  53. if %4x==x goto nopass
  54. set MCC_PASSWORD=-w %4
  55. :nopass
  56. rem
  57. set JARDIR=./jars
  58. set JDK=%JARDIR%/classes.zip
  59. set DS=%JARDIR%/ds40.jar
  60. set ADMIN=%JARDIR%/admserv.jar
  61. set KINGPIN=%JARDIR%/kingpin.jar
  62. set SWING=%JARDIR%/swingall.jar
  63. set LF=%JARDIR%/nmclf.jar
  64. set LAYOUT=%JARDIR%/layout.jar
  65. set LDAP=%JARDIR%/ldapjdk.jar
  66. set BASE=o=netscaperoot
  67. set CLASSPATH=%DS%;%KINGPIN%;%ADMIN%;%SWING%;%LAYOUT%;%LF%;%LDAP%
  68. rem echo java com.netscape.management.client.console.Console -d %MCC_HOST% -p %MCC_PORT% %MCC_USER% %MCC_PASSWORD% -b %BASE%
  69. java com.netscape.management.client.console.Console -d %MCC_HOST% -p %MCC_PORT% %MCC_USER% %MCC_PASSWORD% -b %BASE%
  70. goto end
  71. :usage
  72. echo Usage: mcc HOST PORT [[user] [password]]
  73. :end
  74. endlocal