You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changing Buider.java, lines 850 to (bold text) could resolve problem..:
String sValue = parent.getStringProperty(currentKey);
if (sValue != null && sValue.matches(asValueHandler.getRegex())) {
//replace the value from the file with the corresponding object instance
parent.getProperties().put(currentKey, asValueHandler.getValue(process, parent, currentKey,
parent.getProperty(currentKey)));
} else {
throw new BuildException("Invalid {0} value \"{1}\" for {2}.{3}. Must in be in \"{4}\" format, e.g. \"{5}\"",
propertyType.getSimpleName(), sValue, parent.getMainObject().getClass().getSimpleName(),
currentKey, asValueHandler.getRegex(), asValueHandler.getInputValueSample());
}
unfortunately, this does not solve the issue.. the subsequent exception is throws:
Invalidintvalue "null" for PersonApp.number. Must in be in "\d+|[a-zA-Z0-9_]+" format, e.g. "3 | SOME_CONSTANT_VALUE | someConstantValue"
at org.javabuilders.Builder.handleProperty(Builder.java:855)
... 26 more
My question at this point is, is it possible to use properties other than String in yml files, and assign them to java class?
The text was updated successfully, but these errors were encountered:
Maybe, it would be worth adding a check to property "- number = 1" for existence instead of leaving that simply null without any exception reported to user..
Starting from Swing sample PersonApp, if you just add a simple int property to class PersonApp:
results in a NPE
changing Buider.java, lines 850 to (bold text) could resolve problem..:
unfortunately, this does not solve the issue.. the subsequent exception is throws:
My question at this point is, is it possible to use properties other than String in yml files, and assign them to java class?
The text was updated successfully, but these errors were encountered: