ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v...@trilogy.com
Subject Re: JNI
Date Mon, 11 Feb 2002 19:35:42 GMT
I doubt the %% variables below are expanded when cl is executed through 
Java's exec [those would be expanded by a shell].

Perhaps try using ${env.JavaPath} etc instead ?

Vlad.


Please respond to "Ant Users List" <ant-user@jakarta.apache.org>
To:     ant-user@jakarta.apache.org
cc: 

Subject:        JNI


Hi!

I'm having trouble with a JNI project:

<target depends="init,headergen" description="Compile C++ dll." 
name="cppcompile">
<apply executable="cl" dest="${basedir}/../ressources" parallel="false" 
failonerror="true">
<arg line="-I%JavaPath%\include -I%JavaPath%\include\win32"/>
<arg line="-LD"/>
<fileset dir="${basedir}">
<include name="**/*.c"/>
<include name="**/*.cpp"/>
</fileset>
<mapper type="glob" from="*.cpp" to="*.dll"/>
</apply>
</target>

won't work. I get:
fatal error.. Cannot open include file: 'jni.h' (which is included from my 
.h file)

Calling cl from the command line works fine with the same parameters

Any ideas?



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>





--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message