Skip to content

Commit

Permalink
Added support for empty folders
Browse files Browse the repository at this point in the history
  • Loading branch information
edscadding committed Dec 30, 2014
1 parent 8fbd97a commit 8ded67f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

public class ProjectTemplateSection extends BaseOptionTemplateSection {

private static final String PLACEHOLDER_FILE = "empty";

private static final String UNMAPPED_VALUE_SUFFIX = ":unmapped";

private static final String UPPER_CAMEL_CASE_SUFFIX = ":uppercamelcase";
Expand Down Expand Up @@ -96,6 +98,11 @@ protected void generateFiles(IProgressMonitor monitor) throws CoreException {
}
}

@Override
protected boolean isOkToCreateFile(File sourceFile) {
return !PLACEHOLDER_FILE.equals(sourceFile.getName());
}

private URL toTemplateLocationURL(String location) {
try {
File templateDir = new File(location, TEMPLATE_DIRECTORY_NAME);
Expand Down

0 comments on commit 8ded67f

Please sign in to comment.