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: "