system/src/sc/layer/LayeredSystem.java
private static String buildUserClassPath(String classpath) {
      String[] list = StringUtil.split(classpath, FileUtil.PATH_SEPARATOR_CHAR);
      if (list == null || list.length == 0)
         return null;

      StringBuilder sb = new StringBuilder();
      String javaHome = System.getProperty("java.home");
      for (int i = 0; i < list.length; i++) {
         // Skip any jar libs that are installed with the system
         if (javaHome != null && list[i].startsWith(javaHome))
            continue;
         File f = new File(list[i]);

         if (i != 0)
            sb.append(FileUtil.PATH_SEPARATOR);
         if (!f.isAbsolute())
            sb.append(f.getAbsolutePath());
         else
            sb.append(list[i]);
      }
      return sb.toString();
   }
/** This is a version of the classpath that we can stick into a script or something */
This is a version of the classpath that we can stick into a script or something
This is a version of the classpath that we can stick into a script or something
private static String buildUserClassPath(String classpath) {
      String[] list = StringUtil.split(classpath, FileUtil.PATH_SEPARATOR_CHAR);
      if (list == null || list.length == 0)
         return null;
      StringBuilder sb = new StringBuilder();
      String javaHome = System.getProperty("java.home");
      for (int i = 0; i < list.length; i++) {
         if (javaHome != null && list[i].startsWith(javaHome))
            continue;
         File f = new File(list[i]);
         if (i != 0)
            sb.append(FileUtil.PATH_SEPARATOR);
         if (!f.isAbsolute())
            sb.append(f.getAbsolutePath());
         else
            sb.append(list[i]);
      }
      return sb.toString();
   }
private static String buildUserClassPath ( String classpath ) { String [ ] list = StringUtil . split ( classpath , FileUtil . PATH_SEPARATOR_CHAR ) ; if ( list == null || list . length == 0 ) return null ; StringBuilder sb = new StringBuilder ( ) ; String javaHome = System . getProperty ( "java.home" ) ; for ( int i = 0 ; i < list . length ; i ++ ) { if ( javaHome != null && list [ i ] . startsWith ( javaHome ) ) continue ; File f = new File ( list [ i ] ) ; if ( i != 0 ) sb . append ( FileUtil . PATH_SEPARATOR ) ; if ( ! f . isAbsolute ( ) ) sb . append ( f . getAbsolutePath ( ) ) ; else sb . append ( list [ i ] ) ; } return sb . toString ( ) ; }
This is a version of the classpath that we can stick into a script or something
This is a version of the classpath that we can stick into a script or something
// Skip any jar libs that are installed with the system