ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xar <>
Subject Re: How can I access the environtment variable JAVA_HOME?
Date Wed, 01 Mar 2006 15:10:16 GMT
Well, i tried both ideas and the first one works fine but the second one no.

<target name="cCode" description="The C code of the project. It will be
stored with the correspondent java class">
                <property name="dir1" value="BOI/BOIDecoder/Decode" />
                <javah outputFile="${src}/${dir1}/BPEDecode.h"
class="${dir1}/BPEDecode" classpath="${build}"/>
                <javah outputFile="${src}/${dir1}/BPEMQDecode.h"
class="${dir1}/BPEMQDecode" classpath="${build}"/>
                <javah outputFile="${src}/${dir1}/MQDecode.h"
class="${dir1}/MQDecode" classpath="${build}"/>
                <apply executable="gcc" dest="${build}/${dir1}">
                        <arg value="-Wall"/>
                        <arg value="-fpic"/>
                        <arg value="-shared"/>
                        <arg value="-I${java.home}/include/"/>
                        <arg value="-o"/>
                        <fileset dir="${src}/${dir1}" includes="*.c"/>
                        <mapper type="glob" from="*.c" to="lib*.so"/>

And that's the output:

jni.h: No existe el fichero o el directorio (Translation: "The file or
directory doesn't exist")

For now I will keep the first idea, but i think that maybe it's better the
second one. Am I doing anything incorrect?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message