Skip to content
Commits on Source (5)
......@@ -9,6 +9,14 @@ on.
## [Unreleased]
## [7.0.2] - 2022-05-05
### Fixed
* arara used Java File objects in rules instead of the new path API in nearly
all cases except when using the `files` parameter. It is now again compliant
with documented behavior and rules have been adjusted.
## [7.0.1] - 2022-05-03
### Fixed
......@@ -506,7 +514,8 @@ on.
For versions previous to version 5.0.0, there has not been any persistent record
of changes. Please refer to the commit history for details.
[Unreleased]: https://gitlab.com/islandoftex/arara/compare/v7.0.1...master
[Unreleased]: https://gitlab.com/islandoftex/arara/compare/v7.0.2...master
[7.0.2]: https://gitlab.com/islandoftex/arara/compare/v7.0.1...v7.0.2
[7.0.1]: https://gitlab.com/islandoftex/arara/compare/v7.0.0...v7.0.1
[7.0.0]: https://gitlab.com/islandoftex/arara/compare/v6.1.7...v7.0.0
[6.1.7]: https://gitlab.com/islandoftex/arara/compare/v6.1.6...v6.1.7
......
......@@ -10,7 +10,7 @@ object Versions {
const val dokka = "1.6.21"
const val kotlin = "1.6.21"
const val shadow = "7.1.2"
const val spotless = "6.5.1"
const val spotless = "6.5.2"
const val spotlessChangelog = "2.4.0"
const val versionsPlugin = "0.42.0"
......
......@@ -7,7 +7,6 @@ import net.mamoe.yamlkt.Yaml
import org.islandoftex.arara.api.AraraException
import org.islandoftex.arara.api.configuration.ExecutionMode
import org.islandoftex.arara.api.files.ProjectFile
import org.islandoftex.arara.api.files.toJVMFile
import org.islandoftex.arara.api.rules.Directive
import org.islandoftex.arara.cli.utils.DisplayUtils
import org.islandoftex.arara.core.localization.LanguageController
......@@ -151,7 +150,7 @@ object DirectiveUtils {
listOf(
DirectiveImpl(
directive.identifier,
parameters.plus("reference" to file.path.toJVMFile()),
parameters.plus("reference" to file.path),
directive.conditional,
directive.lineNumbers
)
......
......@@ -13,8 +13,8 @@ commands:
- name: The Convert program
command: >
@{
input = getBasename(reference.getName()).concat('.pdf');
output = getBasename(reference.getName()).concat('.gif');
input = getBasename(reference.fileName).concat('.pdf');
output = getBasename(reference.fileName).concat('.gif');
return getCommand(program, '-delay', delay, '-loop',
loop, '-density', density, options, input, output);
}
......
......@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('asy', color, engine, twice,
format, output, options, reference.getName());
format, output, options, reference.fileName);
}
arguments:
- identifier: color
......
......@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('authorindex', draft, index, keep, print,
recurse, options, getBasename(reference.getName()));
recurse, options, getBasename(reference.fileName));
}
arguments:
- identifier: draft
......
......@@ -63,7 +63,7 @@ commands:
breakspace, trimfields, recordcount, recordcountunit,
cite, verbose, merge, locale, uniscript, packages,
ignore, custom, mapformats, options,
getBasename(reference.getName()));
getBasename(reference.fileName));
}
}
arguments:
......@@ -80,7 +80,7 @@ arguments:
throwError('Forbidden transcript extension');
}
return ['--log-file', getBasename(reference.getName())+"."+parameters.trans]
return ['--log-file', getBasename(reference.fileName)+"."+parameters.trans]
}
- identifier: locale
flag: >
......
......@@ -17,7 +17,7 @@ commands:
}
else {
return getCommand('biber', options,
getBasename(reference.getName()));
getBasename(reference.fileName));
}
}
arguments:
......
......@@ -12,7 +12,7 @@ commands:
- name: The BibTeX reference management software
command: >
@{
return getCommand('bibtex', options, getBasename(reference.getName()))
return getCommand('bibtex', options, getBasename(reference.fileName))
}
arguments:
- identifier: options
......
......@@ -12,7 +12,7 @@ commands:
- name: An 8-bit implementation of BibTeX 0.99 with a very large capacity
command: >
@{
return getCommand('bibtex8', options, getBasename(reference.getName()));
return getCommand('bibtex8', options, getBasename(reference.fileName));
}
arguments:
- identifier: options
......
......@@ -12,7 +12,7 @@ commands:
- name: An 8-bit implementation of BibTeX 0.99 with a very large capacity
command: >
@{
return getCommand('bibtexu', options, getBasename(reference.getName()));
return getCommand('bibtexu', options, getBasename(reference.fileName));
}
arguments:
- identifier: options
......
......@@ -15,7 +15,7 @@ commands:
return getCommand('context', make, ctx, interface, autopdf, purge,
modules, environments, mode, path, arguments,
trackers, directives, silent, errors, interaction,
synctex, options, reference.getName());
synctex, options, reference.fileName);
}
arguments:
- identifier: make
......
......@@ -20,7 +20,7 @@ commands:
prefix = [ 'cmd', '/c', 'copy', '/Y' ];
}
t = isList(target) ? target[0] : target;
f = toFile(t).getCanonicalFile();
f = toFile(t).normalize();
if (getOriginalReference().equals(f)) {
throwError('I cannot overwrite the main file reference.');
}
......
......@@ -13,7 +13,7 @@ commands:
command: >
@{
return getCommand('csplain', interaction, draft,
shell, synctex, options, reference.getName());
shell, synctex, options, reference.fileName);
}
arguments:
- identifier: interaction
......
......@@ -13,7 +13,7 @@ commands:
command: >
@{
c = getCommand('detex', references, mode, follow, math, spaces,
words, environments, reference.getName());
words, environments, reference.fileName);
if (output.isEmpty()) {
return c;
}
......
......@@ -12,7 +12,7 @@ commands:
- name: The DVIPDFM program
command: >
@{
base = getBasename(reference.getName()).concat('.dvi');
base = getBasename(reference.fileName).concat('.dvi');
out = getBasename(output[0]).concat('.pdf');
return getCommand('dvipdfm', base, '-o', out, options);
}
......@@ -20,7 +20,7 @@ arguments:
- identifier: output
flag: >
@{
isEmpty(parameters.output, reference.getName(), parameters.output)
isEmpty(parameters.output, reference.fileName, parameters.output)
}
default: ''
- identifier: options
......
......@@ -12,7 +12,7 @@ commands:
- name: The DVIPDFMX program
command: >
@{
base = getBasename(reference.getName()).concat('.dvi');
base = getBasename(reference.fileName).concat('.dvi');
out = getBasename(output[0]).concat('.pdf');
return getCommand('dvipdfmx', base, '-o', out, options);
}
......@@ -20,7 +20,7 @@ arguments:
- identifier: output
flag: >
@{
isEmpty(parameters.output, reference.getName(), parameters.output)
isEmpty(parameters.output, reference.fileName, parameters.output)
}
default: ''
- identifier: options
......
......@@ -12,7 +12,7 @@ commands:
- name: The DVIPS program
command: >
@{
base = getBasename(reference.getName()).concat('.dvi');
base = getBasename(reference.fileName).concat('.dvi');
out = getBasename(output[0]).concat('.ps');
return getCommand('dvips', base, '-o', out, options);
}
......@@ -20,7 +20,7 @@ arguments:
- identifier: output
flag: >
@{
isEmpty(parameters.output, reference.getName(), parameters.output)
isEmpty(parameters.output, reference.fileName, parameters.output)
}
default: ''
- identifier: options
......
......@@ -12,14 +12,14 @@ commands:
- name: The DVIPS program
command: >
@{
base = getBasename(reference.getName()).concat('.dvi');
out = getBasename(reference.getName()).concat('.ps');
base = getBasename(reference.fileName).concat('.dvi');
out = getBasename(reference.fileName).concat('.ps');
return getCommand('dvips', base, '-o', out, options1);
}
- name: The PS2PDF program
command: >
@{
base = getBasename(reference.getName()).concat('.ps');
base = getBasename(reference.fileName).concat('.ps');
out = getBasename(output[0]).concat('.pdf');
return getCommand('ps2pdf', options2, base, '-o', out);
}
......@@ -27,7 +27,7 @@ arguments:
- identifier: output
flag: >
@{
isEmpty(parameters.output, reference.getName(), parameters.output)
isEmpty(parameters.output, reference.fileName, parameters.output)
}
default: ''
- identifier: options1
......
......@@ -13,7 +13,7 @@ commands:
- name: The dvisvgm program
command: >
@{
base = getBasename(reference.getName()).
base = getBasename(reference.fileName).
concat('.').concat(entry[0]);
return getCommand('dvisvgm', getOrNull(entry, 1), pages,
options, base);
......