Jar -xvf file.war doesn't overwrite all files.

Has anyone else experienced the case when a WAR file created using Netbeans is extracted (jar -xvf file.war) doesn't overwrite all the existing files in the directory with the files contained in the WAR?

Looks like it doesn't always do it or I extracted the war file in another directory and then issued the mv command to move the tree thinking it would replace all files.

Similar Messages

  • When I try to same an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!

    When I try to save an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!
    == This happened ==
    Every time Firefox opened
    == I updated to one of the firefox versions (Not sure which one it was)

    Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.

  • How to get the file size (in bytes) for all files in a directory?

    How to get the file size (in bytes) for all files in a directory?
    The following code does not work. isFile() does NOT recognize files as files but only as directories. Why?
    Furthermore the size is not retrieved correctly.
    How do I have to code it otherwise? Is there a way of not converting f-to-string-to-File again but iterate over all file objects instead?
    Thank you
    Peter
    java.io.File f = new java.io.File("D:/todo/");
    files = f.list();
    for (int i = 0; i < files.length; i++) {
    System.out.println("fn=" + files);
    if (new File(files[i]).isFile())
         System.out.println("file[" + i + "]=" + files[i] + " size=" + (new File(files[i])).length() ); }

    pstein wrote:
    ...The following code does not work. Work?! It does not even compile! Please consider posting code in the form of an SSCCE in future.
    Here is an SSCCE.
    import java.io.File;
    class ListFiles {
        public static void main(String[] args) {
            java.io.File f = new java.io.File("/media/disk");
            // provides only the file names, not the path/name!
            //String[] files = f.list();
            File[] files = f.listFiles();
            for (int i = 0; i < files.length; i++) {
                System.out.println("fn=" + files);
    if (files[i].isFile()) {
    System.out.println(
    "file[" +
    i +
    "]=" +
    files[i] +
    " size=" +
    (files[i]).length() );
    }Edit 1:
    Also, in future, when posting code, code snippets, HTML/XML or input/output, please use the code tags to retain the indentation and formatting.   To do that, select the code and click the CODE button seen on the Plain Text tab of the message posting form.  It took me longer to clean up that code and turn it into an SSCCE, than it took to +solve the problem.+
    Edited by: AndrewThompson64 on Jul 21, 2009 8:47 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Snow Leopard finder doesn't list all files on Windows 7 volumes

    From my Macbook Pro (10.6.8), I can connect to my Mac Pro, while it is running Windows 7 in Boot Camp, in order to access the Mac Pro's 6 volumes (1 Boot Camp, 5 Mac volumes). This is using SMB via Finder's 'Connect to server…' on an Airport network.
    However, Finder never displays all the files and folders on any of the Mac volumes it connects to through Windows 7. It seems to show approximately the first 18-9 files and folders, and then nothing. The same applies when I open a nested folder — it doesn't list all of its contents.
    Any ideas as to what's causing this and how I can fix it? I have searched all over but can't find any answers yet, so I'm hoping someone here has seen this before.

    Thanks for the reply, but I do have the Restore Windows box checked (see below). And the Resume features info (cnet link) only addresses how to turn the feature off, either selectively or globally. I'm simply looking for the functionality that I had with Snow Leopard and now seems to be absent. Maybe it's a bug in my Finder.

  • Finder doesn't show all files

    When I add new photos to iPhoto, they do not appear as a file or item in Finder Documents list. I thought Finder was supposed to show all files and items that you create?

    santra, use EasyFind or Find File instead. BY default, Apple's own Finder/spotlight doesn't search everywhere and doesn't find everything (Mac fanboys will tell you this is a feature and is so intelligent that some people can't understand how smart it is; I prefer to think of it as a defect).
    Easyfind is here: http://www.versiontracker.com/dyn/moreinfo/macosx/8707
    Find File is here: http://www.versiontracker.com/dyn/moreinfo/macosx/10906315
    I hope this helps you to find all your stuff.

  • Finder copy doesn't copy all files

    I have a dedicated disk for my Aperture masters, and to back this up while also defragging (according to a method described by Kevin J Doyle and Matthew Bergsma on the Aperture forum) I'm simply doing a Finder copy of the masters. I may have made a mistake when I relocated my masters a few months ago, because I put all 40,000 files in a single directory, at the "root" level of the drive.
    I've searched around to see if there is a limit to the number of items in a single directory, and saw guesses but nothing definitive.
    The problem is that when I try to copy the files, the Finder shows all 40,000 selected, but only copies 10,000 or so. I can't figure out why. If needed I can relocate the masters again into project folders, but I'm very curious why I'm seeing the partial copy.
    Rob

    I've got the same problem when copying multiple large files from the desktop to a network drive on Windows Home Server (using drag/drop). The files are about 1gb each, and if I copy more than one at a time, at least one will dissapear on the target machine. This is VERY repeatable.
    When I watch it closely, I can see temporary files for all files appear, and the number of items, and the total size reported in the copy status on the Mac are correct. In fact, it takes about the correct amount of time for the total size copied. However, when the copy is complete, some of the files on the target drive vanish. There is no error dialog, files just go poof. Dragging the missing files again works, as long as no more than one is copied at a time.
    A test with a few small files works fine. This only fails with large files. The total copied is less than 2gb, so this doesn't seem to be a FAT32 problem. There is ample space on the destination drive (over 1Tb free). The Mac is on a wireless 802.11N lan.
    - Bruce

  • JDeveloper doesn't show all files in the directory

    Hello,
    I think some basic functionalities are missing in JDeveloper, one of these basic functionalities is the importing of files. You can't import existing business components in your project, so you have to put them in a directory physically.
    I did it like that and now I'm facing this problem that some file's aren't being shown in the application navigator while I select system navigator, I see that they are in the correct path. I really don't understand why my project doesn't include the files in the application navigator...
    Can anyone tell me what's wrong or what to look for?
    Thanks.

    Hi,
    ADF BC files are re-used as described in
    http://download-uk.oracle.com/docs/html/B25947_01/bcadvgen007.htm#CHEFECGD
    Frank

  • 'All My Files' doesn't show all file types (e.g. .Zip)

    Does anyone know how to make the 'All My Files' option in Finder display Zip files and Folders? 
    When I look at the search criteria, 'All My Files' seems to be only looking for 'Documents' and 'com.microsoft.'.
    Thanks,
    M.

    'All My Files' doen't even show pdf and doc files that I know are on my machine.
    Maybe should be called 'Barely Some of My Files.'
    I went into 'Search Criteria' and put in only one criteria line, searching for "any" file of "any" type.
    This seemed to work.

  • Nano plus, doesn't play all files

    I've had my nano plus since christmas. First time I put some music on it was then by the drag-and-drog method. A couple of weeks ago I was going to replace some of the music. I deleted the files I wanted to delete and then put new files on the player. These files I'm able to play on other computers, but the player itself refuses to play them. The player though does play the music which have been there since christmas. These files are all in folders. Yesterday I tried to put files in the root and these files can be played. When I put these files into a folder old folder on the player they work, but if I create a new one?the files just don't seem to exist. Anyone recognizing the problem?Message Edited by Cajmatz on 03-22-20070:32 AM

    There is a firmware limit of 60 folders including higher level folders that don't have music directly in them on the Nano Plus - try moving your music into less folders. The 37 you see are the ones in the first 60 that have music files in.
    PB
    Message Edited by PeeBee on 0-20-2006 06:52 PM

  • Finder doesn't find all files

    Finder doesn't list all folders in a folder.
    The "ls" Terminal command does.
    For example, when looking for a group called "Gladys Knight & the Pips" in my itunes library it is not shown in the folder listing using Finder.
    Here is a snippet from Finder:
    However, when using terminal commands, it is found.
    Bobs-iMac:iTunes bobs$ pwd
    /Users/bobs/Music/iTunes
    Bobs-iMac:iTunes bobs$ ls -aR | grep "Gladys"
    Gladys Knight _ Gladys Knight & the Pips
    ./iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips:
    ./iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]:
    I'm running a clean install of OS X Yosemite, version 10.10.2

    Last login: Tue Apr 21 21:23:51 on ttys000
    Bobs-iMac:~ bobs$ cd music
    Bobs-iMac:music bobs$ ls
    iTunes
    Bobs-iMac:music bobs$ cd iTunes
    Bobs-iMac:iTunes bobs$ ls
    Album Artwork            iTunes Media
    iTunes Library Extras.itdb    iTunes Music Library.xml
    iTunes Library Genius.itdb    sentinel
    iTunes Library.itl
    Bobs-iMac:iTunes bobs$ mdfind Gladys
    /Volumes/Western Digital/Music/iTunes (under music)/iTunes Music Library.xml
    /Volumes/Western Digital/Music/Various Artists/Motown Legends, Vol. 3/06 I Heard It Through the Grapevine.mp3
    /Volumes/Western Digital/Music/Various Artists/Billboard Top Rock & Roll Hits_ 1973/03 Midnight Train to Georgia.mp3
    /Volumes/Western Digital/Music/Unknown/Shop Around/03 Nitty Gritty.mp3
    /Volumes/Western Digital/Music/Unknown/READER'S DIGEST 20 YEARS OF SOLID GOLD GROUPS Disc 3/07 MIDNIGHT TRAIN TO GEORGIA.mp3
    /Volumes/Western Digital/Music/Ray Charles/Genius Loves Company/10 Heaven Help Us All.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/06 Best Thing That Ever Happened to Me.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/07 I've Got to Use My Imagination.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/08 On and On.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/09 Letter Full of Tears.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/10 Every Beat of My Heart.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/05 Midnight Train to Georgia.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/03 Neither One of Us (Wants to Be the First to Say Goodbye).mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/04 Friendship Train.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/02 If I Were Your Woman.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips/Greatest Hits [Curb_Capitol]/01 I Heard It Through the Grapevine.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Gladys Knight _ Gladys Knight & the Pips
    /Users/bobs/Music/iTunes/iTunes Media/Music/Various Artists/Motown Legends, Vol. 3/06 I Heard It Through the Grapevine.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Various Artists/Billboard Top Rock & Roll Hits_ 1973/03 Midnight Train to Georgia.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Unknown/READER'S DIGEST 20 YEARS OF SOLID GOLD GROUPS Disc 3/16 BEST THING THAT EVER HAPPENED TO ME.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Unknown/READER'S DIGEST 20 YEARS OF SOLID GOLD GROUPS Disc 3/07 MIDNIGHT TRAIN TO GEORGIA.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Various/Shop Around/03 Nitty Gritty.mp3
    /Users/bobs/Music/iTunes/iTunes Media/Music/Ray Charles/Genius Loves Company/10 Heaven Help Us All.mp3
    /Users/bobs/Documents/Music/Various Artists/Motown Legends, Vol. 3/06 I Heard It Through the Grapevine.mp3
    /Users/bobs/Documents/Music/Various Artists/Billboard Top Rock & Roll Hits- 1973/03 Midnight Train to Georgia.mp3
    Bobs-iMac:iTunes bobs$

  • Problems opening files in DW CS4 - not all files and folders are showing

    Hi!
    I'm trying to change some already existing files on the homepage but when I click the Open button, it doesn't show all the files and folders, even if I ask it to show all files. When I open the ftp folder in Explorer, I can see everything. I'm using Vista and Dreamweaver is version 10.0 Build 4117.
    Most of the unaccessible files and folders were created using Frontpage a long time ago but this also happens when I create new files, although the new ones I created used one of the old ones as a template. Any help would be appreciated! It's rather annoying not to be able to access all the files.
    Thanks a lot!
    Mathias.

    Not sure if that was meant for me
    You can tell who was the intended recipient by looking at the header of the message -
    6. Sep 10, 2010 6:50 AM in response to: FordGuy48 <<----
    Re: Problems with embedding .flv files in DW CS4....
    A link to the page would help us diagnose your problem.
    Safari tells me that this file -
    FLVPlayer_Progressive.swf
    is not where you have told the page to expect it.  Did you upload it?

  • How do I clear the " view all files " history in Adobe Reader XI  I have recent files set to 1 "View all files " shows all files from 22 june to current date

    as i indicated in my question I'm having a problem clearing the " view all files " history in Adobe Reader XI

    My current Ver is 11.0.07   and the"view all recent files" selection is found by clicking on file and in the drop down menu it is the selection just above the list of recent files

  • File.setLastModified doesn't work for files with another owner and 777 perm

    import java.io.File;
    public class Main {
        public static void main(String[] args) {
            File file = new File(args[0]);
            System.out.println("exec:" + file.canExecute());
            System.out.println("read:" + file.canRead());
            System.out.println("write:" + file.canWrite());
          System.out.println(file.setLastModified(System.currentTimeMillis()));
    } Compile it to ~. In ~ create file aaa.txt. Next
    ~ $ sudo chown root:root aaa.txt
    ~ $ sudo chmod 777 aaa.txt Checking
    ~ $ ls -la aaa.txt
    -rwxrwxrwx 1 root root 472 2009-11-24 12:09 aaa.txt Running application
    ~ $ java -Djava.security.debug=all Main /home/jfreem/aaa.txt
    scl:  getPermissions ProtectionDomain  (file:/home/jfreem/ <no signer certificates>)
    sun.misc.Launcher$AppClassLoader@1c78e57
    <no principals>
    java.security.Permissions@1186fab (
    (java.lang.RuntimePermission exitVM)
    (java.io.FilePermission /home/jfreem/- read)
    scl:
    exec:true
    read:true
    write:true
    false setLastModified return false and modification time of file remain the same. Why?

    Can you see if the file is getting to the webserver's (not
    ColdFusion)
    temp file directory?
    When a file is uploaded from the browser the
    webserver(IIS|Apache|etc)
    upload it to a temp location, then all CFFile does is copy
    the file
    from the temp directory to where ever specified.
    So you can see if the problem is failing before or after this
    point.
    Grant wrote:
    >
    >
    > We are migrating our intranet from ColdFusion 5 on
    Solaris to ColdFusion MX 7
    > on Linux and I'm testing out the existing applications
    on the new server. The
    > processing page for a file upload is using CFFILE with
    ACTION="upload". The
    > page finishes processing fine, no error, and continues
    as if it was successful
    > but the file never actually gets to the destination
    directory. I tried with
    > larger files and it did take longer (so the file
    appeared to get transmitted),
    > but it still does not get saved to the server's file
    system. This all works
    > fine on the current system running CF5. I've tried the
    CFFILE destination with
    > and without a slash at the end - no difference. We have
    ColdFusion 7.0.1
    > installed. Hot fix 2 has been applied but that did not
    fix the problem.
    >
    > Any ideas?
    >

  • File Dialog - How to remove all files pattern in LV 8.x

    How to remove "all files" pattern in LV 8.x in the file dialog.
    Is it possible?
    Thanks
    Dany
    Dany Allard

    If it is a security issue, you will probably need to implement a custom dialog and actively filter for file types.  No matter what pattern you have showing, the user can type a pattern into the dialog and get anything they want.  In addition, file extension is not sufficient to determine file type.  You should probably check the file itself to ensure it is an HTML file and does not have any embedded nastiness.
    Fortunately, custom dialogs are easy to make.  Using the event structure, you can filter inputs as well, so that only HTML files will be accepted.  Good luck.  Let us know if you need more help.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • All Files preference is not really all files?

    Time machine must not really back up all files as it says in the preferences, as a significant difference exists in my set-up between file number counts on the drives (both individually and collectively) and what is reported by Time Machine as the contents of the Backup.backupdb file set. Whether or not this is partially accounted for by hidden files (and why would not they be backed-up, too?) is not clear. For example, my System drive reports "using" =105.7 GB, drive B=214.8GB, and drive C=148.9GB, total = 469.4GB. But the Time Machine backup says it is accounting for only 368.4 GB of content of those 3 drives. That about 101 GB left out in the cold, so to speak. All volumes are formatted the same way (Extended and Journaled), and when you add up the file item counts, there is a similar disparity of many hundreds of thousands of files. Even if I count the hidden files, it still is quite a huge difference. An Admin user account has a quite small amount in it, so if other accounts are being ignored, that cannot account for the disparity. What does Time Machine NOT back-up? Why not? Should I be using other software that captures "everything" more completely for serious back-ups?

    jansp wrote:
    For reasons I cannot explain, I cannot launch any widgets or even get into the Dashboard, even by direct launch attempts.
    That's an indication of something else wrong. I'd suggest doing both +Repair Permissions+ and +Verify Disk+ on your internal HD via Disk Utility (in your Applications/Utilities folder). Don't be alarmed by the mostly-spurious messages the +Repair Permissions+ will send, but +Verify Disk+ reports errors, you'll have to boot from your Leopard Install disc to fix them. Post back if you need to do this but need help.
    So I'm stuck there. Will I have to re-instal the system to get Dashboard running?
    That's a separate issue. Let's resolve this one first, if we can, and if the repairs above don't fix it.
    (Obviously, I'd want a full back-up before installing a new System, right? So I'm wary of relying on the TM backup less those 101 GB). I checked, no "exclusions" on list. I suppose some of this could be a result of compression or incomplete blocks being more efficiently packed, but really, that much? Also, the file number counts are way off.
    TM does not compress data. As posted earlier, your backups should be nearly the size of what's used on your internal HD, but there are automatic exclusions of things you don't need that almost certainly explain the difference. Where are you getting the "file number counts"? The unique structure of TM backups and the way various apps count files aren't always the same.
    Please advise on getting the widget to operate. THANKS!
    As long as it's now been, the widget most likely won't show your first backup anyway. In fact, they may be gone from your logs entirely, as OSX rotates them out after several days.
    So, let's try to look at your logs directly. Use the Console app (in your Applications/Utilities folder).
    When it starts, click +Show Log List+ in the toolbar, then navigate in the sidebar that opens up to your /var/log folder, click it's expansion triangle, then find the system.log.0.bz2 etc. files. These are your previous system logs. Select the last one (probably number 7) and click to open it.
    It opens at the end (bottom). Look for the date and time of your first backup. If the backup was before the dates in file 7, it's logs are gone. If was earlier than what's in the number 7 file, work back through the files until you find the right time period.
    Type backupd in the Filter box in the toolbar. This will select only messages from TM backups, but all run together instead of separately for each run as the widget does. Each run will have a different +Process ID+ (the number enclosed in square brackets after the backupd process name).
    Navigate to the +Starting standard backup+ message for the backup, then see what follows. There should be various messages from the backupd process, ending with "Backup completed successfully." Copy and post the whole group here (shouldn't be more than a dozen messages).
    PS: I can do a full Retrospect back-up (always have but only weekly) and it does reflect file size and count as expected. Maybe I should just continue that and skip TM?
    That's up to you. One of the main advantages of Time Machine is it's very fast hourly incremental backups, giving you an excellent chance of recovering a previous version of a file that you changed or deleted in error (or used Save rather than +Save As+ on), or that somehow got corrupted.

Maybe you are looking for

  • Unable to Open Mail "index is read only

    I am unable to open my mail and receive the following message. Mail can't open because its index is read-only. The index file is located in /MacBook Pro HR/Users/tommygorse/Library/Mail/Envelope Index.  If this file is on your computer, use the Get I

  • How to turn off descriptive cursor in illustrator CS5.5

    Does anyone know how I can turn off the descriptive cursor when I move objects around in illustrator? - (see bottom screencap) I know there must be a place but can't find it . . . . I am new to this version. I am on a Mac OS X - 10.6.8 - and running

  • Why does my hp say it's not genuine?

    My computer is: HP TouchSmart 310-1125y Desktop PC My operating system: Windows 7 home premium Error Message (located at lower right side of screen): " Windows 7---Build 7601---This copy of Windows is not genuine" all i want to know is how do i fix t

  • How can I take Smileys to a calendar in Iphoto? Hur kan jag placera Smileys i en kalender jag håller på att göra i Iphoto?

    How can I take Smileys to a calendar in Iphoto? Hur kan jag placera Smileys i en kalender jag håller på att göra i Iphoto?

  • Probelm upgrading to 5.0

    I've tried at least 15 times to update my iPhone 4 to the new iOS 5.0. It keeps saying the my network connection is timed out and that I need to check my security settings. I got on the support site several times to find solutions. Everything I saw s