Skip to content

Commit

Permalink
Merge pull request #92 from glenrobson/upload_fix
Browse files Browse the repository at this point in the history
Fixing a missing directory that now doesn't exist
  • Loading branch information
glenrobson authored Sep 15, 2020
2 parents 0dab371 + ac6f975 commit c017fa6
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,13 @@ public class ManifestUpload extends HttpServlet {
protected static Logger _logger = LogManager.getLogger(ManifestUpload.class.getName());
protected AnnotationUtils _annotationUtils = null;
protected StoreAdapter _store = null;
protected File _manifestDir = null;

public void init(final ServletConfig pConfig) throws ServletException {
super.init(pConfig);
Encoder tEncoder = StoreConfig.getConfig().getEncoder();
_annotationUtils = new AnnotationUtils(new File(super.getServletContext().getRealPath("/contexts")), tEncoder);
_store = StoreConfig.getConfig().getStore();
_store.init(_annotationUtils);
_manifestDir = new File(super.getServletContext().getRealPath(pConfig.getInitParameter("manifest_dir")));
if (!_manifestDir.exists()) {
_logger.debug("Making " + _manifestDir.getPath());
_manifestDir.mkdirs();
} else {
_logger.debug("exists " + _manifestDir.getPath());
}
}

public void doPost(final HttpServletRequest pReq, final HttpServletResponse pRes) throws IOException {
Expand Down

0 comments on commit c017fa6

Please sign in to comment.