@Test public void testCopyDefaultFile() throws Exception { File wfFile = new File(temp.getRoot(), "wf.xml"); WorkflowProfiles.copyDefaultFile(wfFile); assertTrue(wfFile.exists()); assertTrue(wfFile.length() > 0); WorkflowProfiles wp = new WorkflowProfiles(wfFile); assertNotNull(wp.getProfiles()); }
public static void copyDefaultFile(File target) throws IOException { if (target.exists()) { return ; } FileUtils.copyURLToFile(WorkflowProfiles.class.getResource("workflow.xml"), target); }
WorkflowProfiles { public static void copyDefaultFile(File target) throws IOException { if (target.exists()) { return ; } FileUtils.copyURLToFile(WorkflowProfiles.class.getResource("workflow.xml"), target); } }
WorkflowProfiles { public static void copyDefaultFile(File target) throws IOException { if (target.exists()) { return ; } FileUtils.copyURLToFile(WorkflowProfiles.class.getResource("workflow.xml"), target); } WorkflowProfiles(File file); }
WorkflowProfiles { public static void copyDefaultFile(File target) throws IOException { if (target.exists()) { return ; } FileUtils.copyURLToFile(WorkflowProfiles.class.getResource("workflow.xml"), target); } WorkflowProfiles(File file); static WorkflowProfiles getInstance(); static void setInstance(WorkflowProfiles wp); static void copyDefaultFile(File target); synchronized WorkflowDefinition getProfiles(); JobDefinition getProfile(WorkflowDefinition workflow, String name); TaskDefinition getTaskProfile(WorkflowDefinition workflow, String taskName); static StepDefinition findStep(JobDefinition job, String stepName); ParamDefinition getParamProfile(TaskDefinition task, String paramName); MaterialDefinition getMaterialProfile(WorkflowDefinition workflow, String materialName); List<ValueMap> getValueMap(ValueMap.Context ctx); List<String> getSortedTaskNames(JobDefinition job); }
WorkflowProfiles { public static void copyDefaultFile(File target) throws IOException { if (target.exists()) { return ; } FileUtils.copyURLToFile(WorkflowProfiles.class.getResource("workflow.xml"), target); } WorkflowProfiles(File file); static WorkflowProfiles getInstance(); static void setInstance(WorkflowProfiles wp); static void copyDefaultFile(File target); synchronized WorkflowDefinition getProfiles(); JobDefinition getProfile(WorkflowDefinition workflow, String name); TaskDefinition getTaskProfile(WorkflowDefinition workflow, String taskName); static StepDefinition findStep(JobDefinition job, String stepName); ParamDefinition getParamProfile(TaskDefinition task, String paramName); MaterialDefinition getMaterialProfile(WorkflowDefinition workflow, String materialName); List<ValueMap> getValueMap(ValueMap.Context ctx); List<String> getSortedTaskNames(JobDefinition job);  }