From: Roland Haeder Date: Thu, 27 Aug 2015 19:02:17 +0000 (+0200) Subject: Exclude field names starting with a dollar character + added dist.sh which helps... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f39d698dddd7a94ee6d9058772439ebd6f17c09;p=jcore.git Exclude field names starting with a dollar character + added dist.sh which helps me distributing the jcore.jar Signed-off-by:Roland Häder --- diff --git a/dist.sh b/dist.sh new file mode 100755 index 0000000..1d999f1 --- /dev/null +++ b/dist.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +LIST=`find ../*/lib/jcore.jar` + +for entry in ${LIST}; +do + cp -v dist/jcore.jar ${entry} +done diff --git a/src/org/mxchange/jcore/BaseFrameworkSystem.java b/src/org/mxchange/jcore/BaseFrameworkSystem.java index 5443e55..eb66922 100644 --- a/src/org/mxchange/jcore/BaseFrameworkSystem.java +++ b/src/org/mxchange/jcore/BaseFrameworkSystem.java @@ -1240,6 +1240,14 @@ public class BaseFrameworkSystem implements FrameworkInterface { // Search for proper field instance for (final Field field : fields) { + // Is a dollar character there? + if (field.getName().startsWith("$")) { + // Debug message + this.getLogger().debug("Field name " + field.getName() + " starts with a dollar, skipped."); + // Skip this + continue; + } + // Debug message this.getLogger().debug(MessageFormat.format("field.getName()={0},fieldName={1}", field.getName(), fieldName)); //NOI18N