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.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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-1.4.1.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xercesImpl-2.0.1.jar:$LIBDIR/xalan-2.3.1.jar:$LIBDIR/xml-apis.jar:$LIBDIR/bsf.jar
  26. LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar:$LIBDIR/avalon-framework-cvs-20020806.jar
  27. # antRun must be executable (can't do this in build.xml because Ant uses antRun
  28. # to do the chmod)
  29. chmod +rx $LIBDIR/bin/antRun
  30. ANT_HOME=$LIBDIR
  31. # For Cygwin, switch paths to Windows format before running java
  32. if $cygwin; then
  33. JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
  34. LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
  35. fi
  36. echo
  37. echo Building with classpath $LOCALCLASSPATH
  38. echo Starting Ant...
  39. echo
  40. $JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath "$LOCALCLASSPATH" org.apache.tools.ant.Main $*