xenon-middleware / xenon-cli

Perform files and jobs operations with Xenon library from command line
http://nlesc.github.io/Xenon/
Apache License 2.0
2 stars 3 forks source link

local file copy with relative paths returns error #18

Closed jspaaks closed 7 years ago

jspaaks commented 7 years ago
~/tmp$ ls -l
total 24
-rw-rw-r-- 1 daisycutter daisycutter 1024 2017-07-27 14:23 testfile1024.txt
-rw-rw-r-- 1 daisycutter daisycutter    0 2017-07-27 14:02 testfile.txt
drwxrwxr-x 3 daisycutter daisycutter 4096 2017-07-31 13:34 thedir
~/tmp$ xenon file copy testfile.txt textfile.copy.txt
usage: xenon file copy [-h] [--recursive] [--overwrite | --ignore] source_path [target_location] target_path
xenon: error: argument target-path: Cannot write parent of file: 'textfile.copy.txt'
jspaaks commented 7 years ago

wait! still have to update some deps I think...

jspaaks commented 7 years ago
~/tmp$ rm -rf ~/.gradle/
~/tmp$ git clone https://github.com/NLeSC/xenon-cli.git
Cloning into 'xenon-cli'...
remote: Counting objects: 1705, done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 1705 (delta 39), reused 136 (delta 28), pack-reused 1550
Receiving objects: 100% (1705/1705), 291.56 KiB | 0 bytes/s, done.
Resolving deltas: 100% (702/702), done.
Checking connectivity... done.
~/tmp$ cd xenon-cli/
~/tmp/xenon-cli$ ./gradlew installDist
Downloading https://services.gradle.org/distributions/gradle-4.0-all.zip
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /home/daisycutter/.gradle/wrapper/dists/gradle-4.0-all/ac27o8rbd0ic8ih41or9l32mv/gradle-4.0-all.zip to /home/daisycutter/.gradle/wrapper/dists/gradle-4.0-all/ac27o8rbd0ic8ih41or9l32mv
Set executable permissions for: /home/daisycutter/.gradle/wrapper/dists/gradle-4.0-all/ac27o8rbd0ic8ih41or9l32mv/gradle-4.0/bin/gradle
Starting a Gradle Daemon (subsequent builds will be faster)
Download https://plugins.gradle.org/m2/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.pom
Download https://plugins.gradle.org/m2/gradle/plugin/org/unbroken-dome/gradle-plugins/gradle-testsets-plugin/1.4.1/gradle-testsets-plugin-1.4.1.pom
Download https://plugins.gradle.org/m2/gradle/plugin/com/palantir/gradle/docker/gradle-docker/0.13.0/gradle-docker-0.13.0.pom
Download https://plugins.gradle.org/m2/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.5/sonarqube-gradle-plugin-2.5.pom
Download https://plugins.gradle.org/m2/org/codehaus/groovy/groovy-backports-compat23/2.4.4/groovy-backports-compat23-2.4.4.pom
Download https://plugins.gradle.org/m2/org/sonarsource/scanner/api/sonar-scanner-api/2.9.0.887/sonar-scanner-api-2.9.0.887.pom
Download https://plugins.gradle.org/m2/org/sonarsource/scanner/api/sonar-scanner-api-parent/2.9.0.887/sonar-scanner-api-parent-2.9.0.887.pom
Download https://plugins.gradle.org/m2/org/sonarsource/parent/parent/40/parent-40.pom
Download https://plugins.gradle.org/m2/com/google/guava/guava/18.0/guava-18.0.pom
Download https://plugins.gradle.org/m2/com/google/guava/guava-parent/18.0/guava-parent-18.0.pom
Download https://plugins.gradle.org/m2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Download https://plugins.gradle.org/m2/gradle/plugin/org/unbroken-dome/gradle-plugins/gradle-testsets-plugin/1.4.1/gradle-testsets-plugin-1.4.1.jar
Download https://plugins.gradle.org/m2/gradle/plugin/com/palantir/gradle/docker/gradle-docker/0.13.0/gradle-docker-0.13.0.jar
Download https://plugins.gradle.org/m2/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.5/sonarqube-gradle-plugin-2.5.jar
Download https://plugins.gradle.org/m2/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.jar
Download https://plugins.gradle.org/m2/org/codehaus/groovy/groovy-backports-compat23/2.4.4/groovy-backports-compat23-2.4.4.jar
Download https://plugins.gradle.org/m2/com/google/guava/guava/18.0/guava-18.0.jar
Download https://plugins.gradle.org/m2/org/sonarsource/scanner/api/sonar-scanner-api/2.9.0.887/sonar-scanner-api-2.9.0.887.jar
Download https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.pom
Download https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.1/gson-2.8.1.pom
Download https://repo1.maven.org/maven2/net/sourceforge/argparse4j/argparse4j/0.7.0/argparse4j-0.7.0.pom
Download https://repo1.maven.org/maven2/org/slf4j/slf4j-parent/1.7.25/slf4j-parent-1.7.25.pom
Download https://repo1.maven.org/maven2/com/google/code/gson/gson-parent/2.8.1/gson-parent-2.8.1.pom
Download https://jitpack.io/com/github/NLeSC/Xenon/master-SNAPSHOT/maven-metadata.xml
Download https://jitpack.io/com/github/NLeSC/Xenon/master-SNAPSHOT/Xenon-master-1.2.3-g2b401a6-194.pom
Download https://repo1.maven.org/maven2/org/apache/sshd/sshd-core/1.4.0/sshd-core-1.4.0.pom
Download https://repo1.maven.org/maven2/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.pom
Download https://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabbit-webdav/2.14.2/jackrabbit-webdav-2.14.2.pom
Download https://repo1.maven.org/maven2/commons-net/commons-net/3.3/commons-net-3.3.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/30/commons-parent-30.pom
Download https://repo1.maven.org/maven2/org/apache/apache/13/apache-13.pom
Download https://repo1.maven.org/maven2/org/apache/sshd/sshd/1.4.0/sshd-1.4.0.pom
Download https://repo1.maven.org/maven2/org/apache/apache/15/apache-15.pom
Download https://repo1.maven.org/maven2/joda-time/joda-time/2.8.1/joda-time-2.8.1.pom
Download https://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabbit-parent/2.14.2/jackrabbit-parent-2.14.2.pom
Download https://repo1.maven.org/maven2/ch/qos/logback/logback-core/1.0.11/logback-core-1.0.11.pom
Download https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.0.11/logback-classic-1.0.11.pom
Download https://repo1.maven.org/maven2/ch/qos/logback/logback-parent/1.0.11/logback-parent-1.0.11.pom
Download https://repo1.maven.org/maven2/commons-codec/commons-codec/1.2/commons-codec-1.2.pom
Download https://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3.pom
Download https://repo1.maven.org/maven2/org/slf4j/jcl-over-slf4j/1.7.4/jcl-over-slf4j-1.7.4.pom
Download https://repo1.maven.org/maven2/org/slf4j/slf4j-parent/1.7.4/slf4j-parent-1.7.4.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.5.3/httpcomponents-client-4.5.3.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/project/7/project-7.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6.pom
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.4.6/httpcomponents-core-4.4.6.pom
Download https://repo1.maven.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/35/commons-parent-35.pom
Download https://repo1.maven.org/maven2/commons-logging/commons-logging/1.2/commons-logging-1.2.pom
Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/34/commons-parent-34.pom
Download https://repo1.maven.org/maven2/net/sourceforge/argparse4j/argparse4j/0.7.0/argparse4j-0.7.0.jar
Download https://repo1.maven.org/maven2/org/apache/sshd/sshd-core/1.4.0/sshd-core-1.4.0.jar
Download https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.1/gson-2.8.1.jar
Download https://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabbit-webdav/2.14.2/jackrabbit-webdav-2.14.2.jar
Download https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.0.11/logback-classic-1.0.11.jar
Download https://repo1.maven.org/maven2/org/slf4j/jcl-over-slf4j/1.7.4/jcl-over-slf4j-1.7.4.jar
Download https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
Download https://repo1.maven.org/maven2/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
Download https://repo1.maven.org/maven2/joda-time/joda-time/2.8.1/joda-time-2.8.1.jar
Download https://repo1.maven.org/maven2/commons-net/commons-net/3.3/commons-net-3.3.jar
Download https://jitpack.io/com/github/NLeSC/Xenon/master-SNAPSHOT/Xenon-master-1.2.3-g2b401a6-194.jar
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3.jar
Download https://repo1.maven.org/maven2/ch/qos/logback/logback-core/1.0.11/logback-core-1.0.11.jar
Download https://repo1.maven.org/maven2/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6.jar
Download https://repo1.maven.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar

BUILD SUCCESSFUL in 21s
4 actionable tasks: 4 executed
~/tmp/xenon-cli$ cd build/install/xenon/bin/
~/tmp/xenon-cli/build/install/xenon/bin$ ls -1
xenon
xenon.bat
~/tmp/xenon-cli/build/install/xenon/bin$ ./xenon file copy xenon.bat xenon.bak
usage: xenon file copy [-h] [--recursive] [--overwrite | --ignore] source_path [target_location] target_path
xenon: error: argument target-path: Cannot write parent of file: 'xenon.bak'
./xenon file copy xenon.bat /tmp/xenon.bak

works as expected btw