changeset 0:ea529a96b534 draft default tip

Uploaded
author aafc-mbb
date Thu, 21 Apr 2016 17:15:48 -0400
parents
children
files tool_dependencies.xml
diffstat 1 files changed, 40 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml	Thu Apr 21 17:15:48 2016 -0400
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<tool_dependency>
+    <package name="Kurator_Package" version="0.0.1">
+        <install version="1.0">
+            <actions>
+            	<!-- Download kurator-akka.jar -->
+                <action type="download_by_url" target_filename="kurator-akka.jar">https://github.com/kurator-org/kurator-akka/releases/download/v0.3/kurator-akka-0.3-jar-with-dependencies.jar</action>
+		<action type="move_file">
+                    <source>kurator-akka.jar</source>
+                    <destination>$INSTALL_DIR</destination>
+                </action>
+                
+                <!-- Download kurator-validation package and unzip -->
+                <action type="download_by_url" target_filename="kurator-validation.jar">https://github.com/kurator-org/kurator-validation/archive/v0.3.zip</action>
+                <action type="shell_command">unzip kurator-validation.jar</action>
+                <action type="move_directory_files">
+                    <source_directory>kurator-validation-0.3</source_directory>
+                    <destination_directory>$INSTALL_DIR/kurator-validation</destination_directory>
+                </action>
+                <action type="set_environment">
+                    <environment_variable name="JYTHONPATH" action="set_to">$INSTALL_DIR/kurator-validation/packages/</environment_variable>
+                </action>
+                
+                <!-- Install and configure jython -->
+                <action type="download_by_url" target_filename="jython-installer-2.7.0.jar">http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7.0/jython-installer-2.7.0.jar</action>
+                <action type="shell_command">java -jar jython-installer-2.7.0.jar -s -d \$INSTALL_DIR/jython</action>
+                <action type="set_environment">
+                    <environment_variable name="JYTHONHOME" action="set_to">$INSTALL_DIR/jython</environment_variable>
+                </action>
+                <action type="shell_command">\$INSTALL_DIR/jython/bin/pip install suds-jurko</action>
+                
+                <!-- Set an environment to reference installed files-->
+                <action type="set_environment">
+                    <environment_variable name="JAR_PATH" action="set_to">$INSTALL_DIR</environment_variable>
+                </action>
+
+            </actions>
+        </install>
+    </package>
+</tool_dependency>