static void copyTemplate(Project proj) throws IOException {
FileObject projDir = proj.getProjectDirectory();
FileObject jnlpBuildFile = projDir.getFileObject("nbproject/extendRun.xml"); // NOI18N
if (jnlpBuildFile == null) {
FileSystem sfs = Repository.getDefault().getDefaultFileSystem();
FileObject templateFO = sfs.findResource("Templates/SunResources/extendRun.xml"); // NOI18N
if (templateFO != null) {
FileUtil.copyFile(templateFO, projDir.getFileObject("nbproject"), "extendRun"); // NOI18N
}
}
}