]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - lib/org.argeo.slc.lib.repo/META-INF/spring/importZip.xml
Add a template for an SLC execution to import a new distribution as a Zip in a repository
[gpl/argeo-slc.git] / lib / org.argeo.slc.lib.repo / META-INF / spring / importZip.xml
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