tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Anderson" <>
Subject Re: Detecting OS in jkant
Date Tue, 04 Dec 2001 17:39:56 GMT

That might not work for my platform (NetWare) because I actually build
binaries on a windows box so the os.arch property wouldn't match.  On
other hand, if you set it in the appropriate compiler class
(LibtoolCompiler, or
CcCompiler) then it should only affect the *nix platforms.  That is
what we
have done in the MwccCompiler for NetWare, and the MsvcCompiler for
Windows (look at the setSoTask methods).  

The other thing we could maybe do is set a property that contains the
additional path to the platform specific directory
(project.setProperty("jni_md_dir", "linux")) and use that property in
build.xml file:

<include name="${java.home}../include/${jni_md_dir}" />

I'm not sure if that would work because of when the variables in the
path are
actually resolved, but maybe Costin (or another Ant guru) would be able
to shed
some light on this.

Mike Anderson

>>> 12/04/01 06:18AM >>>
>I am thinking of detecting the OS in jkant via
System.getProperty("os.arch") and
>Basicly I have problems to build jni because jni_md.h cannot be found
because it
>is in a sub-directory of java.home/include
>                 PC     RM            Sparc   BS200
>os.arch          i386   mips          sparc   osd
>          Linux  ReliantUnix-N SunOS   POSIX-BC
>subdirectory     linux  mips          solaris osd
>After the detection should I use a
project.setProperty("system_name","true"); or
>make it more generic?
>To unsubscribe, e-mail:  
>For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message