code: private File getRamlOutputFile(File input) {
          String ramlFileName = input.getName().substring(0, input.getName().length() - 4) + "raml";
  
          File outDir;
          if (outputDirectory == null) {
              outDir = new File(WatcherUtils.getExternalAssetsDestination(basedir), "raml");
          } else {
              outDir = new File(basedir, outputDirectory);
          }
  
          return new File(outDir, ramlFileName);
      }
docs: Create the .raml file from the java source file.
  
  @param input The java source file.
  @return The File where the raml spec, for the given input, will be written.