On Tue, 29 Mar 2005, Brad BARCLAY wrote: > One thing I'd urge is that if you are going to use this to solve this >situation, use relative paths as opposed to absolute paths. Not all >platforms are going to have a "/opt" directory, either because of how >drives are mounted (ie: OS/2 and Windows), or because it's not really a >standard directory on the system and doesn't fit into how the system >handles property files (Mac OS X). Indeed, this whole system if >applied to the JAR files would be equally problematic, as your chosen >path is tied to Unix-style OS directory naming schemes.
But the platform implementation provides the properties file (and thus would be the JAR file with any special settings). So OS/2, Windows, and MAC OS X aren't in the picture. Each platform can pacakge its code however is best for the platform, and put the properties files whereever...for example RPMs aren't appropriate for Windows or OS/2 or MAC OS X, each would need its own installer(s) for all 3 packages (i.e. javax-usb, javax-usb-ri, and the platform implementation). > One possible solution -- have your RPM install-time script create >symbolic links of the JARs and the property files inside your >/opt/javax-usb directory tree into the jre/lib/ext directory, using >relative paths to reference the properties file. This would absolve >you from having to have different JAR builds for different OS >platforms. Eck, I'm not sure, the jre/lib/ext directory is specific to a particular JRE/JDK install. So it would have to be determined at RPM install-time (ick) and it wouldn't be present in any installed-later JREs/JDKs. e.g. if javax.usb is installed and then the JDK is installed or updated, there wouldn't be any links in jre/lib/ext. I'd rather stay out of jre/lib/ext altogether; if a JRE/JDK provider wants to create a javax.usb companion package for each of their JRE/JDKs, that's the time to drop the javax.usb JAR files into jre/lib/ext. Like, the IBM JRE/JDK has a companion JAVACOMM (javax.comm) package that drops the JAR file into jre/lib/ext... -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel