Author: koen.aers(a)jboss.com
Date: 2009-08-30 13:35:10 -0400 (Sun, 30 Aug 2009)
New Revision: 17367
Modified:
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/util/ProcessDeployer.java
Log:
JBIDE-4197: JBDS 2.0.0 GA will not deploy JBPM archive
Modified:
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/util/ProcessDeployer.java
===================================================================
---
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/util/ProcessDeployer.java 2009-08-29
15:00:40 UTC (rev 17366)
+++
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/util/ProcessDeployer.java 2009-08-30
17:35:10 UTC (rev 17367)
@@ -286,14 +286,16 @@
return name.startsWith(className);
}
});
- for (int i = 0; i < nestedClasses.length; i++) {
- String fileName = classOrResource.substring(0,
classOrResource.lastIndexOf("/") + 1) + nestedClasses[i];
- zos.putNextEntry(new ZipEntry("classes/" + fileName));
- is = loader.getResourceAsStream(fileName);
- while ((read = is.read(buff)) != -1) {
- zos.write(buff, 0, read);
+ if (nestedClasses != null) {
+ for (int i = 0; i < nestedClasses.length; i++) {
+ String fileName = classOrResource.substring(0,
classOrResource.lastIndexOf("/") + 1) + nestedClasses[i];
+ zos.putNextEntry(new ZipEntry("classes/" + fileName));
+ is = loader.getResourceAsStream(fileName);
+ while ((read = is.read(buff)) != -1) {
+ zos.write(buff, 0, read);
+ }
+ is.close();
}
- is.close();
}
}
}
Show replies by date