2008/9/1 Milinda Pathirage <[EMAIL PROTECTED]>

> Hi all,
> I want to copy directory contains in a dependency jar file to my OSGi
> bundle. So I use following line to do it.
>
> <Include-Resource>
>                            @ode-dao-jpa-1.2.jar!/META-INF/persistence.xml,
>
> @ode-bpel-schemas-1.2.jar!/schemaorg_apache_xmlbeans/*,
>
> @ode-bpel-schemas-1.2.jar!/ws-bpel_abstract_common_base.xsd,
>
> @ode-bpel-schemas-1.2.jar!/ws-bpel_executable.xsd,
>
> @ode-bpel-schemas-1.2.jar!/wsbpel_main-draft-Apr-29-2006.xsd,
>
> @ode-bpel-schemas-1.2.jar!/wsbpel_main-draft-Sep-06-2005.xsd,
>
> @ode-bpel-schemas-1.2.jar!/wsbpel_plinkType-draft-Apr-29-2006.xsd,
>
> @ode-bpel-schemas-1.2.jar!/wsbpel_plinkType-draft-Sep-06-2005.xsd,
>                            @ode-bpel-schemas-1.2.jar!/ws-bpel_plnktype.xsd,
>
> @ode-bpel-schemas-1.2.jar!/ws-bpel_serviceref.xsd,
>                            @ode-bpel-schemas-1.2.jar!/ws-bpel_varprop.xsd,
>                            @ode-bpel-schemas-1.2.jar!/wsdl.xsd,
>                            @ode-bpel-schemas-1.2.jar!/xml.xsd,
> </Include-Resource>
>
> But all the other files copied into the bundle. But
> "schemaorg_apache_xmlbeans" directory is not copied into the bundle.


what's directly inside the schemaorg_apache_xmlbeans directory?
ie. does it only contain files, or sub-directories with files, or both?

the BND documentation (http://aqute.biz/Code/Bnd#include-resource)
says you should use * to include one directory level and ** to include
all directories, recursively...

I tried
> various combination but it didn't work. But if I gave file inside that
> directory hierarchy, the bundle plugin copy that file into the bundle.
> I can't put all the fies inside that directory to <Include-Resource>,
> because it contains more than 100 files. I found that there places some of
> the guys have used the above method to copy directory to bundle. Can anyone
> help me to solve this problem.
>
> Thanks
> Milinda
>
>
> --
> http://mpathirage.com
> http://wso2.org "Oxygen for Web Service Developers"
> http://wsaxc.blogspot.com "Web Services With Axis2/C"
>



-- 
Cheers, Stuart

Reply via email to