Open GoogleCodeExporter opened 9 years ago
A follow-up:
I believe the error occurs in the following situation:
a) Use the default constructor:
WebSitemapGenerator wsg = new WebSitemapGenerator(BASE_URL, myDir);
b) number total urls < maxUrls per file (e.g. 6 vs. 50000)
I worked around the situation by doing the following:
* using the 'builder' method for constructing SiteMapGenerator options.
* specify a low value for the 'maxUrls' (e.g. 2)
Result:
The Library generated correctly site map and site map index xml files .
Original comment by milbr...@gmail.com
on 13 Jul 2010 at 8:17
Me too!
I found the max value for 'maxUrls' is 231.
Original comment by azure.i....@gmail.com
on 16 Feb 2011 at 9:10
I will say it is a bug as nothing says that it can't exist a sitemapIndex if
only one sitemap file has been generated.
As a fix, I propose the following patch.
Original comment by stephane...@gmail.com
on 6 May 2011 at 3:40
Attachments:
[deleted comment]
how to apply patch
Original comment by ankur.bh...@gmail.com
on 30 Jul 2014 at 1:01
This has been fixed in sitemapgen4j v1.0.2 (now hostet on github:
https://github.com/dfabulich/sitemapgen4j)
Original comment by m.k...@irregular.at
on 20 Mar 2015 at 10:00
Original issue reported on code.google.com by
milbr...@gmail.com
on 13 Jul 2010 at 12:46