public static String getClasspathItemBaseDir(final File classpathItem) {
		String base;
		if (classpathItem.isFile()) {
			base = classpathItem.getParent();
		} else {
			base = classpathItem.toString();
		}
		return base;
	}
public static String getClasspathItemBaseDir(final File classpathItem) {
		String base;
		if (classpathItem.isFile()) {
			base = classpathItem.getParent();
		} else {
			base = classpathItem.toString();
		}
		return base;
	}
public static String getClasspathItemBaseDir ( final File classpathItem ) { String base ; if ( classpathItem . isFile ( ) ) { base = classpathItem . getParent ( ) ; } else { base = classpathItem . toString ( ) ; } return base ; }
Returns base folder for classpath item. If item is a (jar) file,
its parent is returned. If item is a directory, its name is returned.
Returns base folder for classpath item . If item is a ( jar ) file its parent is returned . If item is a directory its name is returned .