archive

Why GIT reports “fatal: This operation must be run in a work tree” when exporting from bare repo?

纵然是瞬间 提交于 2019-12-22 09:56:34
问题 if I export from bare GIT repository using git archive command I get error message: "fatal: This operation must be run in a work tree", altough the export passes properly. So my question is: Is there any issue when exporting from bare repository? I checked the exported archive and it looks alright. 回答1: I don't actually get that warning - I'm fairly certain it was a bug which was resolved sometime after the version you're using. I can't tell exactly when, because I haven't even managed to

Import Android APK archive?

流过昼夜 提交于 2019-12-22 07:07:16
问题 Can an Android APK archive be imported into another Android project and accessed the same way as a JAR archive can? 回答1: No not in the way you would use a jar. If you have a java library that you want to import into your project you can simply add it as in any other java project. If you have the project files of an app that you want to integrate in you application you can create an android library project out of this app. This enables you to build a R file for the layout objects and drawables

How to identify a zip file in java?

天涯浪子 提交于 2019-12-22 06:49:59
问题 I want to identify my archive whether it is zip or rar . But the problem I get runtime error before I can validate my file. I want to create custom notification: public class ZipValidator { public void validate(Path pathToFile) throws IOException { try { ZipFile zipFile = new ZipFile(pathToFile.toFile()); String zipname = zipFile.getName(); } catch (InvalidZipException e) { throw new InvalidZipException("Not a zip file"); } } } At the moment I have runtime error: java.util.zip.ZipException:

Xcode's 4.3.2 Organizer freezes whenever I click the “Archives” tab

人走茶凉 提交于 2019-12-22 04:27:07
问题 I tried to archive a project in order to upload it to TestFlight. However, when I opened Organizer to export my archive as an ipa, it froze as soon as I clicked the "Archives" tab. I tried to create another user, same problem. I tried to remove the content of the archives folder, same as well. Xcode is now completely unresponsive, and Activity Monitor show a "bash" process taking about 40% of processor. Any idea? Thanks. 回答1: This is the answer to the problem! From terminal execute this xcode

TAR encode/decode library for iPhone (ideally cocoa) [closed]

左心房为你撑大大i 提交于 2019-12-22 03:56:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Does anyone know of any library/code that will enable me to encode and decode .tar formatted data - that I can use in my iPhone project (preferably cocoa) Thanks in advance Craig UPDATE: I've taken a look at the suggested libraries and come to the conclusion that they are making waaaay to much of the problem -

Error in generating Archives

╄→尐↘猪︶ㄣ 提交于 2019-12-21 21:58:31
问题 I m using Xcode 4.2 and i have add AviarySDK 2.4.4 in my project. Application runs fine in Simulator 5.0 and 4.3. I also test it on device having ios 4.1. So i want to generate .ipa file for my client. But by some reason it can not generate Archives. It gives following error "/usr/bin/strip -S /Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources -o /Users/User/Library/Developer/Xcode/DerivedData/WDYWT-avjpbcnwjylobvgevipvsqttnopd

How to check if it is a file or folder for an archive in python?

耗尽温柔 提交于 2019-12-21 15:38:33
问题 I have an archive which I do not want to extract but check for each of its contents whether it is a file or a directory. os.path.isdir and os.path.isfile do not work because I am working on archive. The archive can be anyone of tar,bz2,zip or tar.gz(so I cannot use their specific libraries). Plus, the code should work on any platform like linux or windows. Can anybody help me how to do it? 回答1: You've stated that you need to support "tar, bz2, zip or tar.gz". Python's tarfile module will

How can I tar files larger than physical memory using Perl's Archive::Tar?

北城余情 提交于 2019-12-21 12:25:40
问题 I'm using Perl's Archive::Tar module. Problem with it is it pulls everything on to the memory and the does archiving and then writes on to the file system so there is limitation on the maximum file size that can be archived. Most of the times it says out of memory. In case of GNU tar, it takes chunk of file, archives it and writes it on to the memory so it can handle files of any size. How can I do that using Perl's Archive::Tar module. 回答1: It looks like there is a different module that

Creating a tar.gz archive with Maven

半世苍凉 提交于 2019-12-21 07:30:46
问题 I have a Maven project, where under src/main directory there is a sub dir called output. this folder needs to be packaged into tar.gz. when using the assembly plugin as follows: From the pom.xml: <build> <finalName>front</finalName> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-5</version> <configuration> <descriptors> <descriptor>src/main/assembly/assembly.xml</descriptor> </descriptors> </configuration> </plugin> </plugins> </build> the assembly.xml:

Creating a zip file with some files on SDCard

最后都变了- 提交于 2019-12-20 12:37:19
问题 As I posted a question a few days ago, I realized thet the stock eMail app couldn't send multiple files in attachment: https://stackoverflow.com/questions/5773006/sending-email-with-multiple-attachement-fail-with-default-email-android-app-but Unfortunately, I got no answer on it, so need to find a workaround. The user has to select in a list some pdf and send them by email with stock app. As the multiple attachment fail, I will create a zip file with all the requested files and sent this