diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-17 03:00:50 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-17 03:00:50 +0000 |
commit | cda3ce3f9172e48d4bc673e57fc617ba0f0b40d1 (patch) | |
tree | 338fb039e5af66237ec0e6557f32b0784f022b61 /support/arara/source/src | |
parent | 111dc5512e3db14318e26b6700731c68c41c1724 (diff) |
CTAN sync 201909170300
Diffstat (limited to 'support/arara/source/src')
52 files changed, 218 insertions, 124 deletions
diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/Arara.java b/support/arara/source/src/main/java/com/github/cereda/arara/Arara.java index c644978c93..36405b1b47 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/Arara.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/Arara.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -199,7 +199,7 @@ public class Arara { // just happened and might require user intervention. System.exit(CommonUtils.getExitStatus()); - // I owe David Carlisle $10 + // I owe David Carlisle $100 } } diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/controller/ConfigurationController.java b/support/arara/source/src/main/java/com/github/cereda/arara/controller/ConfigurationController.java index f3868b488f..2dbc3a2bff 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/controller/ConfigurationController.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/controller/ConfigurationController.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/controller/LanguageController.java b/support/arara/source/src/main/java/com/github/cereda/arara/controller/LanguageController.java index a0ccc2a958..85bfc3a43d 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/controller/LanguageController.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/controller/LanguageController.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/controller/LoggingController.java b/support/arara/source/src/main/java/com/github/cereda/arara/controller/LoggingController.java index 193726fcc4..958beec291 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/controller/LoggingController.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/controller/LoggingController.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/controller/SessionController.java b/support/arara/source/src/main/java/com/github/cereda/arara/controller/SessionController.java index ac5a45d2b3..41c627dc98 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/controller/SessionController.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/controller/SessionController.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/controller/SystemCallController.java b/support/arara/source/src/main/java/com/github/cereda/arara/controller/SystemCallController.java index 9a592853f6..4d87adc8a8 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/controller/SystemCallController.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/controller/SystemCallController.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/AraraException.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/AraraException.java index f2a340fd01..5f5d788e0f 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/AraraException.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/AraraException.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Argument.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Argument.java index 0b15baf9d7..b0e7d2bca6 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Argument.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Argument.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Command.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Command.java index 3058389832..848f3f3010 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Command.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Command.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -116,7 +116,12 @@ public class Command { */ @Override public String toString() { - return CommonUtils.getCollectionElements(elements, "[ ", " ]", ", "); + return CommonUtils.getCollectionElements(elements, "[ ", " ]", ", "). + concat( + hasWorkingDirectory() + ? " @ " + workingDirectory.toString() + : "" + ); } } diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Conditional.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Conditional.java index 4c830f0a1b..d8f0543709 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Conditional.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Conditional.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Configuration.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Configuration.java index 0c2c294958..70f6382364 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Configuration.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Configuration.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -121,7 +121,7 @@ public class Configuration { mapping.put("execution.timeout.value", 0L); mapping.put("execution.timeout.unit", TimeUnit.MILLISECONDS); mapping.put("application.version", "4.0"); - mapping.put("application.revision", "1"); + mapping.put("application.revision", "2"); mapping.put("directives.linebreak.pattern", "^\\s*-->\\s(.*)$"); String directive = "^\\s*(\\w+)\\s*(:\\s*(\\{.*\\})\\s*)?"; @@ -139,7 +139,7 @@ public class Configuration { mapping.put("execution.logging", false); mapping.put("execution.dryrun", false); mapping.put("execution.status", 0); - mapping.put("application.copyright.year", "2012-2018"); + mapping.put("application.copyright.year", "2012-2019"); mapping.put("execution.filetypes", ConfigurationUtils. getDefaultFileTypes()); mapping.put("execution.rule.paths", diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Database.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Database.java index 66d360fdc0..474209e405 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Database.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Database.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Directive.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Directive.java index e311477125..a3831db8b2 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Directive.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Directive.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Evaluator.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Evaluator.java index 41f8d09943..30995ecaf9 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Evaluator.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Evaluator.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Extractor.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Extractor.java index 84edef1eb0..b4a248688a 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Extractor.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Extractor.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/FileType.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/FileType.java index b9f2a01e03..e7403bee51 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/FileType.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/FileType.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/FileTypeResource.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/FileTypeResource.java index 2934035858..d23b10f9f5 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/FileTypeResource.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/FileTypeResource.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Interpreter.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Interpreter.java index 7c8f6e3928..30c18a3074 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Interpreter.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Interpreter.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -60,13 +60,13 @@ public class Interpreter { // the application messages obtained from the // language controller - private static final LanguageController messages = - LanguageController.getInstance(); - + private static final LanguageController messages + = LanguageController.getInstance(); + // the class logger obtained from // the logger factory - private static final Logger logger = - LoggerFactory.getLogger(Interpreter.class); + private static final Logger logger + = LoggerFactory.getLogger(Interpreter.class); // list of directives to be // interpreted in here @@ -128,8 +128,8 @@ public class Interpreter { Methods.addRuleMethods(parameters); String name = rule.getName(); - List<String> authors = rule.getAuthors() == null ? - new ArrayList<String>() : rule.getAuthors(); + List<String> authors = rule.getAuthors() == null + ? new ArrayList<String>() : rule.getAuthors(); ConfigurationController.getInstance(). put("execution.rule.arguments", InterpreterUtils.getRuleArguments(rule) @@ -187,11 +187,11 @@ public class Interpreter { String.valueOf(current))) { DisplayUtils.printEntry(name, - command.getName() == null ? - messages.getMessage( - Messages.INFO_LABEL_UNNAMED_TASK - ) - : command.getName() + command.getName() == null + ? messages.getMessage( + Messages.INFO_LABEL_UNNAMED_TASK + ) + : command.getName() ); boolean success = true; @@ -223,72 +223,100 @@ public class Interpreter { Trigger trigger = (Trigger) current; trigger.process(); } else { - Object representation = - CommonUtils.checkClass( - Command.class, - current - ) ? - current - : String.valueOf(current); - logger.info( - messages.getMessage( - Messages.LOG_INFO_SYSTEM_COMMAND, - representation - ) - ); + if (CommonUtils.checkClass( + Boolean.class, current)) { + success = (Boolean) current; + logger.info( + messages.getMessage( + Messages.LOG_INFO_BOOLEAN_MODE, + String.valueOf(success) + ) + ); - if (((Boolean) ConfigurationController. - getInstance(). - get("execution.dryrun")) == false) { - int code = InterpreterUtils. - run(representation); - Object check = null; - try { - Map<String, Object> context = - new HashMap<String, Object>(); - context.put("value", code); - check = TemplateRuntime.eval( - "@{ ".concat( - command.getExit() == null ? - "value == 0" - : command.getExit()).concat(" }"), - context); - } catch (RuntimeException exception) { - throw new AraraException( - CommonUtils.getRuleErrorHeader(). - concat( - messages.getMessage( - Messages.ERROR_INTERPRETER_EXIT_RUNTIME_ERROR - ) - ), - exception - ); - } - if (CommonUtils. - checkClass( - Boolean.class, - check)) { - success = (Boolean) check; - } else { - throw new AraraException( - CommonUtils.getRuleErrorHeader().concat( - messages.getMessage( - Messages.ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN - ) + if (((Boolean) ConfigurationController. + getInstance(). + get("execution.dryrun")) == true) { + + DisplayUtils.printAuthors(authors); + DisplayUtils.wrapText( + messages.getMessage( + Messages.INFO_INTERPRETER_DRYRUN_MODE_BOOLEAN_MODE, + success ) ); + DisplayUtils.printConditional( + directive.getConditional() + ); } } else { - DisplayUtils.printAuthors(authors); - DisplayUtils.wrapText( + + Object representation + = CommonUtils.checkClass( + Command.class, + current + ) + ? current + : String.valueOf(current); + logger.info( messages.getMessage( - Messages.INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND, + Messages.LOG_INFO_SYSTEM_COMMAND, representation ) ); - DisplayUtils.printConditional( - directive.getConditional() - ); + + if (((Boolean) ConfigurationController. + getInstance(). + get("execution.dryrun")) == false) { + int code = InterpreterUtils. + run(representation); + Object check = null; + try { + Map<String, Object> context + = new HashMap<String, Object>(); + context.put("value", code); + check = TemplateRuntime.eval( + "@{ ".concat( + command.getExit() == null + ? "value == 0" + : command.getExit()).concat(" }"), + context); + } catch (RuntimeException exception) { + throw new AraraException( + CommonUtils.getRuleErrorHeader(). + concat( + messages.getMessage( + Messages.ERROR_INTERPRETER_EXIT_RUNTIME_ERROR + ) + ), + exception + ); + } + if (CommonUtils. + checkClass( + Boolean.class, + check)) { + success = (Boolean) check; + } else { + throw new AraraException( + CommonUtils.getRuleErrorHeader().concat( + messages.getMessage( + Messages.ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN + ) + ) + ); + } + } else { + DisplayUtils.printAuthors(authors); + DisplayUtils.wrapText( + messages.getMessage( + Messages.INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND, + representation + ) + ); + DisplayUtils.printConditional( + directive.getConditional() + ); + } } } @@ -397,8 +425,8 @@ public class Interpreter { Methods.addRuleMethods(context); for (Argument argument : arguments) { - if ((argument.isRequired()) && - (!directive.getParameters().containsKey( + if ((argument.isRequired()) + && (!directive.getParameters().containsKey( argument.getIdentifier()))) { throw new AraraException( CommonUtils.getRuleErrorHeader().concat( @@ -421,7 +449,7 @@ public class Interpreter { concat(messages.getMessage( Messages.ERROR_INTERPRETER_DEFAULT_VALUE_RUNTIME_ERROR ) - ), + ), exception ); } @@ -429,8 +457,8 @@ public class Interpreter { mapping.put(argument.getIdentifier(), ""); } - if ((argument.getFlag() != null) && - (directive.getParameters().containsKey( + if ((argument.getFlag() != null) + && (directive.getParameters().containsKey( argument.getIdentifier()))) { try { @@ -451,7 +479,7 @@ public class Interpreter { } } } - + return mapping; } diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Language.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Language.java index 2b0fc8266e..ff1b16a03f 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Language.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Language.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Messages.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Messages.java index 9916c3c145..901e61be6a 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Messages.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Messages.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -81,6 +81,7 @@ public enum Messages { ERROR_INTERPRETER_RULE_NOT_FOUND, ERROR_INTERPRETER_UNKNOWN_KEYS, ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN, + ERROR_ISSUBDIRECTORY_NOT_A_DIRECTORY, ERROR_LANGUAGE_INVALID_CODE, ERROR_LOAD_COULD_NOT_LOAD_XML, ERROR_PARSER_INVALID_PREAMBLE, @@ -128,6 +129,7 @@ public enum Messages { INFO_DISPLAY_EXCEPTION_MORE_DETAILS, INFO_DISPLAY_EXECUTION_TIME, INFO_DISPLAY_FILE_INFORMATION, + INFO_INTERPRETER_DRYRUN_MODE_BOOLEAN_MODE, INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND, INFO_INTERPRETER_DRYRUN_MODE_TRIGGER_MODE, INFO_INTERPRETER_VERBOSE_MODE_TRIGGER_MODE, @@ -154,6 +156,7 @@ public enum Messages { INFO_PARSER_VERBOSE_MODE_DESCRIPTION, INFO_PARSER_VERSION_DESCRIPTION, LOG_INFO_BEGIN_BUFFER, + LOG_INFO_BOOLEAN_MODE, LOG_INFO_DIRECTIVES_BLOCK, LOG_INFO_END_BUFFER, LOG_INFO_INTERPRET_RULE, diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Pair.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Pair.java index d8591b6ef7..427a5fca1d 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Pair.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Pair.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Parser.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Parser.java index 723e24e76e..681c2f8fef 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Parser.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Parser.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Resource.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Resource.java index 2994a4d691..58eaa0dc40 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Resource.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Resource.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Rule.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Rule.java index af3ad19950..acf43cdf58 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Rule.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Rule.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/RuleCommand.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/RuleCommand.java index b209d19bcb..e63430afeb 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/RuleCommand.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/RuleCommand.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Session.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Session.java index c756ae4550..4462c5e369 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Session.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Session.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/StopWatch.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/StopWatch.java index 45e0969d0b..da7062cf19 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/StopWatch.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/StopWatch.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/model/Trigger.java b/support/arara/source/src/main/java/com/github/cereda/arara/model/Trigger.java index 11da04bfcb..7d8ae6ce79 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/model/Trigger.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/model/Trigger.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/ClassLoadingUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/ClassLoadingUtils.java index c40536ce08..fdd642e21d 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/ClassLoadingUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/ClassLoadingUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/CommonUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/CommonUtils.java index 621634749e..0263f64eac 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/CommonUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/CommonUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -925,5 +925,30 @@ public class CommonUtils { return buildPath(path, getBasename(file)); } } + + /** + * Checks whether a directory is under a root directory. + * @param f1 Directory to be inspected. + * @param f2 Root directory. + * @return Logical value indicating whether the directoy is under root. + * @throws AraraException There was a problem with path retrieval. + */ + public static boolean isSubDirectory(File f1, File f2) + throws AraraException { + if (f1.isDirectory()) { + return getCanonicalPath(f1). + startsWith( + getParentCanonicalPath(f2).concat(File.separator) + ); + } + else { + throw new AraraException( + messages.getMessage( + Messages.ERROR_ISSUBDIRECTORY_NOT_A_DIRECTORY, + f1.getName() + ) + ); + } + } } diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/ConfigurationUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/ConfigurationUtils.java index 0b7d3b8a5b..7336110ebe 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/ConfigurationUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/ConfigurationUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DatabaseUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DatabaseUtils.java index 8861ff7e5e..3a9b4eeea5 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DatabaseUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DatabaseUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveAssembler.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveAssembler.java index d2dd588996..6f6f676ab5 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveAssembler.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveAssembler.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveResolver.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveResolver.java index 6ea18e31ba..b0a1af850b 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveResolver.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveResolver.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveUtils.java index d4d2a88ac7..6ea0404f72 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DirectiveUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DisplayUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DisplayUtils.java index 879119e60e..75cda6f99a 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/DisplayUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/DisplayUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/FileHandlingUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/FileHandlingUtils.java index 9f56c92f5d..fdd1ab36c6 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/FileHandlingUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/FileHandlingUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/FileSearchingUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/FileSearchingUtils.java index 473674cbc5..9f0c03c143 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/FileSearchingUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/FileSearchingUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/InterpreterUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/InterpreterUtils.java index 978cb07374..d60de0884b 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/InterpreterUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/InterpreterUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/MessageUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/MessageUtils.java index 52a5d095a8..b36bda8808 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/MessageUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/MessageUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/Methods.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/Methods.java index 15c6604934..24982dace9 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/Methods.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/Methods.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -147,6 +147,7 @@ public class Methods { map.put("writeToFile", Methods.class.getMethod("writeToFile", String.class, List.class, boolean.class)); map.put("readFromFile", Methods.class.getMethod("readFromFile", File.class)); map.put("readFromFile", Methods.class.getMethod("readFromFile", String.class)); + map.put("isSubdirectory", Methods.class.getMethod("isSubdirectory", File.class)); } catch (Exception exception) { // quack, quack, quack } @@ -1353,4 +1354,15 @@ public class Methods { return FileHandlingUtils.readFromFile(new File(path)); } + /** + * Checks whether a directory is under the project directory. + * @param directory The directory to be inspected. + * @return Logical value indicating whether the directoy is under root. + * @throws AraraException There was a problem with path retrieval. + */ + public static boolean isSubdirectory(File directory) + throws AraraException { + return CommonUtils.isSubDirectory(directory, getOriginalReference()); + } + } diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/RuleUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/RuleUtils.java index d855344762..f2fb1c8570 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/RuleUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/RuleUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/TeeOutputStream.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/TeeOutputStream.java index 65d3d58ffb..58418ea62d 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/TeeOutputStream.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/TeeOutputStream.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/UnsafeUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/UnsafeUtils.java index b989e074c8..d5a4058b3e 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/UnsafeUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/UnsafeUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/java/com/github/cereda/arara/utils/VelocityUtils.java b/support/arara/source/src/main/java/com/github/cereda/arara/utils/VelocityUtils.java index 2040b671b7..3f94adc909 100644 --- a/support/arara/source/src/main/java/com/github/cereda/arara/utils/VelocityUtils.java +++ b/support/arara/source/src/main/java/com/github/cereda/arara/utils/VelocityUtils.java @@ -1,6 +1,6 @@ /** * Arara, the cool TeX automation tool - * Copyright (c) 2012 -- 2018, Paulo Roberto Massa Cereda + * Copyright (c) 2012 -- 2019, Paulo Roberto Massa Cereda * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages.properties b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages.properties index cdea39f1be..dd1972fd5c 100644 --- a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages.properties +++ b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages.properties @@ -63,6 +63,7 @@ ERROR_INTERPRETER_NULL_COMMAND=I am sorry, but apparently one of the provided co ERROR_INTERPRETER_RULE_NOT_FOUND=I could not find a rule named ''{0}'' in the provided rule paths. Perhaps a misspelled word? I was looking for a file named ''{0}.yaml'' in the following paths in order of priority: {1} ERROR_INTERPRETER_UNKNOWN_KEYS=I found these unknown keys in the directive: {0}. This should be an easy fix, just remove them from your map. ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN=The 'exit' expression must always return a boolean value (even if there is no computation in the closure body). This should be an easy fix: make sure to correct the type return statement and try again. +ERROR_ISSUBDIRECTORY_NOT_A_DIRECTORY=The ''isSubdirectory'' method requires a directory, not a file. It looks like ''{0}'' does not appear to be a directory at all. ERROR_LANGUAGE_INVALID_CODE=The provided language code is invalid. Currently, I know how to speak the following languages: {0} ERROR_LOAD_COULD_NOT_LOAD_XML=I could not load the XML database named ''{0}''. I have no idea why it failed, though. Perhaps the file was moved or deleted before or during the reading operation. Or maybe I do not have the proper permissions to read the file. By the way, make sure the XML file is well-formed. ERROR_PARSER_INVALID_PREAMBLE=I am sorry, but the preamble ''{0}'' could not be found. Please make sure this key exists in the configuration file. @@ -110,6 +111,7 @@ ERROR_VELOCITY_IO_EXCEPTION=The template engine was not able to write the output INFO_DISPLAY_EXCEPTION_MORE_DETAILS=There are more details available on this exception: INFO_DISPLAY_EXECUTION_TIME=Total: {0} seconds INFO_DISPLAY_FILE_INFORMATION=Processing ''{0}'' (size: {1}, last modified: {2}), please wait. +INFO_INTERPRETER_DRYRUN_MODE_BOOLEAN_MODE=Although executing in dry-run mode, this entry might be already processed since it returned a boolean value: {0} INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND=About to run: {0} INFO_INTERPRETER_DRYRUN_MODE_TRIGGER_MODE=Although executing in dry-run mode, this entry is always processed since it is a trigger. Note that the effects of a trigger might influence the current execution. INFO_INTERPRETER_VERBOSE_MODE_TRIGGER_MODE=This entry is a trigger originated from the rule scope. Note that the effects of a trigger might influence the current execution. @@ -136,6 +138,7 @@ INFO_PARSER_TIMEOUT_DESCRIPTION=set the execution timeout (in milliseconds) INFO_PARSER_VERBOSE_MODE_DESCRIPTION=print the command output INFO_PARSER_VERSION_DESCRIPTION=print the application version LOG_INFO_BEGIN_BUFFER=BEGIN OUTPUT BUFFER +LOG_INFO_BOOLEAN_MODE=Boolean value: {0} LOG_INFO_DIRECTIVES_BLOCK=DIRECTIVES LOG_INFO_END_BUFFER=END OUTPUT BUFFER LOG_INFO_INTERPRET_RULE=I am ready to interpret rule ''{0}''. diff --git a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_de.properties b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_de.properties index 352259daf6..eb8bb41fd6 100644 --- a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_de.properties +++ b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_de.properties @@ -63,6 +63,7 @@ ERROR_INTERPRETER_NULL_COMMAND=Es tut mir leid, aber eine der genutzten Anweisun ERROR_INTERPRETER_RULE_NOT_FOUND=Ich konnte keine Regel mit dem Namen ''{0}'' in den hinterlegten Regelverzeichnissen finden. Vielleicht ein falsch geschriebenes Wort? Ich habe nach dem Dateinamen ''{0}.yaml'' in den nachstehenden Verzeichnissen mit entsprechender Priorität gesucht: {1} ERROR_INTERPRETER_UNKNOWN_KEYS=Ich habe folgende unbekannte Keys in der Direktive gefunden: {0}. Das sollte leicht zu beheben sein, entferne sie einfach. ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN=Der Ausdruck 'exit' muss immer einen logischen Wert (boolean value) zurückgeben (sogar wenn es keine Berechnung in der Prozedur gibt). Das sollte leicht zu beheben sein: Stelle einen korrekten Rückgabewert sicher und versuche es erneut. +ERROR_ISSUBDIRECTORY_NOT_A_DIRECTORY=Die ''isSubdirectory'' Methode erwartet als Argument einen Ordner, nicht eine Datei. ''{0}'' scheint kein Ordner zu sein. ERROR_LANGUAGE_INVALID_CODE=Der bereitgestellte Sprachauswahlcode ist ungültig. Derzeit kann ich folgende Sprachen sprechen: {0} ERROR_LOAD_COULD_NOT_LOAD_XML=Ich konnte die XML-Datenbank mit dem Namen ''{0}'' nicht laden. Ich habe keine Idee für die Fehlerursache, obwohl? Vielleicht wurde die Datei bevor oder während der Leseoperation bewegt oder gelöscht. Möglicherweise habe ich nicht die geeigneten Rechte, um die Datei zu lesen. ERROR_PARSER_INVALID_PREAMBLE=Leider konnte die Präambel ''{0}'' nicht gefunden werden. Bitte stelle sicher, dass dieser Schlüssel in der Konfigurationsdatei existiert. @@ -110,6 +111,7 @@ ERROR_VELOCITY_IO_EXCEPTION=Die Template-Engine konnte die Ausgabe-Datei nicht s INFO_DISPLAY_EXCEPTION_MORE_DETAILS=Es sind mehr Details für diese Ausnahme verfügbar. INFO_DISPLAY_EXECUTION_TIME=Gesamt: {0} Sekunden INFO_DISPLAY_FILE_INFORMATION=Verarbeitung ''{0}'' (Größe: {1}, letzte Modifikation: {2}), bitte warten. +INFO_INTERPRETER_DRYRUN_MODE_BOOLEAN_MODE=Trotz dry-run Modus wurde dieser Eintrag wahrscheinlich bereits verarbeitet, da er den boolschen Wert {0} zurückgegeben hat. INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND=Los geht''s: {0} INFO_INTERPRETER_DRYRUN_MODE_TRIGGER_MODE=Obwohl du im 'dry-run-mode' ausführst, wird der Eintrag immer verarbeitet, da es einen Trigger ist. Beachte, dass der Effekt eines Triggers die aktuelle Ausführung beeinflussen kann. INFO_INTERPRETER_VERBOSE_MODE_TRIGGER_MODE=Dieser Eintrag ist ein Trigger, welcher aus dem Regelumfeld entstand. Beachte, dass der Effekt eines Triggers die aktuelle Ausführung beeinflussen kann. @@ -136,6 +138,7 @@ INFO_PARSER_TIMEOUT_DESCRIPTION=Setze die Zeitabschaltung für die Ausführung ( INFO_PARSER_VERBOSE_MODE_DESCRIPTION=Gibt zusätzliche Statusinformationen aus INFO_PARSER_VERSION_DESCRIPTION=Gebe die Anwendungsversion aus LOG_INFO_BEGIN_BUFFER=BEGIN OUTPUT BUFFER +LOG_INFO_BOOLEAN_MODE=Boolscher Wert: {0} LOG_INFO_DIRECTIVES_BLOCK=DIREKTIVEN LOG_INFO_END_BUFFER=END OUTPUT BUFFER LOG_INFO_INTERPRET_RULE=Ich bin bereit, die Regel ''{0}'' zu interpretieren. diff --git a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_en.properties b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_en.properties index cdea39f1be..dd1972fd5c 100644 --- a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_en.properties +++ b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_en.properties @@ -63,6 +63,7 @@ ERROR_INTERPRETER_NULL_COMMAND=I am sorry, but apparently one of the provided co ERROR_INTERPRETER_RULE_NOT_FOUND=I could not find a rule named ''{0}'' in the provided rule paths. Perhaps a misspelled word? I was looking for a file named ''{0}.yaml'' in the following paths in order of priority: {1} ERROR_INTERPRETER_UNKNOWN_KEYS=I found these unknown keys in the directive: {0}. This should be an easy fix, just remove them from your map. ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN=The 'exit' expression must always return a boolean value (even if there is no computation in the closure body). This should be an easy fix: make sure to correct the type return statement and try again. +ERROR_ISSUBDIRECTORY_NOT_A_DIRECTORY=The ''isSubdirectory'' method requires a directory, not a file. It looks like ''{0}'' does not appear to be a directory at all. ERROR_LANGUAGE_INVALID_CODE=The provided language code is invalid. Currently, I know how to speak the following languages: {0} ERROR_LOAD_COULD_NOT_LOAD_XML=I could not load the XML database named ''{0}''. I have no idea why it failed, though. Perhaps the file was moved or deleted before or during the reading operation. Or maybe I do not have the proper permissions to read the file. By the way, make sure the XML file is well-formed. ERROR_PARSER_INVALID_PREAMBLE=I am sorry, but the preamble ''{0}'' could not be found. Please make sure this key exists in the configuration file. @@ -110,6 +111,7 @@ ERROR_VELOCITY_IO_EXCEPTION=The template engine was not able to write the output INFO_DISPLAY_EXCEPTION_MORE_DETAILS=There are more details available on this exception: INFO_DISPLAY_EXECUTION_TIME=Total: {0} seconds INFO_DISPLAY_FILE_INFORMATION=Processing ''{0}'' (size: {1}, last modified: {2}), please wait. +INFO_INTERPRETER_DRYRUN_MODE_BOOLEAN_MODE=Although executing in dry-run mode, this entry might be already processed since it returned a boolean value: {0} INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND=About to run: {0} INFO_INTERPRETER_DRYRUN_MODE_TRIGGER_MODE=Although executing in dry-run mode, this entry is always processed since it is a trigger. Note that the effects of a trigger might influence the current execution. INFO_INTERPRETER_VERBOSE_MODE_TRIGGER_MODE=This entry is a trigger originated from the rule scope. Note that the effects of a trigger might influence the current execution. @@ -136,6 +138,7 @@ INFO_PARSER_TIMEOUT_DESCRIPTION=set the execution timeout (in milliseconds) INFO_PARSER_VERBOSE_MODE_DESCRIPTION=print the command output INFO_PARSER_VERSION_DESCRIPTION=print the application version LOG_INFO_BEGIN_BUFFER=BEGIN OUTPUT BUFFER +LOG_INFO_BOOLEAN_MODE=Boolean value: {0} LOG_INFO_DIRECTIVES_BLOCK=DIRECTIVES LOG_INFO_END_BUFFER=END OUTPUT BUFFER LOG_INFO_INTERPRET_RULE=I am ready to interpret rule ''{0}''. diff --git a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_en_QN.properties b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_en_QN.properties index db583d4669..c9a2013d26 100644 --- a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_en_QN.properties +++ b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_en_QN.properties @@ -64,6 +64,7 @@ ERROR_INTERPRETER_NULL_COMMAND=Thass a rum ole dew but one onnem commands have h ERROR_INTERPRETER_RULE_NOT_FOUND=Thass a rum ole dew but there ent no ''{0}'' in any onnem rule paths. Praps you ent spelled that right. I coont find ''{0}.yaml'' in any onner paths: {1} ERROR_INTERPRETER_UNKNOWN_KEYS=Atwin me, yew an'' the geartepost I ent got no idear abowt these keys in the directive: {0}. Howsomever, dunt you git yarself inta a rite ole puckaterry. Do you jist hull them outta yar map. ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN=Wuh, ole partner, that 'exit' expression ent givin' me a yis or no answer. Thass allus got to dew that even if there ent nuffin else to dew. Howsomever, dunt you git yarself inta a rite ole puckaterry, dew you jist tricolate the return statement and try agin. +ERROR_ISSUBDIRECTORY_NOT_A_DIRECTORY=The ''isSubdirectory'' method requires a directory, not a file. It looks like ''{0}'' does not appear to be a directory at all. ERROR_LANGUAGE_INVALID_CODE=Cor blast me, my bewty, but you hully copped me there wi'' that language code. I can ony mardle in these languages: {0} ERROR_LOAD_COULD_NOT_LOAD_XML=Cor blast me, ole partner, but that XML database ''{0}'' ent half puttin'' on its parts but I ent got no idear wass gone wrong. Praps the file was hulled abowt afore or time the reading operation was doing else maybe I''re gotta he''sum proper permissions to snout abowt the file. Atwin yew, me an'' the geartepost, do yew make sure the XML is in good kelter. ERROR_PARSER_INVALID_PREAMBLE=Thass a rum ole dew, ole partner, but I can''t find the preamble ''{0}''. Do yew make sure that key exist in the configuration file. @@ -111,6 +112,7 @@ ERROR_VELOCITY_IO_EXCEPTION=That ent gorn right, my bewty. The template engine w INFO_DISPLAY_EXCEPTION_MORE_DETAILS=Hear's orl my know on that aggraweartin' exception: INFO_DISPLAY_EXECUTION_TIME=Wuh that took {0} seconds but if thass a slight longer than you expected, dunt yew go mobbing me abowt it cors that ent my fault. My grandf''ar dint have none of these pearks. He had to use a pen and a bit o'' pearper, but thass bin nice mardling wi'' yew. Dew yew keep a troshin''! INFO_DISPLAY_FILE_INFORMATION=Hold yew hard, ole partner, I''m gornta hev a look at ''{0}'' (thass {1} big, that is, and that was last chearnged on {2} in case yew dunt remember). +INFO_INTERPRETER_DRYRUN_MODE_BOOLEAN_MODE=Although executing in dry-run mode, this entry might be already processed since it returned a boolean value: {0} INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND=This is what I''m abowt to dew: {0} INFO_INTERPRETER_DRYRUN_MODE_TRIGGER_MODE=Wuh, ole partner, I know this is a dry-run, but this entry has gorta be done cos thass a trigger. Thass hully important yew should know that might doss things on the huh. INFO_INTERPRETER_VERBOSE_MODE_TRIGGER_MODE=Wuh, ole partner, this entry is one onem triggers what come from the rule scope. Thass hully important yew should know that might put this jarb hully on the huh. @@ -137,6 +139,7 @@ INFO_PARSER_TIMEOUT_DESCRIPTION=wuh, yew dunt want them system commands to run o INFO_PARSER_VERBOSE_MODE_DESCRIPTION=thass dew you want ter system commands to hav' a mardle wi'yew an'orl INFO_PARSER_VERSION_DESCRIPTION=dew yew use this dew you want my know abowt this version LOG_INFO_BEGIN_BUFFER=BEGIN OUTPUT BUFFER +LOG_INFO_BOOLEAN_MODE=Boolean value: {0} LOG_INFO_DIRECTIVES_BLOCK=DIRECTIVES LOG_INFO_END_BUFFER=END OUTPUT BUFFER LOG_INFO_INTERPRET_RULE=I''m orl ready, ole parter, to dew the rule ''{0}''. diff --git a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_it.properties b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_it.properties index 70afb93ec6..1f32907fbd 100644 --- a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_it.properties +++ b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_it.properties @@ -63,6 +63,7 @@ ERROR_INTERPRETER_NULL_COMMAND=Sono spiacente, ma a quanto pare il risultato di ERROR_INTERPRETER_RULE_NOT_FOUND=Non sono riuscito a trovare una regola chiamata ''{0}'' nei percorsi per le regole impostati. Forse una parola scritta sbagliata? Stavo cercando un file con il nome ''{0}.yaml'' nei seguenti percorsi in ordine di priorità: {1} ERROR_INTERPRETER_UNKNOWN_KEYS=Ho trovato queste chiavi sconosciute nella direttiva: {0}. Dovrebbbe essere facile correggere, toglile dalla mappa. ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN=L'espressione di 'uscita' deve essere sempre un valore booleano (anche se non c'è alcun calcolo nella parte di chiusura). Dovrebbe essere facile correggere: assicurati che l'asserzione del 'type return' sia giusta e riprova. +ERROR_ISSUBDIRECTORY_NOT_A_DIRECTORY=Il metodo ''isSubdirectory'' richiede una directory, non un file. Sembra proprio che ''{0}'' non sia una directory. ERROR_LANGUAGE_INVALID_CODE=La lingua richiesta non è valida. Al momento, so parlare le seguenti lingue: {0} ERROR_LOAD_COULD_NOT_LOAD_XML=Non ho potuto caricare il database XML di nome ''{0}''. Purtroppo non ho idea del perché sia andata male. Forse il file è stato spostato o cancellato prima o durante l''operazione di lettura. O forse non ho i permessi necessari per leggere il file. Già che ci siamo, assicurati che il file XML sia ben formato. ERROR_PARSER_INVALID_PREAMBLE=Mi dispiace, ma non è stato possibile trovare il preambolo ''{0}''. Assicurati che questa chiave esista nel file di configurazione. @@ -110,6 +111,7 @@ ERROR_VELOCITY_IO_EXCEPTION=Il motore per i 'template' non è riuscito a scriver INFO_DISPLAY_EXCEPTION_MORE_DETAILS=Ci sono altri dettagli riguardo a questa eccezione: INFO_DISPLAY_EXECUTION_TIME=Totale: {0} secondi INFO_DISPLAY_FILE_INFORMATION=Elaborazione ''{0}'' (totale: {1}, modificato il: {2}), attendere. +INFO_INTERPRETER_DRYRUN_MODE_BOOLEAN_MODE=Sebbene stia eseguendo in modo ''dry-run'', questo elemento potrebbe essere già stato elaborato, perché ha restituito un valore booleano: {0} INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND=Sto per lanciare: {0} INFO_INTERPRETER_DRYRUN_MODE_TRIGGER_MODE=Sebbene stia eseguendo in modo 'dry-run', questo elemento è sempre elaborato perché è un 'trigger'. Nota che gli effetti di un 'trigger' possono influenzare l'esecuzione. INFO_INTERPRETER_VERBOSE_MODE_TRIGGER_MODE=Questo elemento è un 'trigger' generato nell'ambito della regola. Nota che gli effetti di un 'trigger' possono influenzare l'esecuzione. @@ -136,6 +138,7 @@ INFO_PARSER_TIMEOUT_DESCRIPTION=imposta il timeout di esecuzione (in millisecond INFO_PARSER_VERBOSE_MODE_DESCRIPTION=mostra l'outout del comando INFO_PARSER_VERSION_DESCRIPTION=mostra la versione dell'applicazione LOG_INFO_BEGIN_BUFFER=BEGIN OUTPUT BUFFER +LOG_INFO_BOOLEAN_MODE=Valore booleano: {0} LOG_INFO_DIRECTIVES_BLOCK=DIRECTIVES LOG_INFO_END_BUFFER=END OUTPUT BUFFER LOG_INFO_INTERPRET_RULE=Sono pronto a interpretare la regola ''{0}''. diff --git a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_nl.properties b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_nl.properties index 9403078b98..6aa6afa6c6 100644 --- a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_nl.properties +++ b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_nl.properties @@ -63,6 +63,7 @@ ERROR_INTERPRETER_NULL_COMMAND=Het spijt me, maar een van de opgegeven opdrachte ERROR_INTERPRETER_RULE_NOT_FOUND=Ik kon de regel met de naam ''{0}'' niet vinden in de opgegeven regelpaden. Misschien een spelfout? Ik heb geprobeerd het bestand ''{0}.yaml'' te vinden in de volgende paden in volgorde van prioriteit: {1} ERROR_INTERPRETER_UNKNOWN_KEYS=Ik heb de volgende onbekende verwijzingen gevonden in de directive: {0}. Dit zou makkelijk op te lossen moeten zijn: verwijder deze uit de verwijzingstabel. ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN=De 'exit'-expressie moet altijd een boolean waarde teruggeven (zelfs als er geen berekening heeft plaatsgevonden). Dit zou makkelijk op te lossen moeten zijn: pas het type van de return-regel aan en probeer het opnieuw. +ERROR_ISSUBDIRECTORY_NOT_A_DIRECTORY=De ''isSubdirectory''-methode vereist een mapje, geen bestand. Het lijkt erop dat ''{0}'' geen mapje is. ERROR_LANGUAGE_INVALID_CODE=De opgegeven taalcode is ongeldig. Op het moment accepteer ik de volgende talen: {0} ERROR_LOAD_COULD_NOT_LOAD_XML=Ik kon de XML-database met de naam ''{0}'' niet laden. Ik weet niet waarom het precies fout ging. Misschien was het bestand verplaatst of verwijderd tijdens de leesoperatie. Of misschien heb ik niet de juiste rechten om het bestand te lezen. Overigens: zorg ervoor dat het XML-bestand welgevormd is. ERROR_PARSER_INVALID_PREAMBLE=Het spijt me, maar de preamble ''{0}'' is niet gevonden. Zorg ervoor dat deze verwijzing bestaat in het configuratiebestand. @@ -110,6 +111,7 @@ ERROR_VELOCITY_IO_EXCEPTION=De template-verwerking kon niet naar het uitvoerbest INFO_DISPLAY_EXCEPTION_MORE_DETAILS=Er zijn meer details beschikbaar voor deze exception: INFO_DISPLAY_EXECUTION_TIME=Totaal: {0} seconden INFO_DISPLAY_FILE_INFORMATION=Verwerken van ''{0}'' (grootte: {1}, laatst gewijzigd: {2}), een ogenblik geduld. +INFO_INTERPRETER_DRYRUN_MODE_BOOLEAN_MODE=Ondanks het uitvoeren in dry-runmodus is dit item mogelijk al verwerkt omdat het de booleaanse waarde terug heeft gegeven: {0} INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND=Begin met uitvoeren: {0} INFO_INTERPRETER_DRYRUN_MODE_TRIGGER_MODE=Ondanks het uitvoeren in dry-runmodus wordt dit onderdeel altijd uitgevoerd omdat het een trigger is. Merk op dat de effecten van een trigger de huidige uitvoering kunnen beïnvloeden. INFO_INTERPRETER_VERBOSE_MODE_TRIGGER_MODE=Dit onderdeel is een trigger die binnen het bereik van de regel valt. Merk op dat de effecten van een trigger de huidige uitvoering kunnen beïnvloeden. @@ -136,6 +138,7 @@ INFO_PARSER_TIMEOUT_DESCRIPTION=stel de maximale uitvoeringsduur in (in millisec INFO_PARSER_VERBOSE_MODE_DESCRIPTION=toon de opdrachtuitvoer INFO_PARSER_VERSION_DESCRIPTION=toon de applicatieversie LOG_INFO_BEGIN_BUFFER=OPEN UITVOER +LOG_INFO_BOOLEAN_MODE=Booleaanse waarde: {0} LOG_INFO_DIRECTIVES_BLOCK=DIRECTIVES LOG_INFO_END_BUFFER=SLUIT UITVOER LOG_INFO_INTERPRET_RULE=Ik ben klaar om regel ''{0}'' te verwerken. diff --git a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_pt_BR.properties b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_pt_BR.properties index 272a2f3ce9..3ce8cd2fb6 100644 --- a/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_pt_BR.properties +++ b/support/arara/source/src/main/resources/com/github/cereda/arara/localization/messages_pt_BR.properties @@ -63,6 +63,7 @@ ERROR_INTERPRETER_NULL_COMMAND=Sinto muito, mas, aparentemente, um dos comandos ERROR_INTERPRETER_RULE_NOT_FOUND=Não consegui encontrar uma regra chamada ''{0}'' nos caminhos de regras especificados. Talvez uma palavra digitada incorretamente? Eu estava procurando por um arquivo chamado ''{0}.yaml'' nos seguintes caminhos, em ordem de prioridade: {1} ERROR_INTERPRETER_UNKNOWN_KEYS=Encontrei as seguintes chaves desconhecidas na diretiva: {0}. Isso é fácil de resolver, apenas remova essas chaves do seu mapa. ERROR_INTERPRETER_WRONG_EXIT_CLOSURE_RETURN=A expressão 'exit' referente ao código de saída deve sempre retornar um valor lógico (mesmo se não há computação propriamente dita). Isso é fácil de resolver: apenas certifique-se de corrigir o tipo de retorno e tente novamente. +ERROR_ISSUBDIRECTORY_NOT_A_DIRECTORY=O método ''isSubdirectory'' requer um diretório, não um arquivo. Observe que ''{0}'' não parece ser um diretório. ERROR_LANGUAGE_INVALID_CODE=O código de idioma especificado é inválido. No momento, eu sei falar os seguintes idiomas: {0} ERROR_LOAD_COULD_NOT_LOAD_XML=Não consegui carregar o banco de dados XML chamado ''{0}''. Não tenho ideia porque não deu certo. Talvez o arquivo tenha sido movido ou removido antes ou durante a operação de leitura. Ou talvez eu não tenha as permissões corretas para leitura do arquivo. A propósito, certifique-se de que o arquivo XML esteja correto. ERROR_PARSER_INVALID_PREAMBLE=Sinto muito, mas o preâmbulo ''{0}'' não foi encontrado. Por favor, certifique-se de que esta chave existe no arquivo de configuração. @@ -110,6 +111,7 @@ ERROR_VELOCITY_IO_EXCEPTION=O motor de modelo não conseguiu escrever no arquivo INFO_DISPLAY_EXCEPTION_MORE_DETAILS=Detalhes adicionais estão disponíveis para esta exceção: INFO_DISPLAY_EXECUTION_TIME=Total: {0} segundos INFO_DISPLAY_FILE_INFORMATION=Processando ''{0}'' (tamanho: {1}, última modificação: {2}), por favor, aguarde. +INFO_INTERPRETER_DRYRUN_MODE_BOOLEAN_MODE=Apesar da execução em modo dry-run, é provável que esta entrada já foi processada, dado que o seguinte valor lógico foi retornado: {0} INFO_INTERPRETER_DRYRUN_MODE_SYSTEM_COMMAND=A executar: {0} INFO_INTERPRETER_DRYRUN_MODE_TRIGGER_MODE=Apesar da execução em modo dry-run, esta entrada é sempre processada por tratar-se de um gatilho. Observe que os efeitos de um gatilho podem influenciar a execução corrente. INFO_INTERPRETER_VERBOSE_MODE_TRIGGER_MODE=Esta entrada é um gatilho originado a partir do escopo da regra. Observe que os efeitos de um gatilho podem influenciar a execução corrente. @@ -136,6 +138,7 @@ INFO_PARSER_TIMEOUT_DESCRIPTION=define o timeout de execução (em milissegundos INFO_PARSER_VERBOSE_MODE_DESCRIPTION=imprime a saída do comando INFO_PARSER_VERSION_DESCRIPTION=imprime a versão da aplicação LOG_INFO_BEGIN_BUFFER=INÍCIO DO BUFFER DE SAÍDA +LOG_INFO_BOOLEAN_MODE=Valor lógico: {0} LOG_INFO_DIRECTIVES_BLOCK=DIRETIVAS LOG_INFO_END_BUFFER=FINAL DO BUFFER DE SAÍDA LOG_INFO_INTERPRET_RULE=Estou pronto para interpretar a regra ''{0}''. |