Why after extract zip by 7-zip, then all file come into root directory - command

My zip file like this above:
D:\TEST.zip
and the Architecture in the zip is:
a.jar
lib
└───b.jar
I use the following command to unzip file
7z e D:\TEST.zip
but I get this
a.jar
b.jar
lib
Why all the file are move into the root directory?

Because that is the default behavior for the command line extraction. You need to include a switch to keep the folder structure:
7z e -r D:\TEST.zip

Related

source_sink `appl' does not exist

I have this line in a project (the project was not created by me, but it is a university project)
:- [appl], assert(max_id(333)).
when i try to compile in eclipse with the ProDT plugin it gives me this error:
source_sink `appl' does not exist
What does the line of code mean? And what about the error now?
Assuming a appl.pl file does exists in the project, most likely your current directory is not the directory of the file. Either use a full path to load the file (e.g. ['/full/path/to/appl']) or change directory first to the directory of the file (using the cd/1 predicate; e.g. cd('/some/path/'), [appl]).
To find the current directory, use the pwd/0 predicate:
?- pwd.

Importing a Swift file into another which are in different directories

I am new to swift and I want to use a function which in a.swift in b.swift. a.swift, b.swift are in directory dir1 & dir2. dir1 & dir2 are in same directory.
If you are doing it in iOS project then there is no need to import class/struct from other file which is inside any subdirectory inside project root directory . They are automatic available to use .

uDeploy does not include all sub-folders (wildcard not working)

On my uDeploy process, I created .zip file step.
After downloading artifacts, I want uDeploy to zip all files under base directory.
Base directory structure:
archive
sites
bin
*All binaries required*
Include option is set for **/* and I assume this wildcard should include all subdirectories to archive (.zip)
But after I run the process, I am getting following warning:
Working Directory: E:\CustomerFtp\Rel_1.0_20160418_122247\Artifacts
Base Directory: E:\CustomerFtp\Rel_1.0_20160418_122247\Artifacts\Archive
Zip file name: CustomerFtp.Archive.zip
Include: **/*
Exclude:
Update : false
Follow Symlinks: false
Case Sensitive: false
=================================
[zip] Warning: skipping zip archive E:\CustomerFtp\Rel_1.0_20160418_122247\Artifacts\CustomerFtp.Archive.zip because no files were included.
Am I missing something?
It is a sort of stupid, but even on Windows, looks like folder paths are case-sensitive for uDeploy.
So, I had to change folder name from archive to Archive, and problem get fixed.

How can I make ExtUtils::Manifest include empty directories?

I am trying to build a Perl module for distribution. The directory structure looks like this:
demo
demo/files
demo/examples/example1.pl
demo/scripts
lib
I used this command to generate the MANIFEST file:
perl -e "use ExtUtils::Manifest qw(mkmanifest); mkmanifest();"
The file is created but all of the empty folders are ignored, so demo/files and demo/scripts are not in the MANIFEST.
How can I tell ExtUtils::Manifest to include empty folders?
Create a zero byte file called .exists in the otherwise empty directories.

How do I Extract Files Into Jar Files with Command Prompt on Windows 7?

I want to extract files into a jar file, any way I can do it with command prompt?
To insert / compress files into a jar (foobar.jar)
jar cvf foobar.jar foo.txt bar.txt
to extract all of them
jar xvf foobar.jar
to extract only foo.txt for example
jar xvf foobar.jar foo.txt