- Use frascati.version in dependencies from FraSCAti

- Avoid compilation error in case of no java sources in user project
parent 399d6529
......@@ -279,12 +279,12 @@
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-implementation-script-javascript</artifactId>
<version>${project.version}</version>
<version>${frascati.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-implementation-script</artifactId>
<version>${project.version}</version>
<version>${frascati.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.frascati</groupId>
......
......@@ -212,10 +212,14 @@ public class SCAJavaCompilerImpl implements CompilerItf {
options.add("-classpath");
options.add(libList);
if(checkFolder(src, pathNameList) == false){
success = false;
}
if (pathNameList.isEmpty()) {
LOG.info("No java files to compile");
return success;
}
Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromStrings(pathNameList);
......
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