mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-03-02 10:41:43 +01:00
Minor tool task improvements
- List tasks alphabetically in tools runner - Remove redundant space before CUSTOM entry in hash algorithms table
This commit is contained in:
parent
6f4a5fee07
commit
e07c685d2a
@ -5,9 +5,9 @@ import fr.xephi.authme.TestHelper;
|
||||
import tools.utils.AutoToolTask;
|
||||
import tools.utils.ToolTask;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Scanner;
|
||||
import java.util.TreeMap;
|
||||
|
||||
/**
|
||||
* Runner for executing tool tasks.
|
||||
@ -29,7 +29,7 @@ public final class ToolsRunner {
|
||||
// Note ljacqu 20151212: If the tools folder becomes a lot bigger, it will make sense to restrict the depth
|
||||
// of this recursive collector
|
||||
ClassCollector collector = new ClassCollector(TestHelper.TEST_SOURCES_FOLDER, "tools");
|
||||
Map<String, ToolTask> tasks = new HashMap<>();
|
||||
Map<String, ToolTask> tasks = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
|
||||
for (ToolTask task : collector.getInstancesOfType(ToolTask.class)) {
|
||||
tasks.put(task.getTaskName(), task);
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ import java.util.Scanner;
|
||||
/**
|
||||
* Task for generating the markdown page describing the AuthMe hash algorithms.
|
||||
*
|
||||
* @see {@link fr.xephi.authme.security.HashAlgorithm}
|
||||
* @see fr.xephi.authme.security.HashAlgorithm
|
||||
*/
|
||||
public class HashAlgorithmsDescriptionTask implements AutoToolTask {
|
||||
|
||||
|
@ -9,8 +9,7 @@ Algorithm | Recommendation | Hash length | ASCII | | Salt type | Length | Se
|
||||
--------- | -------------- | ----------- | ----- | --- | --------- | ------ | ---------
|
||||
[#algorithms]
|
||||
{name} | {recommendation} | {hash_length} | {ascii_restricted} | | {salt_type} | {salt_length} | {separate_salt}
|
||||
[/#algorithms]
|
||||
CUSTOM | | | | | | | |
|
||||
[/#algorithms]CUSTOM | | | | | | | |
|
||||
|
||||
<!-- {gen_warning} -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user