dfabulich / sitemapgen4j

SitemapGen4j is a library to generate XML sitemaps in Java.
Apache License 2.0
160 stars 90 forks source link

Error using maxUrls( .. ) #20

Open JesusMaciasAtos opened 8 years ago

JesusMaciasAtos commented 8 years ago

If i write following:

static final int MAX_NEWS_URLS_NUM = 2000;
SitemapGeneratorBuilder<GoogleNewsSitemapGenerator> sgb= GoogleNewsSitemapGenerator.builder(MyURL, MyDirectory).dateFormat(dateFormat);
sgb.maxUrls(MAX_NEWS_URLS_NUM).build();  // here is the Problem

I can not use the function maxUrls(..) because it produce an Error!