From 30348f64f16d916dec54bbc594b5c69ddcce9471 Mon Sep 17 00:00:00 2001 From: Tomas Shestakov Date: Sun, 16 Dec 2018 11:11:25 +0300 Subject: [PATCH] Fix for issue https://github.com/prestodb/presto-maven-plugin/issues/1 replaced slash by File.separateChar --- .../com/facebook/presto/maven/ServiceDescriptorGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/facebook/presto/maven/ServiceDescriptorGenerator.java b/src/main/java/com/facebook/presto/maven/ServiceDescriptorGenerator.java index c609371..91a1bd0 100644 --- a/src/main/java/com/facebook/presto/maven/ServiceDescriptorGenerator.java +++ b/src/main/java/com/facebook/presto/maven/ServiceDescriptorGenerator.java @@ -119,7 +119,7 @@ private List> findImplementationsOf(Class implementationTemplate, UR List> implementations = Lists.newArrayList(); List classes = FileUtils.getFileNames(classesDirectory, "**/*.class", null, false); for (String classPath : classes) { - String className = classPath.substring(0, classPath.length() - 6).replace('/', '.'); + String className = classPath.substring(0, classPath.length() - 6).replace(File.separatorChar, '.'); try { Class implementation = searchRealm.loadClass(implementationTemplate.getName()); Class clazz = searchRealm.loadClass(className);