1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.deploy.spring;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21 import org.kuali.common.impex.spring.ProjectStagingConfig;
22 import org.kuali.common.util.execute.Executable;
23 import org.kuali.common.util.execute.ExecutablesExecutable;
24 import org.kuali.common.util.scm.ScmProjectConfig;
25 import org.kuali.common.util.spring.ExecutableConfig;
26 import org.springframework.beans.factory.annotation.Autowired;
27 import org.springframework.context.annotation.Configuration;
28 import org.springframework.context.annotation.Import;
29
30 @Configuration
31 @Import({ ProjectStagingConfig.class, ScmProjectConfig.class })
32 public class ScmUpdateExecutableConfig extends ExecutableConfig {
33
34 @Autowired
35 ProjectStagingConfig projectStagingConfig;
36
37 @Autowired
38 ScmProjectConfig scmProjectConfig;
39
40 @Override
41 protected Executable getExecutable() {
42
43 List<Executable> executables = new ArrayList<Executable>();
44
45
46 executables.add(projectStagingConfig.dumpSchemaFilesExecutable());
47
48
49 executables.add(projectStagingConfig.copyProjectDataFilesExecutable());
50
51
52 executables.add(scmProjectConfig.projectScmConfigUpdateScmExecutable());
53
54
55 return new ExecutablesExecutable(executables);
56 }
57
58 }