Prepare the release process:
- revert to metadata 1.4
- apply fix for Felix-2268
- increase version number for the iPOJO exposed package, and imported packages (added by the manipulator)

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@933107 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/ant/pom.xml b/ipojo/ant/pom.xml
index 3c3160b..e6bc02c 100644
--- a/ipojo/ant/pom.xml
+++ b/ipojo/ant/pom.xml
@@ -41,7 +41,7 @@
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.ipojo.metadata</artifactId>
-    <version>${pom.version}</version>
+    <version>1.4.0</version>
   </dependency>
     <dependency>
       <groupId>org.apache.felix</groupId>
@@ -69,6 +69,7 @@
         <configuration>
           <instructions>
             <Bundle-Name>iPOJO Ant Task</Bundle-Name>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
             <Bundle-Vendor> The Apache Software Foundation </Bundle-Vendor>
             <Bundle-Description> iPOJO Ant Task </Bundle-Description>
             <Bundle-DocURL>http://felix.apache.org/site/ipojo-ant-task.html</Bundle-DocURL>
diff --git a/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java b/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java
index e490a78..0bd4a8f 100644
--- a/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java
+++ b/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java
@@ -524,5 +524,22 @@
         m_properties.add(prop);
         return this;
     }
+    
+    /**
+     * Adds a configuration property.
+     * @param key the key
+     * @param obj the value (can be <code>null</code>)
+     * @return the current component type
+     */
+    public PrimitiveComponentType addProperty(String key, Object obj) { 
+        String value = null;
+        if (obj != null) {
+            value = obj.toString();
+        }
+
+        addProperty(new Property().setName(key)
+           .setValue(value)); 
+        return this; 
+     } 
 
 }
diff --git a/ipojo/api/src/main/java/org/apache/felix/ipojo/api/Service.java b/ipojo/api/src/main/java/org/apache/felix/ipojo/api/Service.java
index 10ffd66..60bb2ee 100644
--- a/ipojo/api/src/main/java/org/apache/felix/ipojo/api/Service.java
+++ b/ipojo/api/src/main/java/org/apache/felix/ipojo/api/Service.java
@@ -180,6 +180,27 @@
         m_properties.add(ps);
         return this;
     }
