You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I was trying to get Scene Builder into npm registry via JDeploy, the command jdeploy init failed with an exception java.util.zip.ZipException and the file package.json was not created.
Expected Behavior
the error message ideally shows more detail, e.g. in which phase at which step something broke (e.g. the JAR file name during scanning for manifests) so that its a little bit easier to figure this out.
The init process probably could continue, but JDeploy should inform (or warn) the user that one of the detected JAR files is broken
JDeploy would not scan src/test/resources folders for JARs
Current Behavior
The user will either see a dialog with an error message or read the exception message in the CLI.
Also JDeploy scanned all folders of the project, including resource directories, which in case for the tests, contained illegal JAR files.
Steps to Reproduce
md test
cd test
touch Empty.jar
jdeploy init
or:
md test
cd test
echo TEST > Broken.jar
jdeploy init
Both cases will fail. The important thing is, the JAR must be somehow broken.
The problematic method is JDeploy.findJarCandidates(). The exception is raised at the attempt to open the 0-byte file with new JarFile(f).getManifest().
Your Environment
JDK20, Win10
NPM 9.5.0
jdeploy@4.0.20
The text was updated successfully, but these errors were encountered:
Its just a dummy, just needed for one test a Jar file. It doesnt need to be a true JAR in that case, However, files can get broken.
As with jdeploy@4.0.20, it scans the root dir of a project and the subdirs.
As I was trying to get Scene Builder into npm registry via JDeploy, the command
jdeploy init
failed with an exceptionjava.util.zip.ZipException
and the filepackage.json
was not created.Expected Behavior
src/test/resources
folders for JARsCurrent Behavior
The user will either see a dialog with an error message or read the exception message in the CLI.
Also JDeploy scanned all folders of the project, including resource directories, which in case for the tests, contained illegal JAR files.
Steps to Reproduce
or:
Both cases will fail. The important thing is, the JAR must be somehow broken.
The problematic method is
JDeploy.findJarCandidates()
. The exception is raised at the attempt to open the 0-byte file withnew JarFile(f).getManifest()
.Your Environment
The text was updated successfully, but these errors were encountered: