Author: ssmiweve
Date: 2009-09-28 20:45:06 +0200 (Mon, 28 Sep 2009)
New Revision: 7294

Modified:
   
branches/2.18/sitemap-generator/src/main/java/no/sesat/sitemap/SitemapGenerator.java
Log:
HACK add site into system properties, a la the global context


Modified: 
branches/2.18/sitemap-generator/src/main/java/no/sesat/sitemap/SitemapGenerator.java
===================================================================
--- 
branches/2.18/sitemap-generator/src/main/java/no/sesat/sitemap/SitemapGenerator.java
        2009-09-25 20:08:56 UTC (rev 7293)
+++ 
branches/2.18/sitemap-generator/src/main/java/no/sesat/sitemap/SitemapGenerator.java
        2009-09-28 18:45:06 UTC (rev 7294)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (2007-2009) Schibsted ASA
+ * This file is part of SESAT.
+ *
+ *   SESAT is free software: you can redistribute it and/or modify
+ *   it under the terms of the GNU Affero General Public License as published 
by
+ *   the Free Software Foundation, either version 3 of the License, or
+ *   (at your option) any later version.
+ *
+ *   SESAT is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU Affero General Public License for more details.
+ *
+ *   You should have received a copy of the GNU Affero General Public License
+ *   along with SESAT.  If not, see <http://www.gnu.org/licenses/>.
+ */
 package no.sesat.sitemap;
 
 import no.sesat.search.sitemap.PageProvider;
@@ -105,6 +122,9 @@
 
         this(new ArrayList<PageProvider>(), dest, url);
 
+        // HACK add site into system properties, a la the global context
+        System.setProperty("no.sesat.sitemap.SitemapGenerator.site", 
site.toString());
+
         for (PageProvider provider : ServiceLoader.load(PageProvider.class, 
getClassLoader(site))) {
             LOG.info("Found " + provider.getName());
             providers.add(provider);

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to