www.emsdn.com
Class Profile: Home »» Development [Development] under "Development" »»» version increments
version increments
Hi All,
I have created a new version of RXTX to represent
no locks, for macos x use.
In SerialImp.c:
JNIEXPRT jstring JNICALL RXTXVersion(nativeGetVersion) (JNIEnv *env,
jclass jclazz )
{
return (*env)->NewStringUTF( env, "R-testing-XTX-2.1-7pre20noLock" );
}
And in RXTXVersion.java
I use:
static {
System.loadLibrary( "rxtxSerial" );
Version = "R-testing-XTX-2.1-7pre20noLock";
}
To reflect the new, unsafe, versions (since serial port conflicts can result).
Experimental: JNILoad called.
Devel Library
Native lib Version = R-testing-XTX-2.1-7pre20noLock
Java lib Version = R-testing-XTX-2.1-7pre20noLock
/dev/tty.modem:attempting open-close
/dev/tty.modem:worked!
So, open-close now works. The problem lies in having to remember
to delete the old librxtxSerial.jnilib from the present pwd, since
that is in the library path. Probably the make clean should do that
Even better would be a means of making versions a function of the
time at which they are made, to make sure of synchronization.
I wonder if a sed script could insert the date and time into the version
string of the RXTXVersion.java and SerialImp.c files.
Such a sed script (or even java program) could be run during the make
or config process.
Anyhow, all seems well now; Scott, Trent, thanks for your help,
you guys are great!
- Doug
Rxtx mailing list
Rxtx (AT) mail (DOT) electronpusher.org
No. 1# | By Developer Tags User at [2008-5-4] | size: 1205 bytes
Experimental: JNILoad called.
Devel Library
Native lib Version = R-testing-XTX-2.1-7pre20noLock
Java lib Version = R-testing-XTX-2.1-7pre20noLock
/dev/tty.modem:attempting open-close
/dev/tty.modem:worked!
So, open-close now works. The problem lies in having to remember
to delete the old librxtxSerial.jnilib from the present pwd, since
that is in the library path. Probably the make clean should do that
Even better would be a means of making versions a function of the
time at which they are made, to make sure of synchronization.
I wonder if a sed script could insert the date and time into the version
string of the RXTXVersion.java and SerialImp.c files.
Such a sed script (or even java program) could be run during the make
or config process.
Yes the version information could be more complete. I was thinking of
modifying version info to something like the following.
rxtx version-patch version-builder@build machine-build number-date
So everything like its been but more information on the end.
The other modification would be a main() in RXTXVersion.java that prints
out the current version information.
Development Hot!
Development New!
Copyright © 2008 www.emsdn.com • All rights reserved • CMS Theme by www.emsdn.com - 0.188