Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • version increments

    1 answers - 1537 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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 | | 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.

Re: version increments


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "Development"

EMSDN.COM