Skip to content

Commit

Permalink
Ignite-67 properties fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avinogradov committed Jan 28, 2015
1 parent 4e69eb0 commit 4618caa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions bin/include/service.sh
Expand Up @@ -30,7 +30,7 @@ set -e
SERVICE=$2

# Name of PID file.
PIDFILE=${GRIDGAIN_PID_DIR}/${SERVICE}.pid
PIDFILE=${IGNITE_PID_DIR}/${SERVICE}.pid

case "$1" in
start)
Expand All @@ -56,10 +56,10 @@ case "$1" in
fi

# Resolve config directory.
GRIDGAIN_CONF_DIR=${GRIDGAIN_CONF_DIR-"${IGNITE_HOME}/config"}
IGNITE_CONF_DIR=${IGNITE_CONF_DIR-"${IGNITE_HOME}/config"}

# Resolve full config path.
[[ "$DEFAULT_CONFIG" != /* ]] && DEFAULT_CONFIG="$GRIDGAIN_CONF_DIR/$DEFAULT_CONFIG"
[[ "$DEFAULT_CONFIG" != /* ]] && DEFAULT_CONFIG="$IGNITE_CONF_DIR/$DEFAULT_CONFIG"

# Discover path to Java executable and check it's version.
checkJava
Expand Down
Expand Up @@ -43,7 +43,7 @@
*/
public class IgniteSpringProcessorImpl implements IgniteSpringProcessor {
/** Path to {@code gridgain.xml} file. */
public static final String GRIDGAIN_XML_PATH = "META-INF/gridgain.xml";
public static final String IGNITE_XML_PATH = "META-INF/gridgain.xml";

/** System class loader user version. */
private static final AtomicReference<String> SYS_LDR_VER = new AtomicReference<>(null);
Expand Down Expand Up @@ -151,7 +151,7 @@ public class IgniteSpringProcessorImpl implements IgniteSpringProcessor {

String usrVer = U.DFLT_USER_VERSION;

InputStream in = ldr.getResourceAsStream(GRIDGAIN_XML_PATH);
InputStream in = ldr.getResourceAsStream(IGNITE_XML_PATH);

if (in != null) {
// Note: use ByteArrayResource instead of InputStreamResource because
Expand All @@ -174,19 +174,19 @@ public class IgniteSpringProcessorImpl implements IgniteSpringProcessor {
catch (NoSuchBeanDefinitionException ignored) {
if (log.isInfoEnabled())
log.info("User version is not explicitly defined (will use default version) [file=" +
GRIDGAIN_XML_PATH + ", clsLdr=" + ldr + ']');
IGNITE_XML_PATH + ", clsLdr=" + ldr + ']');

usrVer = U.DFLT_USER_VERSION;
}
catch (BeansException e) {
U.error(log, "Failed to parse Spring XML file (will use default user version) [file=" +
GRIDGAIN_XML_PATH + ", clsLdr=" + ldr + ']', e);
IGNITE_XML_PATH + ", clsLdr=" + ldr + ']', e);

usrVer = U.DFLT_USER_VERSION;
}
catch (IOException e) {
U.error(log, "Failed to read Spring XML file (will use default user version) [file=" +
GRIDGAIN_XML_PATH + ", clsLdr=" + ldr + ']', e);
IGNITE_XML_PATH + ", clsLdr=" + ldr + ']', e);

usrVer = U.DFLT_USER_VERSION;
}
Expand Down

0 comments on commit 4618caa

Please sign in to comment.