Return-Path: X-Original-To: apmail-river-commits-archive@www.apache.org Delivered-To: apmail-river-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3925418FFC for ; Sat, 5 Dec 2015 10:59:11 +0000 (UTC) Received: (qmail 19083 invoked by uid 500); 5 Dec 2015 10:59:11 -0000 Delivered-To: apmail-river-commits-archive@river.apache.org Received: (qmail 19054 invoked by uid 500); 5 Dec 2015 10:59:11 -0000 Mailing-List: contact commits-help@river.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@river.apache.org Delivered-To: mailing list commits@river.apache.org Received: (qmail 19041 invoked by uid 99); 5 Dec 2015 10:59:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2015 10:59:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0275A2C1F61 for ; Sat, 5 Dec 2015 10:59:11 +0000 (UTC) Date: Sat, 5 Dec 2015 10:59:11 +0000 (UTC) From: "Peter Firmstone (JIRA)" To: commits@river.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (RIVER-123) ConfigurationFile should support arithmetic operations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/RIVER-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Peter Firmstone resolved RIVER-123. ----------------------------------- Resolution: Won't Fix Fix Version/s: River_3.0.0 Use Groovy configuration for arithmetic operations. > ConfigurationFile should support arithmetic operations > ------------------------------------------------------ > > Key: RIVER-123 > URL: https://issues.apache.org/jira/browse/RIVER-123 > Project: River > Issue Type: Improvement > Components: net_jini_config > Affects Versions: jtsk_2.1 > Reporter: Ron Mann > Fix For: River_3.0.0 > > > Bugtraq ID [5091973|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5091973] > There have been some requests on the Porter discussion list for ConfigurationFile to support arithmetic operations. A use case for this feature is to facilitate configuring services with a set of consecutive ports open in a firewall. > Below is the use case provided by Van Simmons from Invesco: > "...my particular case was in wanting to use a range of port numbers for my various services so that I could open some holes in a firewall and allow access to the services. In that case, I would like to pass in ${basePortNumber} as variable, have reggie use ${basePortNumber}, outrigger use ${basePortNumber}+1, et al. That way, if I decided to move things around I could do that without revisiting all my config files." > While ${basePortNumber} could not be used directly in an addition expression because it is of type String, it would be possible to do something like Integer.parseInt(${basePortNumber}) + 1. -- This message was sent by Atlassian JIRA (v6.3.4#6332)