Project

General

Profile

« Previous | Next » 

Revision e69d6355

Added by Andreas Kohlbecker over 2 years ago

proper setting and reverting of all kinds of drupal variables

View differences:

src/main/java/eu/etaxonomy/drush/DrushExecuter.java
196 196
                out = readExecutionResponse(matches, process.getInputStream(), cmd.outRegex);
197 197
                error = readExecutionResponse(matches, process.getErrorStream(), cmd.errRegex);
198 198
            }
199
            if (out != null && !out.isEmpty()) {
200
                logger.error(error);
199
            if (out != null && !out.trim().isEmpty()) {
200
                logger.info(out.trim());
201 201
            }
202
            if (error != null && !error.isEmpty()) {
203
                logger.error(error);
202
            if (error != null && !error.trim().isEmpty()) {
203
                if(!error.contains("[success]")) {
204
                    logger.info(error);
205
                } else {
206
                    logger.error(error);
207
                }
204 208
            }
205 209
        } else {
206 210
            throw new DrushExecutionFailure(

Also available in: Unified diff