IPOJO Ant TaskIPOJO Ant Task allows automating the iPOJO manipulation process. This page explains how to use the iPOJO Ant Task and how to combine them with the BND Tasks. Downloading the iPOJO Ant TaskThe iPOJO Ant Task can ben downloaded from here. How to use the Ant TaskThe iPOJO Ant task take an input bundle and a metadata file and create the final (i.e. manipulated) bundle. <target name="main"> <ipojo First, define the new task. Then simply use it. The input argument describe the input bundle (must exists) and the metadata argument describes the metadata file (must exist too). The input bundle must be a well-formed bundle. Ant Task ArgumentsThe iPOJO Ant Task as three different arguments:
Combining the iPOJO Ant Task and BNDThe iPOJO Ant Task requires an input bundle. BND is a tools simplifying bundle creation. So, it is possible to combine the two tools to create your bundle automatically. The following build.xml shows you an example of combination. <project default="main" basedir="."> <target name="main" depends="bnd"> The first target creates the bundle with BND. More details on the BND Ant Task are available here. To combine the BND output and the iPOJO input, the iPOJO input need to be the same as the BND file but with the ".jar" extension. For instance, the BND file is foo.bnd, so the input jar must be foo.jar. However, it is possible to create only one target doing the two operations as: <target name="main"> <!-- Change the path to point on the iPOJO Ant task jar --> <bnd <ipojo ConclusionSubscribe to the Felix users mailing list by sending a message to users-subscribe@felix.apache.org; after subscribing, email questions or feedback to users@felix.apache.org |
OverviewGetting StartedUser Guide
ToolsDeveloper GuideMisc & Contact
|