From 4f39d698dddd7a94ee6d9058772439ebd6f17c09 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 27 Aug 2015 21:02:17 +0200 Subject: [PATCH] =?utf8?q?Exclude=20field=20names=20starting=20with=20a=20?= =?utf8?q?dollar=20character=20+=20added=20dist.sh=20which=20helps=20me=20?= =?utf8?q?distributing=20the=20jcore.jar=20Signed-off-by:Roland=20H=C3=A4d?= =?utf8?q?er=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- dist.sh | 8 ++++++++ src/org/mxchange/jcore/BaseFrameworkSystem.java | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100755 dist.sh 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 -- 2.39.5