List of usage examples for com.liferay.portal.util PropsValues STAGING_DELETE_TEMP_LAR_ON_FAILURE
boolean STAGING_DELETE_TEMP_LAR_ON_FAILURE
To view the source code for com.liferay.portal.util PropsValues STAGING_DELETE_TEMP_LAR_ON_FAILURE.
Click Source Link
From source file:com.liferay.exportimport.internal.background.task.BaseStagingBackgroundTaskExecutor.java
License:Open Source License
protected void deleteTempLarOnFailure(File file) { if (PropsValues.STAGING_DELETE_TEMP_LAR_ON_FAILURE) { FileUtil.delete(file);// ww w . java 2s . c om } else if (file != null) { _log.error("Kept temporary LAR file " + file.getAbsolutePath()); } }
From source file:com.liferay.exportimport.lar.ExportImportHelperImpl.java
License:Open Source License
protected ZipWriter getZipWriter(String fileName) { if (!ExportImportThreadLocal.isStagingInProcess() || (PropsValues.STAGING_DELETE_TEMP_LAR_ON_FAILURE && PropsValues.STAGING_DELETE_TEMP_LAR_ON_SUCCESS)) { return ZipWriterFactoryUtil.getZipWriter(); }/*from ww w .j a va2 s . c o m*/ return ZipWriterFactoryUtil.getZipWriter( new File(SystemProperties.get(SystemProperties.TMP_DIR) + StringPool.SLASH + fileName)); }