1 package org
.argeo
.slc
.ant
;
3 import org
.apache
.tools
.ant
.Project
;
4 import org
.argeo
.slc
.core
.process
.SlcExecution
;
5 import org
.argeo
.slc
.runtime
.SlcExecutionContext
;
6 import org
.springframework
.context
.ApplicationContext
;
8 public class AntExecutionContext
implements SlcExecutionContext
{
9 private final Project project
;
11 public AntExecutionContext(Project project
) {
12 this.project
= project
;
15 public Object
getBean(String name
) {
16 ApplicationContext context
= (ApplicationContext
) project
17 .getReference(SlcAntConstants
.REF_ROOT_CONTEXT
);
18 return context
.getBean(name
);
21 public SlcExecution
getSlcExecution() {
22 return (SlcExecution
) project
23 .getReference(SlcAntConstants
.REF_SLC_EXECUTION
);
26 public Project
getProject() {