Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot extract contents of Renjin 3.5 beta76 archive #568

Open
DarkTyger opened this issue Dec 19, 2023 · 0 comments
Open

Cannot extract contents of Renjin 3.5 beta76 archive #568

DarkTyger opened this issue Dec 19, 2023 · 0 comments

Comments

@DarkTyger
Copy link

DarkTyger commented Dec 19, 2023

Steps

  1. On Windows, have Gradle 8.5 download the following file:

    \path\to\.gradle\caches\modules-2\files-2.1\org.renjin\methods\3.5-beta76\87e8669db799c211343fd0e9ed6177b88d7f3a20\methods-3.5-beta76.jar
    
  2. With BellSoft's openjdk version 21.0.1, extract the JAR file:

    jar -xvf \path\to\.gradle\caches\modules-2\files-2.1\org.renjin\methods\3.5-beta76\87e8669db799c211343fd0e9ed6177b88d7f3a20\methods-3.5-beta76.jar 
    

Expected

No error extracting the JAR file.

Actual

Error:

java.io.FileNotFoundException: org\renjin\methods\$$.__T__body<-:base.RData (The filename, directory name, or volume label syntax is incorrect)
        at java.base/java.io.FileOutputStream.open0(Native Method)
        at java.base/java.io.FileOutputStream.open(FileOutputStream.java:289)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:230)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at jdk.jartool/sun.tools.jar.Main.copy(Main.java:1297)
        at jdk.jartool/sun.tools.jar.Main.extractFile(Main.java:1475)
        at jdk.jartool/sun.tools.jar.Main.extract(Main.java:1385)
        at jdk.jartool/sun.tools.jar.Main.run(Main.java:390)
        at jdk.jartool/sun.tools.jar.Main.main(Main.java:1702)

Details

The file name in the JAR file looks problematic for a few reasons. First, there's a :, which I believe isn't allowed on Windows. Second, there's a <, which is typically reserved for redirecting standard input and probably best avoided as part of a file name (at the very least, it may be lead to scripting errors).

Question

How would you produce a .jar file with Windows-friendly file names?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant