update script

This commit is contained in:
Shinsuke Sugaya 2024-02-10 10:22:31 +09:00
parent 7f12894ad7
commit ad96194f59
3 changed files with 6 additions and 2 deletions

View file

@ -328,10 +328,13 @@ public class FessMultipartRequestHandler implements MultipartRequestHandler {
protected String getRepositoryPath() {
final File tempDirFile = (File) LaServletContextUtil.getServletContext().getAttribute(ServletContext.TEMPDIR);
System.out.println("XXX " + tempDirFile);
if (tempDirFile != null) {
final String tempDir = tempDirFile.getAbsolutePath();
System.out.println("XXX " + tempDir);
if (StringUtil.isNotBlank(tempDir)) {
return tempDir;
System.out.println("XXX " + System.getProperty(JAVA_IO_TMPDIR_KEY));
// return tempDir;
}
}
return System.getProperty(JAVA_IO_TMPDIR_KEY);

View file

@ -31,4 +31,5 @@ git clone https://github.com/codelibs/fess-testdata.git
popd >/dev/null
cat ${temp_log_file} ./fess-*/logs/*.log
curl -s "http://localhost:8080/"

View file

@ -3,7 +3,7 @@
touch $(ls -d ./fess-*/logs)/fess-crawler.log
tail -f ./fess-*/logs/*.log &
mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201" --debug
mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201"
ret=$?
if [ $ret != 0 ] ; then