couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KyleMarchant <kyle.march...@agilex.com>
Subject Import a Java Library into CouchDB JavaScript Validation Function
Date Wed, 19 Dec 2012 21:58:45 GMT
I would like to use a java library within a validation function for accessing
an external properties file. Something like the following:

importPackage(Packages.java.io);
importPackage(Packages.java.util);

var file = new File(sPropertyFile);
var fis = new FileInputStream(file);

var prop = new Properties();
prop.load(fis);
var field = prop.getProperty("FIELD1");

Can anyone tell me if CouchDB allows the importing of Java Library
(Packages) and if so can you provide me instructions or an example of how to
go about doing this?

Much appreciated.
Kyle



--
View this message in context: http://couchdb-development.1959287.n2.nabble.com/Import-a-Java-Library-into-CouchDB-JavaScript-Validation-Function-tp7582437.html
Sent from the CouchDB Development mailing list archive at Nabble.com.

Mime
View raw message