@@ -116,19 +116,6 @@ private static void addManifestEntries(IProject project) {
116116 }
117117 }
118118
119- /**
120- * Adds new entry to list if there is no existing entry in the list that conatins the new entry.
121- */
122- private static void addTo (String newEntry , List <String > manifest ) {
123- for (String existingEntry : manifest ) {
124- if (existingEntry .contains (newEntry )) {
125- logger .info ("Manifest already contains " + newEntry );
126- return ;
127- }
128- }
129- manifest .add (" " + newEntry + "," );
130- }
131-
132119 /**
133120 * Creates the binary file folder for Xtend. This is the xtend-bin folder.
134121 */
@@ -153,10 +140,10 @@ private static List<String> edit(List<String> manifest) {
153140 for (String line : manifest ) {
154141 newManifest .add (line );
155142 if (line .contains ("Require-Bundle:" )) {
156- addTo ( " com.google.guava" , manifest );
157- addTo ( " org.eclipse.xtext.xbase.lib" , manifest );
158- addTo ( " org.eclipse.xtend.lib" , manifest );
159- addTo ( " org.eclipse.xtend.lib.macro" , manifest );
143+ newManifest . add ( " com.google.guava," );
144+ newManifest . add ( " org.eclipse.xtext.xbase.lib," );
145+ newManifest . add ( " org.eclipse.xtend.lib," );
146+ newManifest . add ( " org.eclipse.xtend.lib.macro," );
160147 }
161148 }
162149 return newManifest ;
0 commit comments