org.springframework.osgi.extender,\
org.argeo.slc.support.equinox,\
org.argeo.slc.agent,\
-org.argeo.slc.agent.jmx
-com.sun.management.jmxremote=
+org.argeo.slc.agent.jms
+#org.argeo.slc.agent.jmx
+#com.sun.management.jmxremote=
org.springframework.osgi.extender,
org.argeo.server.ads.server,
org.argeo.slc.server.hsqldb,
+ org.argeo.slc.server.jcr,
org.argeo.slc.server.main,
org.argeo.slc.ria
</argeo.osgi.start>
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/aop http://www.springframework.org/schema/aop/spring-aop-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" class="org.argeo.slc.core.execution.DefaultExecutionFlow">\r
<property name="executables">\r
</property>\r
</bean>\r
\r
-</beans>
\ No newline at end of file
+--></beans>
\ No newline at end of file
IFile propertiesFile = (IFile) configuration.getMappedResources()[0];
propertiesFile.getParent().refreshLocal(IResource.DEPTH_INFINITE,
monitor);
-// propertiesFile.getProject().refreshLocal(IResource.DEPTH_INFINITE,
-// monitor);
+ // propertiesFile.getProject().refreshLocal(IResource.DEPTH_INFINITE,
+ // monitor);
}
@Override
wc.doSave();
super.preLaunchCheck(configuration, launch, monitor);
+
+ // Note that if a Java project contains a build.properties it has to
+ // declare the sources otherwise it will be skipped in the generation of
+ // the dev.properties file!
+
+ // for(Object bundleId:fAllBundles.keySet()){
+ // System.out.println(bundleId+"="+fAllBundles.get(bundleId));
+ // }
}
}
http://www.springframework.org/schema/beans \r
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
\r
+ <service interface="org.argeo.slc.dao.process.SlcExecutionDao"\r
+ ref="slcExecutionDao" />\r
+\r
<service interface="org.argeo.slc.dao.test.tree.TreeTestResultDao"\r
ref="testResultDao" />\r
<service interface="org.argeo.slc.dao.test.tree.TreeTestResultCollectionDao"\r
ref="testResultCollectionDao" />\r
<service interface="org.argeo.slc.dao.test.TestRunDescriptorDao"\r
ref="testRunDescriptorDao" />\r
- <service interface="org.argeo.slc.dao.process.SlcExecutionDao"\r
- ref="slcExecutionDao" />\r
<service interface="org.argeo.slc.dao.runtime.SlcAgentDescriptorDao"\r
ref="slcAgentDescriptorDao" />\r
\r
Bundle-Version: 0.12.2.SNAPSHOT
Bundle-SymbolicName: org.argeo.slc.server.jcr
Bundle-Name: Server JCR
+Import-Package: javax.jcr,
+ org.argeo.jcr,
+ org.argeo.server.jackrabbit,
+ org.argeo.slc.core.execution,
+ org.argeo.slc.dao.process,
+ org.argeo.slc.execution,
+ org.argeo.slc.jcr.dao,
+ org.argeo.slc.process,
+ org.springframework.beans.factory.config,
+ org.springframework.osgi.util
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans:beans xmlns="http://www.springframework.org/schema/osgi"\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"\r
+ xsi:schemaLocation="http://www.springframework.org/schema/osgi \r
+ http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
+ http://www.springframework.org/schema/beans \r
+ http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
+\r
+ <service interface="org.argeo.slc.dao.process.SlcExecutionDao"\r
+ ref="slcExecutionDao" />\r
+ <!-- \r
+ <service interface="org.argeo.slc.dao.test.tree.TreeTestResultDao"\r
+ ref="testResultDao" />\r
+ <service interface="org.argeo.slc.dao.test.tree.TreeTestResultCollectionDao"\r
+ ref="testResultCollectionDao" />\r
+ <service interface="org.argeo.slc.dao.test.TestRunDescriptorDao"\r
+ ref="testRunDescriptorDao" />\r
+ <service interface="org.argeo.slc.dao.runtime.SlcAgentDescriptorDao"\r
+ ref="slcAgentDescriptorDao" />\r
+\r
+ <reference id="sessionFactory" interface="org.hibernate.SessionFactory" />\r
+ -->\r
+</beans:beans>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
+\r
+ <bean\r
+ class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">\r
+ <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />\r
+ <property name="ignoreUnresolvablePlaceholders" value="true" />\r
+ </bean>\r
+\r
+ <bean id="beanNodeMapper" class="org.argeo.jcr.BeanNodeMapper">\r
+ <property name="classLoader">\r
+ <bean class="org.springframework.osgi.util.BundleDelegatingClassLoader"\r
+ factory-method="createBundleClassLoaderFor">\r
+ <constructor-arg>\r
+ <bean factory-bean="bundleContext" factory-method="getBundle" />\r
+ </constructor-arg>\r
+ </bean>\r
+ </property>\r
+ </bean>\r
+\r
+ <bean id="slcExecutionDao" class="org.argeo.slc.jcr.dao.SlcExecutionDaoJcr"\r
+ init-method="init">\r
+ <property name="session" ref="argeo.jcr.session.inMemory" />\r
+ <property name="beanNodeMapper" ref="beanNodeMapper"/>\r
+ </bean>\r
+\r
+ <bean id="argeo.jcr.session.inMemory" factory-bean="argeo.jcr.repository.inMemory"\r
+ factory-method="login" destroy-method="logout">\r
+ <constructor-arg>\r
+ <bean class="javax.jcr.SimpleCredentials">\r
+ <constructor-arg value="demo" />\r
+ <constructor-arg value="demo" />\r
+ </bean>\r
+ </constructor-arg>\r
+ </bean>\r
+\r
+ <bean id="argeo.jcr.repository.inMemory" class="org.argeo.server.jackrabbit.JackrabbitContainer">\r
+ <property name="homeDirectory" value="${java.io.tmpdir}/jackrabbit-slc-unit" />\r
+ <property name="configuration"\r
+ value="classpath:/org/argeo/server/jackrabbit/repository-inMemory.xml" />\r
+ </bean>\r
+\r
+</beans>
\ No newline at end of file
org.argeo.slc.support.castor,\
com.springsource.javax.xml.stream,\
com.springsource.org.apache.xerces
+source.. = src/main/java/,\
+ src/main/resources/,\
+ src/test/java/,\
+ src/test/resources/
\ No newline at end of file
import javax.jcr.query.QueryManager;
import javax.jcr.query.QueryResult;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.argeo.jcr.BeanNodeMapper;
import org.argeo.jcr.JcrUtils;
import org.argeo.slc.SlcException;
import org.argeo.slc.process.SlcExecutionStep;
public class SlcExecutionDaoJcr implements SlcExecutionDao {
+ private final static Log log = LogFactory.getLog(SlcExecutionDaoJcr.class);
private Session session;
private Workspace workspace;
private QueryManager queryManager;
}
public void create(SlcExecution slcExecution) {
+ if (log.isDebugEnabled())
+ log.debug("create");
+
try {
beanNodeMapper.save(getSession(), basePath(slcExecution),
slcExecution);
}
public SlcExecution getSlcExecution(String uuid) {
+ if (log.isDebugEnabled())
+ log.debug("getSlcExecution");
+
try {
// TODO: optimize query
String queryString = "//process[@uuid='" + uuid + "']";
}
public List<SlcExecution> listSlcExecutions() {
+ if (log.isDebugEnabled())
+ log.debug("listSlcExecutions");
+
List<SlcExecution> res = new ArrayList<SlcExecution>();
// TODO: optimize query
String queryString = "//process";
}
public void update(SlcExecution slcExecution) {
+ if (log.isDebugEnabled())
+ log.debug("update");
+
// TODO: optimize query
String queryString = "//process[@uuid='" + slcExecution.getUuid()
+ "']";
Query query = queryManager.createQuery(queryString, Query.XPATH);
Node node = JcrUtils.querySingleNode(query);
beanNodeMapper.update(node, slcExecution);
+ session.save();
} catch (Exception e) {
throw new SlcException("Cannot update " + slcExecution, e);
}