Index: src/main/java/org/apache/felix/ipojo/manipulation/Manipulator.java
===================================================================
--- src/main/java/org/apache/felix/ipojo/manipulation/Manipulator.java	(revision 487681)
+++ src/main/java/org/apache/felix/ipojo/manipulation/Manipulator.java	(working copy)
@@ -65,7 +65,6 @@
 
 	/**
      * Manipulate the class.
-     * @param bundle    The component's m_bundle
      * @param name      The name of the class
      * @param cm        The component manager attached to this manipulation
      * @throws Exception : throwed if the manipulation failed.
@@ -110,18 +109,14 @@
         	cr0.accept(preprocess, false);
         	is2.close();
 
-        	File file = null;
         	try {
-        		file = new File(url.getFile());
-
-        		//file.createNewFile();
-                FileOutputStream fos = new FileOutputStream(file);
+                FileOutputStream fos = new FileOutputStream(clazz);
                 
                 fos.write(cw0.toByteArray());
                 
                 fos.close();
-                IPojoPluginConfiguration.getLogger().log(Level.INFO, "Put the file " + file.getAbsolutePath() + " in the jar file");
-            } catch (Exception e) { System.err.println("Problem to write the adapted class on the file system " + " [ "+ file.getAbsolutePath() +" ] " + e.getMessage()); }
+                IPojoPluginConfiguration.getLogger().log(Level.INFO, "Put the file " + clazz.getAbsolutePath() + " in the jar file");
+            } catch (Exception e) { System.err.println("Problem to write the adapted class on the file system " + " [ "+ clazz.getAbsolutePath() +" ] " + e.getMessage()); }
         }
         // The file is in the bundle
         return true;

Reply via email to