Store the Sone in the insert site, too.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 04:35:25 +0000 (06:35 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 04:35:25 +0000 (06:35 +0200)
src/main/java/net/pterodactylus/sone/core/SoneInserter.java
src/main/resources/templates/insert/sone.xml [new file with mode: 0644]

index afd406f..af0f27e 100644 (file)
@@ -187,6 +187,9 @@ public class SoneInserter extends AbstractService {
                        /* first, create an index.html. */
                        manifestEntries.put("index.html", createManifestElement("index.html", "text/html; charset=utf-8", "/templates/insert/index.html"));
 
+                       /* now, store the sone. */
+                       manifestEntries.put("sone.xml", createManifestElement("sone.xml", "text/xml; charset=utf-8", "/templates/insert/sone.xml"));
+
                        return manifestEntries;
                }
 
diff --git a/src/main/resources/templates/insert/sone.xml b/src/main/resources/templates/insert/sone.xml
new file mode 100644 (file)
index 0000000..0bb35b0
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<sone>
+
+       <name><% currentSone.name|html></name>
+
+</sone>