Return-Path: X-Original-To: apmail-ctakes-notifications-archive@www.apache.org Delivered-To: apmail-ctakes-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 958F817788 for ; Fri, 7 Nov 2014 17:04:34 +0000 (UTC) Received: (qmail 73734 invoked by uid 500); 7 Nov 2014 17:04:34 -0000 Delivered-To: apmail-ctakes-notifications-archive@ctakes.apache.org Received: (qmail 73701 invoked by uid 500); 7 Nov 2014 17:04:34 -0000 Mailing-List: contact notifications-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ctakes.apache.org Delivered-To: mailing list notifications@ctakes.apache.org Received: (qmail 73680 invoked by uid 99); 7 Nov 2014 17:04:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2014 17:04:34 +0000 Date: Fri, 7 Nov 2014 17:04:34 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: notifications@ctakes.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CTAKES-162) Command line scripts leave the user back one directory 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/CTAKES-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14202271#comment-14202271 ] ASF subversion and git services commented on CTAKES-162: -------------------------------------------------------- Commit 1637409 from chenpei@apache.org in branch 'ctakes/trunk' [ https://svn.apache.org/r1637409 ] CTAKES-162 - for batch scripts - bring user back to original directory after running. Also pass in $@ any args from parent script for.sh. > Command line scripts leave the user back one directory > ------------------------------------------------------ > > Key: CTAKES-162 > URL: https://issues.apache.org/jira/browse/CTAKES-162 > Project: cTAKES > Issue Type: Bug > Components: ctakes-clinical-pipeline, ctakes-utils > Affects Versions: 3.0-incubating > Reporter: Troy Bleeker > Assignee: James Joseph Masanz > Priority: Minor > Fix For: 3.2.1 > > > Windows was tested. When you run either command runctakesCVD.bat or runctakesCPE.bat the scripts run commands to kick off java that will ultimately change the operating directory back to the home directory. For example, > ===================================================================== > C:\apache-ctakes-3.0.0-incubating>cd \apache-ctakes-3.0.0-incubating\bin > C:\apache-ctakes-3.0.0-incubating\bin>runctakesCVD.bat > C:\apache-ctakes-3.0.0-incubating\bin>set CURRENT_DIR=C:\apache-ctakes-3.0.0-inc > ubating\bin > C:\apache-ctakes-3.0.0-incubating\bin>if not "C:\apache-ctakes-3.0.0-incubating" > == "" goto gotHome > C:\apache-ctakes-3.0.0-incubating\bin>if exist "C:\apache-ctakes-3.0.0-incubatin > g\bin\runctakesCVD.bat" goto okHome > C:\apache-ctakes-3.0.0-incubating\bin>cd C:\apache-ctakes-3.0.0-incubating > C:\apache-ctakes-3.0.0-incubating>java -cp "C:\apache-ctakes-3.0.0-incubating/li > b/*;C:\apache-ctakes-3.0.0-incubating/desc/;C:\apache-ctakes-3.0.0-incubating/re > sources/" -Dlog4j.configuration=file:/C:\apache-ctakes-3.0.0-incubating/config/l > og4j.xml -Xms512M -Xmx1024M org.apache.uima.tools.cvd.CVD > ===================================================================== > I started in the bin directory. After the command I am no longer there. Why does that matter? If a newcomer does not notice this they will not understand why they cannot run the command twice in a row. It is also just inconvenient. > As a workaround a user can start in cTAKES_HOME and issue the command prefixed with the bin directory like so bin\runctakesCVD.bat but again this is not convenient. -- This message was sent by Atlassian JIRA (v6.3.4#6332)