You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.sh 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. # This file should be executable.
  3. echo
  4. echo "Fop Build System"
  5. echo "----------------"
  6. echo
  7. if [ "$JAVA_HOME" = "" ] ; then
  8. echo "ERROR: JAVA_HOME not found in your environment."
  9. echo
  10. echo "Please, set the JAVA_HOME variable in your environment to match the"
  11. echo "location of the Java Virtual Machine you want to use."
  12. exit 1
  13. fi
  14. # OS specific support. $var _must_ be set to either true or false.
  15. cygwin=false;
  16. case "`uname`" in
  17. CYGWIN*) cygwin=true ;;
  18. esac
  19. # For Cygwin, ensure paths are in UNIX format before anything is touched
  20. if $cygwin ; then
  21. [ -n "$JAVA_HOME" ] &&
  22. JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
  23. fi
  24. LIBDIR=lib
  25. LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.4.3.jar:$LIBDIR/xalan-2.3.1.jar:$LIBDIR/xml-apis.jar
  26. LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar:$LIBDIR/avalon-framework-cvs-20020315.jar
  27. ANT_HOME=$LIBDIR
  28. # For Cygwin, switch paths to Windows format before running java
  29. if $cygwin; then
  30. JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
  31. LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
  32. fi
  33. echo
  34. echo Building with classpath $LOCALCLASSPATH
  35. echo Starting Ant...
  36. echo
  37. $JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath "$LOCALCLASSPATH" org.apache.tools.ant.Main $*