From commits-return-4868-apmail-ace-commits-archive=ace.apache.org@ace.apache.org Thu Mar 19 14:40:52 2015 Return-Path: X-Original-To: apmail-ace-commits-archive@www.apache.org Delivered-To: apmail-ace-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 E700217CFE for ; Thu, 19 Mar 2015 14:40:51 +0000 (UTC) Received: (qmail 20902 invoked by uid 500); 19 Mar 2015 14:40:51 -0000 Delivered-To: apmail-ace-commits-archive@ace.apache.org Received: (qmail 20875 invoked by uid 500); 19 Mar 2015 14:40:51 -0000 Mailing-List: contact commits-help@ace.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ace.apache.org Delivered-To: mailing list commits@ace.apache.org Received: (qmail 20819 invoked by uid 99); 19 Mar 2015 14:40:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2015 14:40:51 +0000 Date: Thu, 19 Mar 2015 14:40:50 +0000 (UTC) From: "Marcel Offermans (JIRA)" To: commits@ace.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACE-513) Improve workspace API 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/ACE-513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14369432#comment-14369432 ] Marcel Offermans commented on ACE-513: -------------------------------------- I agree completely with the first three bullets. I am not a big fan of creating multiple commands for the same things. Especially since the Gogo shell already provides an alias command that you can use if you don't like the default command names. > Improve workspace API > --------------------- > > Key: ACE-513 > URL: https://issues.apache.org/jira/browse/ACE-513 > Project: ACE > Issue Type: Improvement > Components: Client Repository > Affects Versions: 2.0.1 > Reporter: J.W. Janssen > > The current workspace API has a couple of drawbacks that makes it less efficient when used in scripts. For example, the create methods ({{c*}}) do not all return the created repository object, needing a lookup if you want to do other stuff with that repository object after creation. > A list of proposed changes: > * let the create methods return the created object; > * the {{da}} method should accept an {{ArtifactObject}} instead of an {{RepositoryObject}} (conform the other delete methods); > * {{lr}} and {{lrp}} both do the same thing: list resource processors. Remove {{lr}} in favour of {{lrp}}; > * expose the {{createArtifact}}, {{createFeature}}, etc from {{WorkspaceImpl}} as this makes it easier to read in scripts (the shorthand versions are useful when working directly in gogo shell). > Any thoughts, remarks? -- This message was sent by Atlassian JIRA (v6.3.4#6332)