Branch: refs/heads/5.10
Home:
https://github.com/hibernate/hibernate-search
Commit: 467306a59869fdb8dbe7483fae789ac75f978df5
https://github.com/hibernate/hibernate-search/commit/467306a59869fdb8dbe7...
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