build.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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) 2007 Cognos ULC, an IBM Company. All rights reserved.
  13. # Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  14. #
  15. # Build reportrunner.java
  16. # REMOVE this when you edit this file.
  17. echo You MUST edit this file before you can compile this application.
  18. # CHANGE the following environment variables to point to the Java Development Kit
  19. # and IBM Cognos on your system.
  20. if [ "$CRN_HOME" = "" ] ; then
  21. CRN_HOME=/usr/cognos/c10
  22. fi
  23. if [ "$JAVA_HOME" = "" ] ; then
  24. JAVA_HOME=/c/j2sdk6
  25. fi
  26. JAR_HOME=$JAVA_HOME/lib
  27. JAVAC=$JAVA_HOME/bin/javac
  28. # Build the CLASSPATH required to build Java
  29. CLASSPATH=$JAR_HOME/tools.jar
  30. CLASSPATH="$CLASSPATH:../Common"
  31. for jar in activation axis axisCognosClient commons-discovery-0.2 commons-logging-1.1 commons-logging-adapters-1.1 \
  32. commons-logging-api-1.1 dom4j-1.6.1 jaxen-1.1.1 jaxrpc mail saaj wsdl4j-1.5.1; do
  33. CLASSPATH="$CLASSPATH:$CRN_HOME/sdk/java/lib/$jar.jar"
  34. done
  35. # Compile
  36. $JAVAC -classpath "$CLASSPATH" reportrunner.java CognosBIException.java