|
From: <li...@us...> - 2008-06-24 20:03:15
|
Revision: 2054
http://cogkit.svn.sourceforge.net/cogkit/?rev=2054&view=rev
Author: liuwt
Date: 2008-06-24 13:02:01 -0700 (Tue, 24 Jun 2008)
Log Message:
-----------
Added Paths:
-----------
trunk/current/src/cog/modules/transfer-gui/src/scripts/
trunk/current/src/cog/modules/transfer-gui/src/scripts/build.xml
trunk/current/src/cog/modules/transfer-gui/src/scripts/gui.bat
trunk/current/src/cog/modules/transfer-gui/src/scripts/gui.sh
Added: trunk/current/src/cog/modules/transfer-gui/src/scripts/build.xml
===================================================================
--- trunk/current/src/cog/modules/transfer-gui/src/scripts/build.xml (rev 0)
+++ trunk/current/src/cog/modules/transfer-gui/src/scripts/build.xml 2008-06-24 20:02:01 UTC (rev 2054)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="IGTFScratcher" default="run" basedir=".">
+ <property name="dist_base_name" value="igtf-policy-installation-bundle-1.22"/>
+ <property name="dist_package_name" value="${dist_base_name}.tar.gz"/>
+ <property name="IGTFDist" value="https://dist.eugridpma.info/distribution/igtf/current/accredited/${dist_package_name}"/>
+ <property name="tmp_file" value="tmf_file"/>
+ <property name="home_dir" value="${user.home}"/>
+ <property name="root_home" value="/root"/>
+ <property name="cert_files" value="${dist_base_name}/src/accredited/"/>
+
+
+ <!-- add support for "Ant-Contrib" -->
+ <!-- this resource is searched from CLASSPATH -->
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties">
+ <classpath>
+ <pathelement location="./gridftpgui_lib/ant-contrib-1.0b3.jar"/>
+ </classpath>
+ </taskdef>
+
+ <target name="downloadIGTFDist">
+ <get src="${IGTFDist}" dest="${JWSCacheDir}/${dist_package_name}"/>
+ </target>
+
+ <target name="decompressDist">
+ <gunzip src="${JWSCacheDir}/${dist_package_name}" dest="${JWSCacheDir}/${tmp_file}"/>
+ <untar src="${JWSCacheDir}/${tmp_file}" dest="${JWSCacheDir}/"/>
+ </target>
+
+ <target name="run" depends="downloadIGTFDist, decompressDist">
+ <if>
+ <!-- UNIX-like system -->
+ <os family="unix"/>
+ <then>
+ <if>
+ <!-- root user -->
+ <equals arg1="${home_dir}" arg2="${root_home}"/>
+ <then>
+ <copy todir="/etc/grid-security/certificates/">
+ <fileset dir="${cert_files}"/>
+ </copy>
+ </then>
+
+ <!-- non-root user -->
+ <else>
+ <copy todir="${home_dir}/.globus/certificates/">
+ <fileset dir="${cert_files}"/>
+ </copy>
+ </else>
+ </if>
+ </then>
+
+ <!-- Windows System -->
+ <else>
+ <copy todir="${home_dir}/.globus/certificates/">
+ <fileset dir="${cert_files}"/>
+ </copy>
+ </else>
+ </if>
+ </target>
+
+
+</project>
\ No newline at end of file
Added: trunk/current/src/cog/modules/transfer-gui/src/scripts/gui.bat
===================================================================
--- trunk/current/src/cog/modules/transfer-gui/src/scripts/gui.bat (rev 0)
+++ trunk/current/src/cog/modules/transfer-gui/src/scripts/gui.bat 2008-06-24 20:02:01 UTC (rev 2054)
@@ -0,0 +1,19 @@
+@echo off
+
+if "%GLOBUS_LOCATION%" == "" goto nogl
+goto run
+
+:nogl
+
+ echo Error: GLOBUS_LOCATION not set
+ goto end
+
+:run
+
+ set _RUNJAVA=java
+ if not "%JAVA_HOME%" == "" set _RUNJAVA="%JAVA_HOME%\bin\java"
+ %_RUNJAVA% -DGLOBUS_LOCATION="%GLOBUS_LOCATION%" -Daxis.ClientConfigFile="%GLOBUS_LOCATION%"\client-config.wsdd -jar gui.jar
+
+:end
+
+
\ No newline at end of file
Added: trunk/current/src/cog/modules/transfer-gui/src/scripts/gui.sh
===================================================================
--- trunk/current/src/cog/modules/transfer-gui/src/scripts/gui.sh (rev 0)
+++ trunk/current/src/cog/modules/transfer-gui/src/scripts/gui.sh 2008-06-24 20:02:01 UTC (rev 2054)
@@ -0,0 +1,14 @@
+# !/bin/sh
+
+if [ ! -d "$GLOBUS_LOCATION" ] then
+ echo "Error: GLOBUS_LOCATION invalid or not set: $GLOBUS_LOCATION" 1>&2
+ exit 1
+fi
+
+if [ "X$JAVA_HOME" = "X" ] then
+ _RUNJAVA=java
+else
+ _RUNJAVA="$JAVA_HOME"/bin/java
+fi
+
+exec $_RUNJAVA -Daxis.ClientConfigFile="$GLOBUS_LOCATION"\client-config.wsdd -jar gui.jar
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|