+    
+    /**
+     * Adds a service property.
+     * @param key the property key
+     * @param obj the initial value (can be <code>null</code>)
+     * @return the current service object.
+     */
+    public Service addProperty(String key, Object obj) { 
+        Class clazz = String.class;
+        String value = null;
+        if (obj != null) {
+            clazz = obj.getClass();
+            value = obj.toString();
+        }
+
+        addProperty(new ServiceProperty().setName(key) 
+           .setType(clazz.getName())
+           .setValue(value));
+        
+        return this; 
+     } 
 
     /**
      * Sets the provided service specification.
diff --git a/ipojo/core/pom.xml b/ipojo/core/pom.xml
index 3edd353..07e0b16 100644
--- a/ipojo/core/pom.xml
+++ b/ipojo/core/pom.xml
@@ -55,7 +55,7 @@
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.ipojo.metadata</artifactId>
-      <version>${pom.version}</version>
+      <version>1.4.0</version>
     </dependency>
     <dependency>
       <groupId>asm</groupId>
diff --git a/ipojo/examples/property-handler/PropertyHandler/pom.xml b/ipojo/examples/property-handler/PropertyHandler/pom.xml
index 188f9cd..498377d 100644
--- a/ipojo/examples/property-handler/PropertyHandler/pom.xml
+++ b/ipojo/examples/property-handler/PropertyHandler/pom.xml
@@ -34,7 +34,7 @@
     <dependency>

       <groupId>org.apache.felix</groupId>

       <artifactId>org.apache.felix.ipojo.metadata</artifactId>

-      <version>1.5.0-SNAPSHOT</version>

+      <version>1.4.0</version>

     </dependency>

   </dependencies>

   <build>

diff --git a/ipojo/handler/transaction/pom.xml b/ipojo/handler/transaction/pom.xml
index 7346a40..ebf018c 100644
--- a/ipojo/handler/transaction/pom.xml
+++ b/ipojo/handler/transaction/pom.xml
@@ -85,7 +85,7 @@
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.ipojo.metadata
       </artifactId>
-      <version>${pom.version}</version>
+      <version>1.4.0</version>
     </dependency>
     <dependency>
       <groupId>org.apache.felix</groupId>
diff --git a/ipojo/junit4osgi/junit4osgi/pom.xml b/ipojo/junit4osgi/junit4osgi/pom.xml
index 31486c0..93e0f8f 100644
--- a/ipojo/junit4osgi/junit4osgi/pom.xml
+++ b/ipojo/junit4osgi/junit4osgi/pom.xml
@@ -36,7 +36,7 @@
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.ipojo.metadata</artifactId>
-      <version>1.5.0-SNAPSHOT</version>
+      <version>1.4.0</version>
     </dependency>
     <dependency>
       <groupId>junit</groupId>
diff --git a/ipojo/manipulator/pom.xml b/ipojo/manipulator/pom.xml
index d336c0f..0a10202 100644
--- a/ipojo/manipulator/pom.xml
+++ b/ipojo/manipulator/pom.xml
@@ -49,7 +49,7 @@
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.ipojo.metadata</artifactId>
-      <version>${pom.version}</version>
+      <version>1.4.0</version>
     </dependency>
   </dependencies>
   <build>
@@ -62,6 +62,7 @@
         <configuration>
           <instructions>
             <Bundle-Name>iPOJO Manipulator</Bundle-Name>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
             <Bundle-Vendor> The Apache Software Foundation </Bundle-Vendor>
             <Bundle-Description> iPOJO Manipulator </Bundle-Description>
             <Export-Package> org.apache.felix.ipojo.manipulator
diff --git a/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java b/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
index 6084bb4..3763477 100644
--- a/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
+++ b/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/Pojoization.java
@@ -67,7 +67,7 @@
     /**
      * iPOJO Imported Package Version.
      */
-    public static final String IPOJO_PACKAGE_VERSION = " 1.4.0";
+    public static final String IPOJO_PACKAGE_VERSION = " 1.6.0";
 
     /**
      * List of component types.
diff --git a/ipojo/plugin/pom.xml b/ipojo/plugin/pom.xml
index 5d2b68f..c36f98b 100644
--- a/ipojo/plugin/pom.xml
+++ b/ipojo/plugin/pom.xml
@@ -67,7 +67,7 @@
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.ipojo.metadata</artifactId>
-      <version>${pom.version}</version>
+      <version>1.4.0</version>
     </dependency>
     <dependency>
       <groupId>org.apache.felix</groupId>
diff --git a/ipojo/pom.xml b/ipojo/pom.xml
index 8443778..df85659 100644
--- a/ipojo/pom.xml
+++ b/ipojo/pom.xml
@@ -45,7 +45,8 @@
     <module>handler/whiteboard</module>
     <module>api</module>
     <module>online-manipulator</module>
-    <module>junit4osgi</module>
+    <!-- remove junit4osgi during the release process 
+    <module>junit4osgi</module> -->
   </modules>
 
 
diff --git a/ipojo/tests/bundleAsiPOJO/bundleAsiPOJO/pom.xml b/ipojo/tests/bundleAsiPOJO/bundleAsiPOJO/pom.xml
index db9c969..b81f645 100644
--- a/ipojo/tests/bundleAsiPOJO/bundleAsiPOJO/pom.xml
+++ b/ipojo/tests/bundleAsiPOJO/bundleAsiPOJO/pom.xml
@@ -29,7 +29,7 @@
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
-      <version>${pom.version}</version>
+      <version>1.4.0</version>
     </dependency>
     <dependency>
       <groupId>xerces</groupId>