PageRenderTime 37ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/ri-components/file-binding/runtime/regress/file00007.ksh

https://bitbucket.org/openesb/openesb-core
Korn Shell | 58 lines | 22 code | 7 blank | 29 comment | 0 complexity | 38d1220db9cb11fee3d91c6163636e7d MD5 | raw file
  1. #
  2. # BEGIN_HEADER - DO NOT EDIT
  3. #
  4. # The contents of this file are subject to the terms
  5. # of the Common Development and Distribution License
  6. # (the "License"). You may not use this file except
  7. # in compliance with the License.
  8. #
  9. # You can obtain a copy of the license at
  10. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  11. # See the License for the specific language governing
  12. # permissions and limitations under the License.
  13. #
  14. # When distributing Covered Code, include this CDDL
  15. # HEADER in each file and include the License file at
  16. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  17. # If applicable add the following below this CDDL HEADER,
  18. # with the fields enclosed by brackets "[]" replaced with
  19. # your own identifying information: Portions Copyright
  20. # [year] [name of copyright owner]
  21. #
  22. #
  23. # @(#)file00007.ksh
  24. # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
  25. #
  26. # END_HEADER - DO NOT EDIT
  27. #
  28. echo "filebinding00004.ksh- DEPLOY file binding test"
  29. . ./regress_defs.ksh
  30. # first create a jar by replacing tokens
  31. # jar and zip
  32. rm -rf $FILEBINDING_BLD_DIR/test/deploy
  33. cp -R $FILEBINDING_REGRESS_DIR/test/deploy $FILEBINDING_BLD_DIR/test
  34. rm -rf $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/CVS
  35. rm -rf $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/CVS
  36. rm -rf $FILEBINDING_BLD_DIR/test/deploy/CVS
  37. rm -rf $FILEBINDING_BLD_DIR/test/deploy/META-INF/CVS
  38. rm -f $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints_tokens.xml
  39. sed -e "s#FILEBINDING_BLD_DIR#$FILEBINDING_BLD_DIR#g" $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints11_tokens.wsdl > $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints.wsdl
  40. sed -e "s#ARTIFACT#WSDL11#g" $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/jbi_tokens.xml> $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/jbi.xml
  41. rm -f $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints11_tokens.wsdl
  42. rm -f $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/jbi_tokens.xml
  43. rm -f $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints_tokens.wsdl
  44. cd $FILEBINDING_BLD_DIR/test/deploy/filebindingASA
  45. jar cvf ../filebindingASA.jar .
  46. cd $FILEBINDING_BLD_DIR/test/deploy
  47. rm -r filebindingASA
  48. ant -emacs -q -DFILEBINDING_BLD_DIR="$FILEBINDING_BLD_DIR" -f $FILEBINDING_REGRESS_DIR/scripts/deploy.ant make-deploy
  49. $JBI_ANT -Djbi.deploy.file=$FILEBINDING_BLD_DIR/test/deploy/filetestdeploy.zip deploy-service-assembly
  50. $JBI_ANT -Djbi.service.assembly.name="9ae51feb-0fc3-4ff6-9104-cfd59d2a7815" start-service-assembly
  51. echo Completed Deploying to file binding