build-samples.sh 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #!/bin/sh
  2. #
  3. # Licensed Materials - Property of IBM
  4. #
  5. # IBM Cognos Products: DOCS
  6. #
  7. # (C) Copyright IBM Corp. 2005, 2010
  8. #
  9. # US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
  10. # IBM Corp.
  11. #
  12. # Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  13. # Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  14. #
  15. # Build the Java samples.
  16. # REMOVE this when you edit this file.
  17. echo You MUST edit this file before you can compile this application.
  18. # * * * * * * * *
  19. # CHANGE the following environment variables to point to the
  20. # Java Development Kit and IBM Cognos on your system.
  21. # * * * * * * * *
  22. if [ "$CRN_HOME" = "" ] ; then
  23. CRN_HOME=/usr/cognos/c10
  24. fi
  25. if [ "$JAVA_HOME" = "" ] ; then
  26. JAVA_HOME=/c/j2sdk6
  27. fi
  28. JAR_HOME=$JAVA_HOME/lib
  29. JAVAC=$JAVA_HOME/bin/javac
  30. # Build the CLASSPATH required to build the Java samples
  31. CLASSPATH=$JAR_HOME/tools.jar
  32. for jar in activation axis axisCognosClient commons-discovery-0.2 commons-logging-1.1 commons-logging-adapters-1.1.jar \
  33. commons-logging-api-1.1.jar dom4j-1.6.1 jaxen-1.1.1 jaxrpc mail saaj wsdl4j-1.5.1; do
  34. CLASSPATH="$CLASSPATH:$CRN_HOME/sdk/java/lib/$jar.jar"
  35. done
  36. # Compile
  37. $JAVAC -classpath "$CLASSPATH" \
  38. Agents/*.java \
  39. Alerts/*.java \
  40. CancelExec/*.java \
  41. CapabilitiesGUI/*.java \
  42. Common/*.java \
  43. ContentStoreExplorer/*.java \
  44. CreateDrillThrough/*.java \
  45. DeployPackage/*.java \
  46. DispatcherControl/*.java \
  47. ReportCopyMove/*.java \
  48. EventTrigger/*.java \
  49. ExecReports/*.java \
  50. ExecReportsAt/*.java \
  51. GroupsAndRolesGUI/*.java \
  52. HandlersCS/*.java \
  53. PermissionsGUI/*.java \
  54. PrintReport/*.java \
  55. QueryCM/*.java \
  56. RenderReport/*.java \
  57. ReportAdd/*.java \
  58. ReportCreate/*.java \
  59. ReportDelete/*.java \
  60. ReportParams/*.java \
  61. ReportSpec/*.java \
  62. ReportUpgrade/*.java \
  63. runreport/*.java \
  64. SaveAs/*.java \
  65. Scheduler/*.java \
  66. Security/*.java \
  67. SendEmail/*.java \
  68. Submit/*.java \
  69. TestDIMS/*.java \
  70. TesterCM/*.java \
  71. TesterQueryService/*.java \
  72. ViewAll/*.java \
  73. ViewCMReports/*.java \
  74. ViewCMPackages/*.java