Recognise Groovy profiles during job discovery

This commit is contained in:
Alex Osborne
2026-04-27 17:56:23 +09:00
parent b1e13c550b
commit 9e43fde053
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -8,6 +8,10 @@
* **Profile selector:** You can now select a profile from a dropdown list when creating a new job.
### Bug fixes
* **Groovy profiles:** Fixed discovery of job directories containing `profile-crawler-beans.groovy`
## [3.14.1](https://github.com/internetarchive/heritrix3/releases/tag/3.14.1) (2026-04-06)
[Download distribution zip](https://repo1.maven.org/maven2/org/archive/heritrix/heritrix/3.14.1/heritrix-3.14.1-dist.zip) (or [tar.gz](https://repo1.maven.org/maven2/org/archive/heritrix/heritrix/3.14.1/heritrix-3.14.1-dist.tar.gz))
@@ -140,7 +140,9 @@ public class Engine {
}
File[] candidateConfigs = dir.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.endsWith(".cxml") || name.equals("crawler-beans.groovy");
return name.endsWith(".cxml") ||
name.equals("crawler-beans.groovy") ||
name.equals("profile-crawler-beans.groovy");
}});
if(candidateConfigs==null || candidateConfigs.length == 0) {
// no CXML file found!