Jar only specific file types

Hi Folks
Is there any option to feed my requirement ?
I have below folder structure
acme/hmtl/1.html
acme/html/2.html
acme/html/3.css
acme/css/2.css
acme/css/1.css
acme/css/3.html
I want to create jar which should contain only html files. But the recurssive folder structure can extend to any number. And the jar should contain the exact folder structure same as source. I need to execute the command from parent folder level and it should jar all the html files in same folder structure...Any luck :(

Your best bet - and something that's a good idea anyway - is to get hold of, and learn to use, Apache Ant. It'll do what you need, and a lot more.

Similar Messages

  • Pre-Configure QT 7 Installation for only specific file types

    Is there an 'ini' or similar configuration file or command line option set I can use to pre-configure QT7 to only associate with specific file types?
    I want to leave the associations for Media Player intact and have QT handle only MOV and other Apple-specific file types.

    Basic answer. No.
    You set file associations after the install of QuickTime.
    Most of it's adjustments and options are found in its Control Panel. Here you can set associations for MIME types that control the browser plug-in.
    Each user can set their own values.

  • 2012 Deduplicated volumes - hydrate only specific file types

    I have a file server with roughly 4 TB of data. We have found that turning on 2012 Dedupe feature is causing corruption with Access databases. Databases worked fine for a week or better before we turned on Dedupe. Everything else appears to work fine.
    I know I can exclude specific file types (ie. AACDB, MDB, etc).  Simply excluding them won't re-hydrate the currently deduped database files correct?
    Is there a version of the start-dedupjob -type unoptimization where I can specify a file type so that I can just hydrate specific files?

    The corruption didn't start until after I migrated these file shares over to the 2012 server and enabled dedupe
    After we first noticed the problem, we moved just the databases back to a 2008 file server and didn't have any more problems.  Due to some other issues with backups, I moved all the data on the 2012 server to another drive on the same server and left
    dedupe turned off.
    I had to wait for about a week before turning dedupe on for the new hard drive.  During that time my users were able to work in a database that didn't get moved to the 2008 server.  A couple of days after I deduped the drive they are getting corruption
    issues again.
    2012r2 file server
    Win 7 clients w/ Office 2010
    Deduplication is implemented as a filter driver over NTFS. So I can bet you have some backup application installed (SQL Server specific?) and it has own filter drivers conflicting with MS dedupe. What apps do you run on that box except SQL Server (obvious)?
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • Advice on allowing specific file types to be written to USB flash drive

    We currently have all of the Removable Storage Access policies enabled (Computer Config > Policies > Admin Templates > System/Removable Storage Access) and would like to know if it is possible to allow specific file types to be exempted from this
    policy. Specifically we need to allow certain users to write to USB flash drive but need to limit to MS Office files only.  Is this possible?
    Thanks in advance for any assistance.
    -Mike

    > Specifically we need to allow
    > certain users to write to USB flash drive but need to limit to MS Office
    > files only.  Is this possible?
    Third party products can do that. GPO cannot.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • How to setup a routing rule for a specific file type for the content organizer?

    Hello,
    how can I set a routing rule for a specific file type, for example for "pdf" or for "docx", for my content organizer?
    As standard I can only choose for the rules the content type, name and title of the file uploaded.
    Thank you in advance!
    JohnyG

    Hi Johny,
    Based on your description, my understanding is that you want to create a routing rule for a specific file type.
    I recommend to create rules with the conditions as the image below shows for the Document content type(for example: .docx files):
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Search For Specific File Type (eg .txt)

    I know how how to find files in a folder using Java but how do you search for specific file types. I am looking only include files with the extension .txt in my search.

    Cheers. I already looked at that. Got a program that parses a XML and had a play about with it. Can print the contents of tags in my XML. Its just that im trying to parse my XML and have the contents of the starts_with tag to appear in startsWith(or a variable to which this has been assigned) and the contents of the extension tag to appear in endsWith. Totally clueless on how to go about it.
    Below is my class. Would be greatful if you have any ideas.
    import java.io.File;
    public class FindLatestFile {
                 public static File getLatest(File thisDir){
                         long latestModDate = -1;
                         File latestFile = null;
                         File[] fileList = thisDir.listFiles();
                         for(int i=0; i < fileList.length; i++){
                             File file = fileList;
         if (file.lastModified() > latestModDate & (file.getName().startsWith("A") & file.getName().endsWith(".txt"))) {
         latestModDate = file.lastModified();
         latestFile = file;
                             return latestFile;

  • SQL query/report for "count of specific file type"?

    I figured this would be a good first post, as I have found every question I have had to date by browsing the forums, but I am stumped with this one. I recently expressed some concern to HR regarding the use of...lets call it "unauthorized content"
    on our network. Getting little to no response, I would like to produce a report containing a total count based on specific file type. For example, how many .mp3 files are stored on company equipment, how many torrent files (sadly, this is true), etc.
    Having very basic knowledge of SQL, I am puzzled where to start. I am currently using SCCM SP3 and SQL 2008 R2 with both basic reporting and SSRS enabled on the site.

    You'll first need to inventory those file types then here's some reports for you.
    Get the pstreports from my skydrive, import them and you can cange the file type to mp3 or whatever you need. I monitor mp3 files too.
    http://cid-6a8d30f2bc0666d0.office.live.com/browse.aspx/SCCM%20Custom%20Reports
    John Marcum | http://myitforum.com/cs2/blogs/jmarcum/|

  • Premiere Pro CS5 crashing when exporting (only certain file types)

    Hi
    I have found that when I try and export media in Premiere Pro CS5, it often crashes during the export. It says
    It's only certain file types. For instance, Vimeo HD seems okay but Vimeo SD always crashes mid-export. MPEG is okay too, but MPEG2-DVD always crashes.
    Sometimes it says this: "Error Compiling Movie - Unknown Error" but doesn't throw me out of Premiere altogether.
    Other times it crashes altogether and Windows gives me this error message: "Display driver NVIDIA Windows Kernel Mode Driver, Version 258.96 stopped responding and has successfully recovered". Premiere Pro then stops responding so I have to re-open it and start exporting again.
    I have checked there are no gaps in my timeline and I have rendered the whole work area. Besides, I doubt it's anything that I'm doing wrong with the project itself because it's exporting fine in some formats.
    I am also experiencing random crashes when editing too. Not that often, but occasionally it throws me out - and twice it has made the whole screen go crazy, with weird dotting across the screen (it's scary, it looks like the monitor itself has broken!).
    Any help would be appreciated!
    Nick
    PS I have a pretty decent new PC - Dell Studio XPS, 8GB, 2x1TB drives, etc. Premiere itself is working great, except for these crashes.

    Some drivers do not work well in some systems... so go to nVidia and try a different (usually newer) driver for your card
    These notes are for Encore, but they MAY also work in Premiere
    Long File Names or odd characters Cause Crashing http://forums.adobe.com/thread/588273
    And #4 Here http://forums.adobe.com/thread/666558?tstart=0
    And This Message Thread http://forums.adobe.com/thread/665641?tstart=0

  • MDT 2013 USMT customization to exclude specific file types

    Hi,
    I have a need to exclude a specific file type from migration with USMT within MDT 2013.
    So far, I think I know the following:
    I have to create a custom XML file.
    I have to place the custom XML file in the deployment share's Tools\x86|x64\USMT5 folder.
    I have to reference the custom XML file customsettings.ini using USMTMigFiles003 (1 and 2 are used by the default files).
    I think I'll need to use unconditionalExclude.
    However, I am having trouble finding a proper example of a custom XML file. I can find the reference documentation, but actually having a single example isn't as easy to find.
    Specifically, I want to exclude all VMDK (VMware virtual hard disks) from being migrated, regardless of where on the machine they are.
    Thanks for any assistance,
    SA.

    You need something like the below. You can find it in the provided link:
    <unconditionalExclude>
    If you want to exclude a file type from the migration, regardless of the other <include> or <exclude> rules, you can use the <unconditionalExclude> element. This element excludes objects globally across all components. For example, you
    should use this element if you want to exclude all .mp3 files from the computer.
    <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/excludefiles">
    <component context="System" type="Documents">
    <displayName>Test</displayName>
    <role role="Data">
    <rules>
    <unconditionalExclude>
    <objectSet>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
    </objectSet>
    </unconditionalExclude>
    </rules>
    </role>
    </component>
    </migration>
    http://technet.microsoft.com/en-us/library/cc722303%28v=ws.10%29.aspx#Ex1
    Dustin Estes - MCP | www.dustinestes.com

  • Can I only search for specific file types?

    Oftentimes I need to pickup just the InDesign file. I sort by type but there are word docs, images (lots of them!), web pages, etc. Is there a way to search in Client A's folder and all sub-folders for just InDesign files? Thx.

    You can use the filter panel for this. Click on the triangle in front of
    File Type (if it is not already open yet because it does so the moment there
    are two or more different File types in the folder you pointed Bridge to)
    Click on the File type you want to show and only those will appear in the
    content window
    Is there a way to
    search in Client A's folder and all sub-folders for just InDesign files? Thx.

  • How to delete a specific file type from a folder

    Hi,
    I have folders with lots of zip or rar files, once I decompress those I want to delete the compressed files specifically. Is there any way I could manage that through Automator?
    Thanks in advance.

    Thanks Niel for the script, unfortunately I am too ignorant about running these on my own, I did save it in my user script library, but I would need instructions to run it. I would be really grateful.
    I did try making up my own workflow using the given actions in Automator, the first action was to 'find specific files in finder' ending with .zip and .rar and then choosing another action which 'moves selected files to trash'. Unfortunately it ended up running only if I specify the path to the specific .zip file, which defeats the purpose. Any suggestions on the proposed workflow? Thanks in advance.

  • Find Specific File Type Group in Specific Folder

    Hi, I dont know how to find a specific group of files (i.e. all movies, all music etc) in one specific folder (and its sub folders) on Snowleopard.
    I do know how to find a single file type (i.e. .mov, .mp3)
    Thanks for the help.

    Hi,
    And, Welcome to Apple Discussions!
    In the search box, type
    kind:
    (that's "kind" followed by a colon) followed by either
    movie
    image
    or
    music
    I just tested it myself (I've never actually used it!) and it works a treat.
    HTH,
    S.
    Message was edited by: SiRGadaBout

  • Automator action to move a specific file type to a folder..

    've started shooting pictures in raw and jpg format. After I grab the pics from my camera, I'd like to put the raw files in a separate folder.
    I've played around a little but can't figure it out-- so I dunno if it's possible. Is there a way I can make an automator action where I enter or select the folder and run the action. It then makes a folder named RAW and moves all of a certain file type to the RAW folder. Is this possible with automator?
    I'd like it to make a folder named RAW inside the current folder I'm in or have selected.
    I think I figured this out using filter finder items, and move to specific folder, but I think I need to learn how to use variables for this to work how I want it. Do I need variables or is there another way?

    the following script should do it provided your Raw image files have extensions "raw" (do they?). If they have another extension, modify next to the last line accordingly.
    tell application "Finder"
    set theFolderName to "Raw"
    set curFolder to (folder of the front window as alias)
    -- Determine whether the specified folder exists
    if folder theFolderName of curFolder exists then
    set theFolder to folder theFolderName of curFolder
    -- Create a new folder, if it doesn't exist
    else
    set theFolder to make new folder at curFolder with properties {name:theFolderName}
    end if
    move (every file of curFolder whose name extension is "raw") to theFolder
    end tell
    Save the above script as an application using Script editor. To use it, select the folder you want to work on and run the script.

  • Gzip only specific files extensions over sockets

    I am writing a socket webserver class that gzips only HTML files back to the browser (client). If the HTML file contains any images, I will have to send that over uncompressed. I am using GZIPOutputStream for my HTML objects, and a regular DataOutputStream for my other objects. None of my images show up correctly when I use DataOutputStream alone, but when I also gzip them, they show up fine. Also, all the images/html files show up fine if I exclude all the gzipping altogether. So it seems as though I have to either gzip them all ... or none at all.
    Is there a way to gzip only certain file extensions?
    Thanks!

    None of my images show up correctly when I use DataOutputStream alone, but when I also gzip them, they show up fine.Perhaps you aren't calling flush on the DataOutputStream (but the GZIP stream is) ?
    So it seems as though I have to either gzip them all ... or none at all. Probably not, I believe there is just an error in your code.
    Is there a way to gzip only certain file extensions?Sure,
    if (fileShouldBeGzipped(file.getName()))
      sendGzipFile(file);
    else
      sendFile(file);Of course, you must provide the fileShouldBeGzipped logic.
    Are you really implementing a webserver? That is, is it using http? If so, the standard practice (protocol) is that a client adds a header field which states what type of content encoding it can deal with in the response (i.e. gzipped content). If the server is capable, it replies with its own header stating the content is indeed gzipped along with the gzipped content. This way the client knows that it must decompress the data before doing something with it.

  • Applescript help - print specific file type

    I keep getting error messages when trying to get this script to print only the PDFs in my Distiller "Out" folder:
    on adding folder items to this_folder after receiving added_items
    tell application "Finder"
    if file type is "PDF" then
    print
    end if
    end tell
    end adding folder items to
    If I leave out the "if/then…PDF" part it works fine, but Distiller spits out a log file that it keeps trying to print.
    I'm no Applescript genius (obviously), but I am stumped on the logic here. Any ideas?

    Hi, George -
    ...discovered that the file type is 4 characters...
    Expanding on that a bit -
    In OS 9, all File Type and Creator codes are exactly four characters long. These characters can include 'special' characters, such as spaces as well as others; and case (upper case or lower case) is important.
    In the case of PDF's, the Type code is PDF  - note that the final character is a space.

Maybe you are looking for

  • I cannot copy from any website opened in FIrefox and paste into Word since using Windows 7, Office 7.

    I just started using a new Windows 7 computer with Office 7 installed. I can no longer copy from any webpage opened in Firefox and paste into Word. I can paste into email. Word to Word is OK. And copy from email and into Word is OK. But not from an o

  • 10.5.x mail server migration to 10.6 (non upgrade)

    Hi all, So I have been reading up on the various issues with upgrading 10.5.x servers to 10.6 however my question involves going from a 10.5.x server to a clean 10.6 server (non upgrade install). I generally start fresh with a new OS and migrate the

  • All photos look blurry

    somehow while experimenting in iphoto all my pictures that were there now seem blurry? Any way to just make them all back to original look. Im also wondering if theres not a better mac program for just storing my photos ? Thanks Allan

  • How to get data from external source

    Hi experts,    I want to get data from a different source e.g. from oracle. How can i get the data in BW?? Sam

  • LR edit in Photoshop can't save

    From LR, I select an image and hit cmd-E (to Edit a copy in Photoshop CS3). My image opens just fine and switches me to PSCS3 where I edit the image with wild abandon. When I figure I've done everything I can, I hit cmd-S or select the File->Save men