[izpack-changes] r1772 - izpack-src/trunk/src/lib/com/izforge/izpack/compiler

noreply at berlios.de noreply at berlios.de
Thu Mar 8 10:42:03 CET 2007


Author: bartzkau
Date: 2007-03-08 10:42:03 +0100 (Thu, 08 Mar 2007)
New Revision: 1772

Modified:
   izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Compiler.java
Log:
Patch about denoting discrepances between custom action
class and jar file names. (Thanks to Scott Plante).


Modified: izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Compiler.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Compiler.java	2007-03-08 08:53:09 UTC (rev 1771)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Compiler.java	2007-03-08 09:42:03 UTC (rev 1772)
@@ -730,6 +730,11 @@
         URL url = findIzPackResource(jarPath, "CustomAction jar file");
         List filePaths = getContainedFilePaths(url);
         String fullClassName = getFullClassName(url, className);
+        if (fullClassName == null)
+        {
+            throw new CompilerException("CustomListener class '" + className + "' not found in '"
+                    + url + "'. The class and listener name must match");
+        }
         CustomData ca = new CustomData(fullClassName, filePaths, constraints, type);
         packager.addCustomJar(ca, url);
     }




More information about the izpack-changes mailing list