Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index



Thanks for your help Cedric,
i tried it with OOEclipse and it seem to work. So its maybe a fault in my
ant build.
(I started with this ant build, because i had trouble with OOEclipse on Mac)

My ant build is

<target name="compileidl">
                <echo level="info">idlc: Creating .urd files</echo>
                <apply
executable="${OOO_SDK}${file.separator}bin${file.separator}idlc"
dest="${MY_IDL}">
                        <env key="PATH" path="${OOO_URE_DIR}${file.separator}bin"/>
                        <env key="LD_LIBRARY_PATH"
path="${OOO_URE_DIR}${file.separator}bin"/>
                        <env key="DYLD_LIBRARY_PATH"
path="${OOO_URE_DIR}${file.separator}bin"/>
                    <arg value="-C" />
                        <arg value="-I${SDK_IDL}" />
                        <arg value="-I${MY_IDL}" />
                        <fileset dir="${MY_IDL}" includes="**/*.idl" />
                    <mapper type="glob" from="*.idl" to="*.urd"/>
                </apply>

                <delete file="${RDBFILE}" />
                <echo level="info" message="regmerge: Creating ${RDBFILE}"
/>
                <apply
executable="${OOO_URE_DIR}${file.separator}bin${file.separator}regmerge"
parallel="false" failonerror="true">
                            <env key="PATH"
path="${OOO_URE_DIR}${file.separator}bin"/>
                            <env key="LD_LIBRARY_PATH"
path="${OOO_URE_DIR}${file.separator}bin"/>
                            <env key="DYLD_LIBRARY_PATH"
path="${OOO_URE_DIR}${file.separator}bin"/>
                            <arg file="${RDBFILE}"/>
                                <arg value="/UCR"/>
                        <fileset dir="${MY_IDL}" includes="**/*.urd" />
                </apply>

                <echo level="info">javamaker: Creating .class files</echo>
                <apply verbose="true"
executable="${OOO_SDK}${file.separator}bin${file.separator}javamaker"
relative="true" addsourcefile="false" dest="${BIN}">
                            <env key="PATH"
path="${OOO_URE_DIR}${file.separator}bin"/>
                            <env key="LD_LIBRARY_PATH"
path="${OOO_URE_DIR}${file.separator}bin"/>
                            <env key="DYLD_LIBRARY_PATH"
path="${OOO_URE_DIR}${file.separator}bin"/>
                            <arg line="-BUCR" />
                        <targetfile />
                        <arg value="-nD" />
                        <arg file="${TYPES_RDB}" />
                        <arg file="${OFFAPI_RDB}" />
                        <arg file="${RDBFILE}" />
                        <arg value="-O" />
                            <!-- <arg value="./${MY_IDL}" /> -->
                            <arg value="${MY_IDL}" />
                            <fileset dir="${MY_IDL}" includes="**/*.urd" />
                        <mapper type="package" from="*.urd" to="-T*" />
                </apply>
        </target>

<target name="compile" depends="compileidl">
                <property name="DEBUG" value="off" />
                <property name="OPTIMIZE" value="on" />

                 <javac srcdir="${SRC}"
                                        destdir="${BIN}"
                                       
classpath="${OOO_CLASSPATH}:${MY_IDL}:${TOOLING}"
                                        includeAntRuntime="false"
                                        encoding="${SRC_ENCODING}"
                                        debug="${DEBUG}"
                                        optimize="${OPTIMIZE}"
                                />
        </target>

<target name="uno.jar" depends="compile, compileidl">
                <delete file="${WollMux_COMPJAR}" />
                
                <jar destfile="${WollMux_COMPJAR}" duplicate="preserve">
                        <fileset dir="${BIN}" includes="**/*.class"/>
                        <fileset dir="${SRC}" includes="**/*.classes"/>
                        <fileset dir="${MY_IDL}" includes="**/*.class"/>
                                        <fileset dir="${UNOHELPER_BIN}"
includes="**/*.class" />
                                        <manifest>
                                                <attribute
name="RegistrationClassName" value="${WollMux_REG_NAME}" />
                                        </manifest>
                                </jar>
        </target>

      <target name="oxt" depends="uno.jar">
                <delete file="${PKG_FILE}" />
        <zipfileset dir="Office/UI/" includes="*" prefix="Office/UI" />
                <zip destfile="${PKG_FILE}">
                        <fileset file="${WollMux_COMPJAR}" />
                            <zipfileset dir="." includes="manifest.xml"
prefix="META-INF" />
                                <fileset dir=".">
                                        <include name="MidiPlayer.jar" />
                                        <include name="ProtocolHandler.xcu" />
                                        <include name="description.xml" />
                                        <include name="CalcAddins.xcu" />
                                        <include name="Addons.xcu" />
                                </fileset>
                            <zipfileset dir="Office/UI/" includes="*"
prefix="Office/UI" />
                            <zipfileset dir="pkg-desc" includes="*"
prefix="pkg-desc" />
                            <zipfileset dir="midicsv" includes="*" prefix="midicsv"
/>
                            <zipfileset dir="MidiCSDbasic" includes="*"
prefix="MidiCSDbasic" />
                        <fileset dir="${RDB_DIR}">
                                <include name="*.jar" />
                                <include name="*.rdb" />
                        </fileset>
                </zip>
        </target>
-- 
View this message in context: 
http://nabble.documentfoundation.org/extension-development-error-javaloader-tp2566163p2571379.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.