Project

General

Profile

« Previous | Next » 

Revision e89aecfa

Added by Andreas Kohlbecker over 6 years ago

logging improvement for dev environments

View differences:

src/main/java/eu/etaxonomy/cdm/server/Bootloader.java
220 220

  
221 221
            File pomxml = new File("pom.xml");
222 222
            if(pomxml.exists()){
223
                logger.info("will try find the war in target folder of maven project");
223 224
                // 2. try finding in target folder of maven project
224 225
                File warFile = new File("target" + File.separator + warFileName);
225 226
                logger.debug("looking for war file at " + warFile.getAbsolutePath());
226 227
                if (warFile.canRead()) {
227 228
                    resource = warFile.toURI().toURL();
229
                    logger.info("Success! Using war file from " + resource.toString());
228 230
                } else {
229 231
                    logger.error("Also could not find the " + warFileName + " in maven project, try excuting 'mvn install'");
232
                    System.exit(-1);
230 233
                }
231 234
            }
232 235
        }

Also available in: Unified diff