* appropriate monkey code for gwt directly in annotation processor and get rid
* of {@link WidgetMapGenerator}. Using annotation processor might be a good
* idea when dropping Java 1.5 support (integrated to javac in 6).
- *
+ *
*/
public class ClassPathExplorer {
private final static FileFilter DIRECTORIES_ONLY = new FileFilter() {
/**
* Finds available widgetset names.
- *
+ *
* @return
*/
public static Map<String, URL> getAvailableWidgetSets() {
JarFile jarFile = conn.getJarFile();
Manifest manifest = jarFile.getManifest();
+ if (manifest == null) {
+ // No manifest so this is not a Vaadin Add-on
+ return;
+ }
String value = manifest.getMainAttributes().getValue(
"Vaadin-Widgetsets");
if (value != null) {
/**
* Recursively add subdirectories and jar files to classpathlocations
- *
+ *
* @param name
* @param file
* @param locations
/**
* Find and return the default source directory where to create new
* widgetsets.
- *
+ *
* Return the first directory (not a JAR file etc.) on the classpath by
* default.
- *
+ *
* TODO this could be done better...
- *
+ *
* @return URL
*/
public static URL getDefaultSourceDirectory() {