Commit 4fa6fd86 authored by Philippe Merle's avatar Philippe Merle
Browse files

Minor update to make this module frascati-implementation-velocity compatible with the one-jar tool.

This allows to embed the FraSCAti Web Explorer inside an one-jar jar.
parent 4bc78b9b
/**
* OW2 FraSCAti: SCA Implementation Velocity
* Copyright (C) 2011 Inria, University Lille 1
* Copyright (C) 2011-2012 Inria, University Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -101,7 +101,7 @@ public class ImplementationVelocityProcessor
boolean checkDefaultInClassLoader = true;
// Check that location is present in the class path.
if(!isNullOrEmpty(location) && processingContext.getClassLoader().getResourceAsStream(location) == null) {
if(!isNullOrEmpty(location) && processingContext.getClassLoader().getResourceAsStream(location + '/') == null) {
// Location not found.
error(processingContext, velocityImplementation, "Location '" + location + "' not found");
checkDefaultInClassLoader = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment