Skip to content

Commit

Permalink
Modified the location of the generated index page.
Browse files Browse the repository at this point in the history
The index page is now created in the target directory. This is
done mostly to prevent overwriting an existing file that may also
have been created by a different scaffold provider.
  • Loading branch information
VineetReynolds committed Sep 27, 2013
1 parent 69621f4 commit bc093b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static List<ScaffoldResource> getStatics(String targetDir) {
*/
public static List<ScaffoldResource> getGlobalTemplates(String targetDir) {
List<ScaffoldResource> resources = new ArrayList<ScaffoldResource>();
resources.add(new ScaffoldResource("index.html.ftl", INDEX_HTML));
resources.add(new ScaffoldResource("index.html.ftl", targetDir+ INDEX_HTML));
resources.add(new ScaffoldResource("app.html.ftl", targetDir + "/app.html"));
resources.add(new ScaffoldResource("scripts/app.js.ftl", targetDir + "/scripts/app.js"));
resources.add(new ScaffoldResource("scripts/services/locationParser.js.ftl", targetDir
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/scaffold/index.html.ftl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<meta http-equiv="refresh" content="0;url=.${targetDir}/app.html" />
<meta http-equiv="refresh" content="0;url=./app.html" />

0 comments on commit bc093b0

Please sign in to comment.