\r
import org.apache.tools.ant.BuildException;\r
import org.apache.tools.ant.Target;\r
-import org.argeo.slc.ant.SlcAntConstants;\r
+import org.argeo.slc.ant.AntConstants;\r
import org.argeo.slc.ant.spring.AbstractSpringTask;\r
import org.argeo.slc.ant.spring.SpringArg;\r
import org.argeo.slc.core.SlcException;\r
\r
// notify registered args\r
for (SpringArg arg : sAwareArgs) {\r
- Object obj = arg.getBeanInstance();\r
+ Object obj = arg.getInstance();\r
\r
if (obj instanceof StructureAware) {\r
StructureAware<TreeSPath> sAwareT = (StructureAware<TreeSPath>) obj;\r
/** Gets the underlying structure registry. */\r
protected StructureRegistry<TreeSPath> getRegistry() {\r
return (StructureRegistry<TreeSPath>) getProject().getReference(\r
- SlcAntConstants.REF_STRUCTURE_REGISTRY);\r
+ AntConstants.REF_STRUCTURE_REGISTRY);\r
}\r
\r
/** Creates the treeSPath for a given Ant target. */\r
protected static TreeSPath createTargetPath(Target target) {\r
TreeSPath projectPath = (TreeSPath) target.getProject().getReference(\r
- SlcAntConstants.REF_PROJECT_PATH);\r
+ AntConstants.REF_PROJECT_PATH);\r
return projectPath.createChild(target.getName());\r
}\r
\r
\r
class StructureElementArg extends SpringArg {\r
public StructureElement getStructureElement() {\r
- return (StructureElement) getBeanInstance();\r
+ return (StructureElement) getInstance();\r
}\r
}
\ No newline at end of file