Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A58F0D2A6 for ; Wed, 19 Dec 2012 22:02:48 +0000 (UTC) Received: (qmail 25605 invoked by uid 500); 19 Dec 2012 22:02:48 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 25549 invoked by uid 500); 19 Dec 2012 22:02:48 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Delivered-To: moderator for dev@couchdb.apache.org Received: (qmail 16970 invoked by uid 99); 19 Dec 2012 21:59:11 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.250.139 is neither permitted nor denied by domain of kyle.marchant@agilex.com) Date: Wed, 19 Dec 2012 13:58:45 -0800 (PST) From: KyleMarchant To: dev@couchdb.apache.org Message-ID: <1355954325301-7582437.post@n2.nabble.com> Subject: Import a Java Library into CouchDB JavaScript Validation Function MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.