]> git.mxchange.org Git - jcore.git/commitdiff
Exclude field names starting with a dollar character + added dist.sh which helps...
authorRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 19:02:17 +0000 (21:02 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 19:02:54 +0000 (21:02 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

dist.sh [new file with mode: 0755]
src/org/mxchange/jcore/BaseFrameworkSystem.java

diff --git a/dist.sh b/dist.sh
new file mode 100755 (executable)
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
index 5443e55b0b89f12b411583644cdb504a89abfc1e..eb66922f094c9f7ce8520c62b3665da0adb97792 100644 (file)
@@ -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