QueryDefinitionAPI queryDefinitionAPI, String barFile)
throws Exception {
- File dir = new File(Beans.getApplicationPath("/")+ "/WEB-INF/"+workflowsdir);
+ String workflowsPath = System.getenv("HOME") + "/.evalcomp/" + workflowsdir;
- logger.info("PATH of WORKFLOW :" + dir.getAbsolutePath());
+ File dir = new File(workflowsPath);
+
+ logger.info("Workflow directory " + workflowsPath + " is " + dir.exists());
+
+ if (!dir.isDirectory()) {
+ workflowsPath = Beans.getApplicationPath("/")+ "/WEB-INF/"+workflowsdir;
+ logger.info("Try with alternatePath : " + workflowsPath);
+
+ dir = new File( workflowsPath );
+
+ }
+
+ logger
+ .info("Aquiring parameteres from " + workflowsPath
+ + ". starting ... ");
+
+ logger.info("Workflows directory : " + dir.getAbsolutePath());
File[] filesWanted = dir.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {