\r
import org.apache.tools.ant.BuildException;\r
import org.apache.tools.ant.types.DataType;\r
-import org.argeo.slc.ant.SlcAntConstants;\r
-import org.argeo.slc.ant.SlcAntException;\r
+import org.argeo.slc.ant.AntConstants;\r
import org.argeo.slc.core.SlcException;\r
import org.springframework.beans.BeanWrapper;\r
import org.springframework.beans.BeanWrapperImpl;\r
if (bean != null) {\r
beanInstance = (T) getContext().getBean(bean);\r
if (beanInstance == null)\r
- throw new SlcAntException(\r
- "No object found for Spring bean " + bean);\r
+ throw new SlcException("No object found for Spring bean "\r
+ + bean);\r
} else if (antref != null) {\r
beanInstance = (T) getProject().getReference(antref);\r
if (beanInstance == null)\r
- throw new SlcAntException(\r
- "No object found for Ant reference " + antref);\r
+ throw new SlcException("No object found for Ant reference "\r
+ + antref);\r
} else {\r
- throw new SlcAntException(\r
+ throw new SlcException(\r
"Don't know how to retrieve bean instance");\r
}\r
\r
BeanWrapper wrapper = new BeanWrapperImpl(obj);\r
for (OverrideArg override : overrides) {\r
if (override.getName() == null) {\r
- throw new SlcAntException(\r
+ throw new SlcException(\r
"The name of the property to override has to be set.");\r
}\r
\r
/** The related Spring application context. */\r
protected ApplicationContext getContext() {\r
return (ApplicationContext) getProject().getReference(\r
- SlcAntConstants.REF_ROOT_CONTEXT);\r
+ AntConstants.REF_ROOT_CONTEXT);\r
}\r
\r
protected void checkValueAlreadySet() {\r