You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2001/05/17 08:48:05 UTC

cvs commit: jakarta-turbine/proposals/jvz/code fixme is.sh

jvanzyl     01/05/16 23:48:05

  Added:       proposals/jvz/code fixme is.sh
  Log:
  - my dirty hacks to get the import statements fully qualified.
  
  Revision  Changes    Path
  1.1                  jakarta-turbine/proposals/jvz/code/fixme
  
  Index: fixme
  ===================================================================
  #!/bin/sh
  
  for i in `find ../bin/classes -name '*.class'`
  do
      A=`echo $i | sed 's/\.class//' | sed 's/\.\.\/bin\/classes\///' | sed 's/\//\./g'`
      echo $A
      ./is.sh $A > $i.import
  done
  
  
  
  1.1                  jakarta-turbine/proposals/jvz/code/is.sh
  
  Index: is.sh
  ===================================================================
  #!/bin/sh
  
  #--------------------------------------------
  # No need to edit anything past here
  #--------------------------------------------
  if test -z "${JAVA_HOME}" ; then
      echo "ERROR: JAVA_HOME not found in your environment."
      echo "Please, set the JAVA_HOME variable in your environment to match the"
      echo "location of the Java Virtual Machine you want to use."
      exit
  fi
  
  if test -f ${JAVA_HOME}/lib/tools.jar ; then
      CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar
  fi
  
  # convert the existing path to unix
  if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
     CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
  fi
  
  for i in ant*.jar
  do
      ANT_JAR=${ANT_JAR}:$i
  done
  
  # OSX hack to make it work with jikes
  OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes"
  if [ -d ${OSXHACK} ] ; then 
  for i in ${OSXHACK}/*.jar
  do
      CLASSPATH=${CLASSPATH}:$i
  done
  fi
  
  CLASSPATH=${CLASSPATH}:${ANT_JAR}
  CLASSPATH=${CLASSPATH}:../bin/classes
  CLASSPATH=${CLASSPATH}:xmlrpc.jar
  
  for i in ../lib/*.jar
  do
      CLASSPATH=$CLASSPATH:$i
  done    
  
  
  # convert the unix path to windows
  if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
  fi
  
  ${JAVA_HOME}/bin/java -classpath ${CLASSPATH} org.apache.turbine.util.ImportStatements "$@"
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org