Branch: refs/heads/5.11
Home:
https://github.com/hibernate/hibernate-search
Commit: f5d9b744ed8caabaced69d459ba7715d13e76271
https://github.com/hibernate/hibernate-search/commit/f5d9b744ed8caabaced6...
Author: David Steinkopff <zeitiger(a)users.noreply.github.com>
Date: 2020-01-14 (Tue, 14 Jan 2020)
Changed paths:
M
jsr352/jberet/src/main/java/org/hibernate/search/jsr352/jberet/impl/HibernateSearchJobXmlResolver.java
Log Message:
-----------
HSEARCH-3801 Hibernate Search blocks loading of non hibernate batch jobs
In reference of `org.jberet.spi.JobXmlResolver` it's defined that a resolver that is
not responsible should return `null` instead of throwing a runtime exception
```
/**
* Locates the job XML and creates a stream to the contents.
*
* @param jobXml the name of the job XML with a {@code .xml} suffix
* @param classLoader the class loader for the application
*
* @return a stream of the job XML or {@code null} if the job XML content was not
found
*
* @throws java.io.IOException if an error occurs creating the stream
*/
```
Update HibernateSearchJobXmlResolver.java