public static void createTaskFile(@NotNull final VirtualFile taskDir,@NotNull final File resourceRoot,@NotNull final String name) throws IOException {
  String systemIndependentName=FileUtil.toSystemIndependentName(name);
  final int index=systemIndependentName.lastIndexOf("/");
  if (index > 0) {
    systemIndependentName=systemIndependentName.substring(index + 1);
  }
  File resourceFile=new File(resourceRoot,name);
  File fileInProject=new File(taskDir.getPath(),systemIndependentName);
  FileUtil.copy(resourceFile,fileInProject);
}

public static void createTaskFile ( @ NotNull final VirtualFile taskDir , @ NotNull final File resourceRoot , @ NotNull final String name ) throws IOException { String systemIndependentName = FileUtil . toSystemIndependentName ( name ) ; final int index = systemIndependentName . lastIndexOf ( "/" ) ; if ( index > 0 ) { systemIndependentName = systemIndependentName . substring ( index + 1 ) ; } File resourceFile = new File ( resourceRoot , name ) ; File fileInProject = new File ( taskDir . getPath ( ) , systemIndependentName ) ; FileUtil . copy ( resourceFile , fileInProject ) ; }
creates task files in its task folder in project user created
