Hi Ashok,
thank you very much for your workaround. Could you please file a bug on
this? (With me as owner.)
Regards, Steffen
ashok _ wrote:
Hi Steffen,
I believe there is bug in the 1.0.2 OO plugin for netbeans. the bug
seems to be in the generated build-uno-impl.xml file which overrides
the the ant "jar" target....and writes a manifest section for
Openoffice bootstrap class loader, unfortunately this target ignores
the Class-Path attribute (see [***] below...)
I worked this around by creating a manual manifest.mf - copying and
pasting the automatically generated bits from the plugin generated
manifest, and over-riding the "jar" target within build.xml to load
the manual manifest file...something like:
<target name="jar"
depends="-uno-project-init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar">
<jar basedir="${build.classes.dir}" compress="true"
jarfile="${dist.jar}" manifest="manifest.mf">
<fileset refid="bootstrap.glue.code"/>
</jar>
</target>
thanks
Ashok
[***] - build-uno-impl.xml - manifest section without class-path....
<target name="jar"
depends="-uno-project-init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar">
<jar basedir="${build.classes.dir}" compress="true"
jarfile="${dist.jar}">
<fileset refid="bootstrap.glue.code"/>
<manifest>
<attribute name="Main-Class"
value="com.sun.star.lib.loader.Loader"/>
<section name="com/sun/star/lib/loader/Loader.class">
<attribute name="Application-Class"
value="${main.class}"/>
</section>
</manifest>
</jar>
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]