Add a template for an SLC execution to import a new distribution as a Zip in a repository
authorBruno Sinou <bsinou@argeo.org>
Sun, 30 Jun 2013 14:57:38 +0000 (14:57 +0000)
committerBruno Sinou <bsinou@argeo.org>
Sun, 30 Jun 2013 14:57:38 +0000 (14:57 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@6373 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

demo/slc_demo_rap.properties
lib/org.argeo.slc.lib.repo/META-INF/spring/importZip.xml [new file with mode: 0644]
lib/org.argeo.slc.lib.repo/META-INF/spring/osgi.xml

index 2a5dc9f6bafc4ef0f0919584701e5909fc16e471..82d16182a22f56319a097e9c3355143d8bee6070 100644 (file)
@@ -38,6 +38,12 @@ org.argeo.security.ui.initialPerspective=org.argeo.slc.client.ui.dist.anonymousD
 
 argeo.server.tomcat.config=conf/default-server-ssl.xml
 
+# override ports to run the demo as a server
+#argeo.server.port.http=9070
+#argeo.server.port.https=9073
+#argeo.server.port.ajp=9079 
+#argeo.ldap.port=19389
+
 # anonymous url: http://localhost:7070/ui/public
 # authenticated url: http://localhost:7070/ui/node
 
diff --git a/lib/org.argeo.slc.lib.repo/META-INF/spring/importZip.xml b/lib/org.argeo.slc.lib.repo/META-INF/spring/importZip.xml
new file mode 100644 (file)
index 0000000..58d44e2
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns:flow="http://www.argeo.org/schema/slc-flow" xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"\r
+       xsi:schemaLocation="\r
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
+       http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-1.2.xsd">\r
+\r
+       <!-- Import a zip to a local repository -->\r
+       <flow:flow name="importZip">\r
+               <flow:spec>\r
+                       <flow:primitive name="workspace" value="org.argeo.tp-2.1.x" />\r
+                       <flow:primitive name="groupId" value="org.argeo.tp" />\r
+                       <flow:primitive name="zipFile" value="File:///home/user/dev/libs/extLibrary-1.3.8.zip" />\r
+               </flow:spec>\r
+               <bean class="org.argeo.slc.repo.osgi.ImportBundlesZip">\r
+                       <flow:variable proxy-target-class="false" />\r
+                       <property name="workspace" value="@{workspace}" />\r
+                       <property name="groupId" value="@{groupId}" />\r
+                       <property name="zipFile" value="@{zipFile}" />\r
+                       <property name="repository" ref="javaRepository" />\r
+               </bean>\r
+       </flow:flow>\r
+</beans>
\ No newline at end of file
index 1b2b5bb330e83ad5696a8c257fa4f706089a75aa..a28d7d697856d8744bff07442edeed7b430d881e 100644 (file)
@@ -12,4 +12,7 @@
 \r
        <!-- REFERENCES -->\r
        <reference id="repositoryFactory" interface="javax.jcr.RepositoryFactory" />\r
+       <!-- TODO inject this in a cleaner way -->\r
+       <reference id="javaRepository" interface="javax.jcr.Repository"\r
+               filter="(argeo.jcr.repository.alias=java)" />\r
 </beans:beans>
\ No newline at end of file