You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by se...@apache.org on 2022/07/28 18:13:19 UTC

svn commit: r1903080 - /ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/CommandRunner.java

Author: seanfinan
Date: Thu Jul 28 18:13:18 2022
New Revision: 1903080

URL: http://svn.apache.org/viewvc?rev=1903080&view=rev
Log:
Don't check for executable as there are too many variations should the extension not be included.

Modified:
    ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/CommandRunner.java

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/CommandRunner.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/CommandRunner.java?rev=1903080&r1=1903079&r2=1903080&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/CommandRunner.java (original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/CommandRunner.java Thu Jul 28 18:13:18 2022
@@ -110,16 +110,12 @@ public class CommandRunner extends JCasA
    @Override
    public void initialize( final UimaContext context ) throws ResourceInitializationException {
       super.initialize( context );
-      if ( _cmdDir != null && !_cmdDir.isEmpty() && !( new File( _cmdDir ).exists() ) ) {
+      if ( _cmdDir != null && !_cmdDir.isEmpty() && !new File( _cmdDir ).exists() ) {
          LOGGER.warn( "Cannot find Command Directory " + _cmdDir );
       }
-      if ( _dir != null && !_dir.isEmpty() && !( new File( _dir ).exists() ) ) {
+      if ( _dir != null && !_dir.isEmpty() && !new File( _dir ).exists() ) {
          LOGGER.warn( "Cannot find Directory " + _dir );
       }
-      final String command = ( _cmdDir == null || _cmdDir.isEmpty() ) ? _cmd : _cmdDir + File.separator + _cmd;
-      if ( !( new File( command ).exists() ) ) {
-         LOGGER.warn( "Cannot find Command " + command );
-      }
       if ( _perDoc.equalsIgnoreCase( "yes" ) || _perDoc.equalsIgnoreCase( "true" ) ) {
          return;
       }