code: public static String getProjectName( File inputDefFile)
      {
      String projectName = null;
      if( inputDefFile != null)
        {
        String inputBase = FilenameUtils.getBaseName( inputDefFile.getName());
  
        projectName =
          inputBase.toLowerCase().endsWith( "-input")
          ? inputBase.substring( 0, inputBase.length() - "-input".length())
          : inputBase;
        }
  
      return projectName;
      }
docs: Returns the name of the project for the given input definition file.