--- /dev/null
+#!/bin/sh
+
+NAME="${PWD##*/}"
+DIST="dist/${NAME}.jar"
+LIST=`find ../*/lib/${NAME}.jar`
+LIST="${LIST} `find ../*/*-ejb/lib/${NAME}.jar`"
+LIST="${LIST} ${HOME}/gf_domains/domain1/lib/"
+
+for target in ${LIST};
+do
+ if [ ! -f "${DIST}" ]
+ then
+ echo "$0: '${DIST}' not found."
+ elif [ -d "${target}" ]
+ then
+ cp -v "${DIST}" "${target}"
+ elif [ -f "${target}" ]
+ then
+ cp -v "${DIST}" "${target}"
+ else
+ echo "$0: Target '${target}' not found."
+ fi
+done
file.reference.jcore-logger-lib.jar=lib/jcore-logger-lib.jar
file.reference.jcore-swing.jar=lib/jcore-swing.jar
file.reference.jcore.jar=lib/jcore.jar
+file.reference.jcoreee.jar=lib/jcoreee.jar
file.reference.juser-core.jar=lib\\juser-core.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.index=${jnlp.enabled}
javac.classpath=\
${file.reference.jcore.jar}:\
+ ${file.reference.jcoreee.jar}:\
${file.reference.jcore-swing.jar}:\
${file.reference.jcore-logger-lib.jar}:\
${file.reference.jcontacts-core.jar}:\
source.reference.jcore-logger-lib.jar=../jcore-logger-lib/src/
source.reference.jcore-swing.jar=../jcore-swing/src
source.reference.jcore.jar=../jcore/src
+source.reference.jcoreee.jar=../jcoreee/src/
source.reference.juser-core.jar=../juser-core/src/
src.dir=src
test.src.dir=test
--- /dev/null
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.addressbook.validator.names;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.Validator;
+import javax.faces.validator.ValidatorException;
+import org.mxchange.jcoreee.validator.string.BaseStringValidator;
+
+/**
+ * A validation class for addressbook names, such as first name or family name.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AddressbookNameValidator extends BaseStringValidator implements Validator {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 27_587_896_710_689_451L;
+
+ @Override
+ public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
+ // Trace message
+ //this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
+
+ // All accepted, required fields
+ String[] requiredFileds = {"addressbookName"}; //NOI18N
+
+ // Pre-validation (e.g. not null, not a string, empty string ...)
+ super.preValidate(context, component, value, requiredFileds);
+
+ // Trace message
+ //this.getLogger().logTrace("validate: EXIT!"); //NOI18N
+ }
+}