commit | cf172826f240d5550c1befdf2f6d7f54104d30de | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Wed Jun 07 16:31:34 2006 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Wed Jun 07 16:31:34 2006 +0000 |
tree | ced3dc9eda3912efd912eb44dfdddea3500bc555 | |
parent | 9beb33ebdf5151d826869b88b7e134ab0dc32b93 [diff] |
Fixed a bug that could cause an infinite loop if you used ';' to separate packages without any attributes. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@412446 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiJarMojo.java b/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiJarMojo.java index 4da45a4..4f733b1 100644 --- a/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiJarMojo.java +++ b/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiJarMojo.java
@@ -401,7 +401,7 @@ del = qt.getSeparator(); while (del == ';') { String adname = qt.nextToken(); - if (qt.getSeparator() != '=') { + if ((del = qt.getSeparator()) != '=') { if (hadAttribute) throw new MojoExecutionException( "Header contains name field after attribute or directive: "