On 12/10/2014 09:10 PM, Carl Marcum wrote:
Hi All,

I ran into an issue when trying to create an UNO client application with the Netbeans plugin.

External library jars were not added to dist/lib or the jar manifest during build.

This problem appeared to be related to this issue [1].

I have added the following to UNOClientAppProject template build-uno-impl.xml jar target that overrides jar target in build-impl.xml
-do-jar-without-libraries,-do-jar-with-libraries
This adds library jars to /dist/lib and also Class Path entries in jar manifest for client applications.

Existing projects created prior should be able to change the jar target to include them.
Line 27 in nbproject/build-uno-impl.xml
<target name="jar" depends="-uno-project-init,compile,-pre-jar,-do-jar-jar,-do-jar-without-libraries,-do-jar-with-libraries,-do-openoffice-manifest,-post-jar"> <jar basedir="${build.classes.dir}" manifest="${build.dir}/MANIFEST.MF" filesonly="true" compress="true" jarfile="${dist.jar}">
            <fileset refid="bootstrap.glue.code"/>
        </jar>
    </target>

I have updated the plugin to version 4.1.0 to better reflect the AOO SDK version compatibility.

A compiled version can be found here [2]

[1] http://issues.apache.org/ooo/show_bug.cgi?id=78645
[2] http://people.apache.org/~cmarcum/devtools/org-openoffice-extensions-4.1.0.nbm


---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org



Has anyone tried this update with an UNO client app or otherwise?

If so, on what platform?

Thanks,
Carl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to