Skip to content

Commit c999827

Browse files
committed
0.7.4.8 (2021-01-03)
-------------------- + Added wrappers utilities + Changed ValidatorCatalog.init() to use StreamHelper.resolvePath()
1 parent 8de19e9 commit c999827

File tree

8 files changed

+16
-10
lines changed

8 files changed

+16
-10
lines changed

docgen/parameters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"title" : "Jupiter (Fugerit Core A.P.I.)",
33
"name": "Jupiter",
4-
"version" : "0.7.4.7",
5-
"date" : "01/01/2020",
4+
"version" : "0.7.4.8",
5+
"date" : "03/01/2020",
66
"organization" : {
77
"name" : "Fugerit Org",
88
"url" : "https://www.fugerit.org"

docgen/release-notes.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
0.7.4.8 (2021-01-XX)
1+
0.7.4.8 (2021-01-03)
22
--------------------
33
+ Added wrappers utilities
4+
+ Changed ValidatorCatalog.init() to use StreamHelper.resolvePath()
45

56
0.7.4.7 (2021-01-01)
67
--------------------

fj-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-lib</artifactId>
10-
<version>0.7.4.7</version>
10+
<version>0.7.4.8</version>
1111
</parent>
1212

1313
<name>fj-core</name>

fj-core/src/main/java/org/fugerit/java/core/validator/ValidatorCatalog.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.fugerit.java.core.cfg.ConfigException;
1111
import org.fugerit.java.core.cfg.xml.ListMapConfig;
1212
import org.fugerit.java.core.fixed.parser.FixedFileFieldBasicValidator;
13+
import org.fugerit.java.core.io.helper.StreamHelper;
1314
import org.fugerit.java.core.lang.helpers.ClassHelper;
1415
import org.fugerit.java.core.lang.helpers.StringUtils;
1516
import org.fugerit.java.core.xml.dom.DOMIO;
@@ -150,13 +151,17 @@ public boolean validate( String validatorId, ValidatorResult result, Locale l, S
150151

151152
public static ValidatorCatalog init( String path ) throws ConfigException {
152153
ValidatorCatalog catalog = new ValidatorCatalog();
154+
init(path, catalog);
155+
return catalog;
156+
}
157+
158+
public static void init( String path, ValidatorCatalog catalog ) throws ConfigException {
153159
try {
154-
Document doc = DOMIO.loadDOMDoc( ClassHelper.loadFromDefaultClassLoader( path ) );
160+
Document doc = DOMIO.loadDOMDoc( StreamHelper.resolveStream(path) );
155161
catalog.configure( doc.getDocumentElement() );
156162
} catch (Exception e) {
157163
throw new ConfigException( e );
158164
}
159-
return catalog;
160165
}
161166

162167
}

fj-core/src/test/java/test/org/fugerit/java/core/validator/TestValidatorCatalog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
public class TestValidatorCatalog extends BasicTest {
1818

19-
private final static String CONFIG_PATH = "core/validator/validator-catalog-test.xml";
19+
private final static String CONFIG_PATH = "cl://core/validator/validator-catalog-test.xml";
2020

2121
private static ValidatorCatalog catalog = null;
2222
static {

fj-ext/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-lib</artifactId>
10-
<version>0.7.4.7</version>
10+
<version>0.7.4.8</version>
1111
</parent>
1212

1313
<name>fj-ext</name>

fj-tool/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-lib</artifactId>
10-
<version>0.7.4.7</version>
10+
<version>0.7.4.8</version>
1111
</parent>
1212

1313
<name>fj-tool</name>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>org.fugerit.java</groupId>
66
<artifactId>fj-lib</artifactId>
77

8-
<version>0.7.4.7</version>
8+
<version>0.7.4.8</version>
99
<packaging>pom</packaging>
1010

1111
<name>fj-lib</name>

0 commit comments

Comments
 (0)