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.AutoToolTask;
|
||||||
import tools.utils.ToolTask;
|
import tools.utils.ToolTask;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
|
import java.util.TreeMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runner for executing tool tasks.
|
* 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
|
// Note ljacqu 20151212: If the tools folder becomes a lot bigger, it will make sense to restrict the depth
|
||||||
// of this recursive collector
|
// of this recursive collector
|
||||||
ClassCollector collector = new ClassCollector(TestHelper.TEST_SOURCES_FOLDER, "tools");
|
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)) {
|
for (ToolTask task : collector.getInstancesOfType(ToolTask.class)) {
|
||||||
tasks.put(task.getTaskName(), task);
|
tasks.put(task.getTaskName(), task);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import java.util.Scanner;
|
|||||||
/**
|
/**
|
||||||
* Task for generating the markdown page describing the AuthMe hash algorithms.
|
* 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 {
|
public class HashAlgorithmsDescriptionTask implements AutoToolTask {
|
||||||
|
|
||||||
|
|||||||
@ -9,8 +9,7 @@ Algorithm | Recommendation | Hash length | ASCII | | Salt type | Length | Se
|
|||||||
--------- | -------------- | ----------- | ----- | --- | --------- | ------ | ---------
|
--------- | -------------- | ----------- | ----- | --- | --------- | ------ | ---------
|
||||||
[#algorithms]
|
[#algorithms]
|
||||||
{name} | {recommendation} | {hash_length} | {ascii_restricted} | | {salt_type} | {salt_length} | {separate_salt}
|
{name} | {recommendation} | {hash_length} | {ascii_restricted} | | {salt_type} | {salt_length} | {separate_salt}
|
||||||
[/#algorithms]
|
[/#algorithms]CUSTOM | | | | | | | |
|
||||||
CUSTOM | | | | | | | |
|
|
||||||
|
|
||||||
<!-- {gen_warning} -->
|
<!-- {gen_warning} -->
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user