</dependency>
</dependencies>
</profile>
+ <profile>
+ <id>standalone</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.argeo.maven.plugins</groupId>
+ <artifactId>maven-argeo-osgi-plugin</artifactId>
+ <configuration>
+ <execDir>target/exec/agent</execDir>
+ <systemProperties>
+ <slc.osgi.start>
+ org.springframework.osgi.extender,
+ org.argeo.slc.support.equinox,
+ org.argeo.slc.agent
+ </slc.osgi.start>
+ <slc.osgi.bundles>
+ ${basedir}/site;in=*;ex=pom.xml;ex=target,
+ ${basedir}/../modules/agent;in=*;ex=pom.xml;ex=target
+ </slc.osgi.bundles>
+ </systemProperties>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.argeo.slc.dep</groupId>
+ <artifactId>org.argeo.slc.dep.agent</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.argeo.slc.runtime</groupId>
+ <artifactId>org.argeo.slc.support.ant</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
<profile>
<id>server_mysql</id>
<build>
Bundle-Description: Demonstrate Ant support\r
Spring-Context: conf/*,conf/testCases/*\r
Bundle-SymbolicName: org.argeo.slc.demo.ant\r
-Import-Package: net.sf.cglib.core,\r
- net.sf.cglib.proxy,\r
- net.sf.cglib.reflect,\r
+Import-Package: \r
org.aopalliance.aop,\r
- org.apache.commons.logging,\r
org.argeo.slc.ant,\r
org.argeo.slc.core.execution,\r
- org.argeo.slc.core.execution.tasks,\r
org.argeo.slc.execution,\r
org.argeo.slc.osgi,\r
- org.argeo.slc.osgi.execution,\r
- org.argeo.slc.structure,\r
org.springframework.aop,\r
org.springframework.aop.framework,\r
org.springframework.aop.scope,\r
http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd\r
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">\r
\r
- <bean id="main" parent="slcTemplate.simpleFlow">\r
+ <bean id="main" class="org.argeo.slc.core.execution.DefaultExecutionFlow">\r
<property name="executables">\r
<list>\r
<bean class="org.argeo.slc.ant.AntRun">\r
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
- <import resource="classpath:org/argeo/slc/core/execution/spring.xml" />
+ <import resource="classpath:org/argeo/slc/core/execution/simple.xml" />
</beans>
\ No newline at end of file
http://www.springframework.org/schema/beans \r
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
\r
- <beans:import resource="classpath:org/argeo/slc/osgi/execution/spring.xml" />\r
+ <beans:import resource="classpath:org/argeo/slc/osgi/execution.xml" />\r
</beans:beans>
\ No newline at end of file
org.argeo.slc.test,\r
org.argeo.slc.execution,\r
org.argeo.slc.osgi,\r
- org.argeo.slc.osgi.execution,\r
org.argeo.slc.structure,\r
net.sf.cglib.core,\r
net.sf.cglib.proxy,\r
net.sf.cglib.reflect,\r
org.aopalliance.aop,\r
- org.apache.commons.logging,\r
org.springframework.aop,\r
org.springframework.aop.framework,\r
org.springframework.aop.scope,\r
http://www.springframework.org/schema/beans \r
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
\r
- <beans:import resource="classpath:org/argeo/slc/osgi/execution/spring.xml" />\r
+ <beans:import resource="classpath:org/argeo/slc/osgi/execution.xml" />\r
\r
- <reference id="attachmentUploader" interface="org.argeo.slc.core.attachment.AttachmentUploader" />\r
+ <reference id="attachmentUploader"\r
+ interface="org.argeo.slc.core.attachment.AttachmentUploader" />\r
\r
<list id="resultListeners" interface="org.argeo.slc.core.test.tree.TreeTestResultListener" />\r
</beans:beans>
\ No newline at end of file
Bundle-Description: Minimal functioning execution module\r
Spring-Context: slc/*\r
Import-Package: \r
- net.sf.cglib.core,\r
- net.sf.cglib.proxy,\r
- net.sf.cglib.reflect,\r
org.aopalliance.aop,\r
- org.apache.commons.logging,\r
org.argeo.slc.core.execution,\r
org.argeo.slc.core.execution.tasks,\r
org.argeo.slc.execution,\r
org.argeo.slc.osgi,\r
- org.argeo.slc.osgi.execution,\r
- org.argeo.slc.structure,\r
org.springframework.aop,\r
org.springframework.aop.framework,\r
org.springframework.aop.scope,\r
- org.springframework.beans.factory.config,\r
- org.springframework.core.io\r
+ org.springframework.beans.factory.config\r
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
+ xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
+
+ <import resource="classpath:org/argeo/slc/core/execution/runtime.xml" />
+
+ <bean id="executionContext" class="org.argeo.slc.core.execution.MapExecutionContext"
+ scope="execution">
+ <aop:scoped-proxy proxy-target-class="false"/>
+ </bean>
+
+ <bean id="executionFlowDescriptorConverter"
+ class="org.argeo.slc.core.execution.DefaultExecutionFlowDescriptorConverter" />
+
- <import resource="classpath:org/argeo/slc/core/execution/spring.xml" />
</beans>
\ No newline at end of file
xmlns:aop="http://www.springframework.org/schema/aop"\r
xsi:schemaLocation="\r
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
- http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd\r
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">\r
\r
- <bean id="main" parent="slcTemplate.simpleFlow">\r
+ <bean id="main" class="org.argeo.slc.core.execution.DefaultExecutionFlow">\r
<property name="executables">\r
<list>\r
- <bean p:message="Hello World!" parent="task.echo" />\r
+ <bean p:message="Hello World!" class="org.argeo.slc.core.execution.tasks.Echo" />\r
</list>\r
</property>\r
</bean>\r
http://www.springframework.org/schema/beans \r
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
\r
- <beans:import resource="classpath:org/argeo/slc/osgi/execution/spring.xml" />\r
+ <beans:import resource="classpath:org/argeo/slc/osgi/execution.xml" />\r
</beans:beans>
\ No newline at end of file
public abstract class AbstractExecutionFlowGenerator implements
BeanFactoryPostProcessor, PriorityOrdered {
- private final static Log log = LogFactory
- .getLog(AbstractExecutionFlowGenerator.class);
+ private final Log log = LogFactory.getLog(getClass());
protected abstract Map<String, BeanDefinition> createExecutionFlowDefinitions(
ConfigurableListableBeanFactory beanFactory);
Map<String, BeanDefinition> definitions = createExecutionFlowDefinitions(beanFactory);
for (String beanName : definitions.keySet()) {
- if (log.isDebugEnabled())
+ if (log.isTraceEnabled())
log.debug("Registering execution flow " + beanName);
((BeanDefinitionRegistry) beanFactory).registerBeanDefinition(
beanName, definitions.get(beanName));
import org.springframework.validation.MapBindingResult;
public class DefaultExecutionFlow implements ExecutionFlow, InitializingBean,
- BeanNameAware, StructureAware<TreeSPath> {
+ BeanNameAware {
private final ExecutionSpec executionSpec;
private String name = null;
if (executable instanceof StructureAware) {
((StructureAware<TreeSPath>) executable).notifyCurrentPath(
registry, new TreeSPath(path));
+ } else if (executable instanceof DefaultExecutionFlow) {
+ // so we don't need to have DefaultExecutionFlow
+ // implementing StructureAware
+ DefaultExecutionFlow flow = (DefaultExecutionFlow) executable;
+ flow.setPath(path + '/' + flow.getName());
}
}
}
this.registry = registry;
}
- public void notifyCurrentPath(StructureRegistry<TreeSPath> registry,
- TreeSPath path) {
- if (this.path == null) {
- this.path = path.toString();
- }
- }
-
}
}
}
- protected Log log() {
+ private Log log() {
return log != null ? log : defaultLog;
}
- public void setLog(Log log) {
- this.log = log;
- }
-
public void setMessage(String message) {
this.message = message;
}
<bean id="slcDefault.executionResources" parent="slcTemplate.fileResources"
scope="execution" lazy-init="true">
- <aop:scoped-proxy />
+ <aop:scoped-proxy proxy-target-class="false" />
<property name="executionContext" ref="executionContext" />
</bean>
<bean id="executionStack" class="org.argeo.slc.core.execution.DefaultExecutionStack"
scope="execution">
- <aop:scoped-proxy />
+ <aop:scoped-proxy proxy-target-class="false" />
</bean>
<bean id="instantiationManager" class="org.argeo.slc.core.execution.InstantiationManager" />
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
+ xmlns:aop="http://www.springframework.org/schema/aop"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
+ http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
+
+ <description>Default Capabilities</description>
+
+ <import resource="runtime.xml" />
+
+ <bean id="executionContext" class="org.argeo.slc.core.execution.MapExecutionContext"
+ scope="execution">
+ <aop:scoped-proxy proxy-target-class="false" />
+ </bean>
+
+ <bean id="executionFlowDescriptorConverter"
+ class="org.argeo.slc.core.execution.DefaultExecutionFlowDescriptorConverter"></bean>
+
+ <bean
+ class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
+ <property name="ignoreUnresolvablePlaceholders" value="true" />
+ </bean>
+
+ <bean id="parameterRef" factory-bean="instantiationManager"
+ factory-method="createRef" abstract="true" />
+
+</beans>
\ No newline at end of file
<description>Default Capabilities</description>
<import resource="runtime.xml" />
+ <import resource="simple.xml" />
+
<import resource="specs.xml" />
<import resource="templates.xml" />
<import resource="defaults.xml" />
<import resource="utils.xml" />
<import resource="tasks/core.xml" />
- <bean id="executionContext" class="org.argeo.slc.core.execution.MapExecutionContext"
- scope="execution">
- <aop:scoped-proxy />
- </bean>
-
- <bean id="executionFlowDescriptorConverter"
- class="org.argeo.slc.core.execution.DefaultExecutionFlowDescriptorConverter"></bean>
-
- <bean
- class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
- <property name="ignoreUnresolvablePlaceholders" value="true" />
- </bean>
-
- <bean id="parameterRef" factory-bean="instantiationManager"
- factory-method="createRef" abstract="true" />
-
</beans>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"
+ xsi:schemaLocation="http://www.springframework.org/schema/osgi
+ http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+
+ <osgi:service interface="org.argeo.slc.execution.ExecutionContext"
+ ref="executionContext" />
+ <osgi:service interface="org.argeo.slc.execution.ExecutionFlowDescriptorConverter"
+ ref="executionFlowDescriptorConverter" />
+
+ <bean class="org.argeo.slc.osgi.MultipleServiceExporterPostProcessor">
+ <property name="interfaces">
+ <list>
+ <value>org.argeo.slc.execution.ExecutionFlow
+ </value>
+ </list>
+ </property>
+ </bean>
+</beans>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns:osgi="http://www.springframework.org/schema/osgi"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"
- xsi:schemaLocation="http://www.springframework.org/schema/osgi
- http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
-
- <osgi:service interface="org.argeo.slc.execution.ExecutionContext"
- ref="executionContext" />
- <osgi:service interface="org.argeo.slc.execution.ExecutionFlowDescriptorConverter"
- ref="executionFlowDescriptorConverter" />
-
- <bean class="org.argeo.slc.osgi.MultipleServiceExporterPostProcessor">
- <property name="interfaces">
- <list>
- <value>org.argeo.slc.execution.ExecutionFlow
- </value>
- </list>
- </property>
- </bean>
-</beans>
\ No newline at end of file