PageRenderTime 26ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/runtime/framework/regress/framework00008.ksh

https://bitbucket.org/openesb/openesb-core
Korn Shell | 70 lines | 18 code | 13 blank | 39 comment | 0 complexity | f50516213693ba9bad01bbec4bd5da4e MD5 | raw file
  1. #!/bin/sh
  2. #
  3. # BEGIN_HEADER - DO NOT EDIT
  4. #
  5. # The contents of this file are subject to the terms
  6. # of the Common Development and Distribution License
  7. # (the "License"). You may not use this file except
  8. # in compliance with the License.
  9. #
  10. # You can obtain a copy of the license at
  11. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  12. # See the License for the specific language governing
  13. # permissions and limitations under the License.
  14. #
  15. # When distributing Covered Code, include this CDDL
  16. # HEADER in each file and include the License file at
  17. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  18. # If applicable add the following below this CDDL HEADER,
  19. # with the fields enclosed by brackets "[]" replaced with
  20. # your own identifying information: Portions Copyright
  21. # [year] [name of copyright owner]
  22. #
  23. #
  24. # @(#)framework00008.ksh
  25. # Copyright 2004-2008 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. # Tests the component extension mechanism (lib/ext) for the Java SE platform.
  30. #regress setup
  31. . ./regress_defs.ksh
  32. # package components
  33. ant -emacs -q -f framework00008.xml package
  34. # copy our base class to the lib/ext directory
  35. rm -rf $JBISE_HOME/lib/ext
  36. mkdir -p $JBISE_HOME/lib/ext/com/sun/jbi/framework
  37. cp $JV_FRAMEWORK_BLD_DIR/com/sun/jbi/framework/AbstractComponent.class $JBISE_HOME/lib/ext/com/sun/jbi/framework
  38. # start the framework
  39. start_jbise &
  40. startInstanceDelay
  41. # install components
  42. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/ext-engine.jar install-component
  43. installComponentDelay
  44. # start components
  45. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-extension-component" start-component
  46. startComponentDelay
  47. # Query the state of our components and service assemblies
  48. $JBISE_ANT -Djbi.service.engine.name="test-extension-component" list-service-engines
  49. # shutdown components
  50. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-extension-component" shut-down-component
  51. stopComponentDelay
  52. # uninstall components
  53. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-extension-component" uninstall-component
  54. uninstallComponentDelay
  55. shutdown_jbise
  56. stopInstanceDelay
  57. # ### END