473,378 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to unrar the rar files through ANT script

Hi i really trying this extract the rar for through ant script ... nearly 3 days till now i didn't get proper result any one please help me.....


Thanks,
Hyung.
Jan 9 '13 #1
3 3439
Rabbit
12,516 Expert Mod 8TB
Please show us the script and describe the issue.
Jan 9 '13 #2
<?xml version="1.0" encoding="UTF-8"?>
<project name="Reports_Automate" >
<untar dest="D:\Projects\....">
<fileset dir="D:\Projects\.......">
<include name="*filesname*.rar"/>
</fileset>

</untar>

</project>
Jan 10 '13 #3
Anas Mosaad
185 128KB
Hyung, there two rar formats, neither of them is equivalent to the tar format. The one from J2EE packaging (Resource ARchive) and the compression format - from winrar.

If yours is Resource ARchive, you can use ujar ant task. It's the same format as any jar file, just with different extension.

If it's the other format -RAR compressed file, you may try to execute the decompression binaries (i.e. unrar) that extract the files using exec task.
Jan 25 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Spam sucks | last post by:
Hello, Could somebody explane to me how i can unserialize the content of a session file, i allready reading the session files and the content now i only need to unserialize the data in the...
5
by: Shalen chhabra | last post by:
Hey, Can anyone give me a snippet for running a python program over all the files in the directory. For ex: I have ten files in a directory and I want to run a python program against all of...
6
by: Robert Scheer | last post by:
Hi. I have two .js files that are used on several of my pages. I made some changes in one of the files. When I call the pages, the old functions are called because of the browser's cache. What...
0
by: Shadowboxer | last post by:
has anybody come across an UnRAR Library for VS.NET? I can't find anything useful and the latest examples on eugene's site are vb6 and they won't compile properly in .net thanks -J
4
by: Oliver | last post by:
Hello ! I am trying to get the unrar.dll working in C#... it seems that I correctly imported the functions as the first 2 function work without problem (RAROpenArchive & RARGetDLLVersion)......
2
by: mmmobasher | last post by:
Dear sirs after some googling i found some code to using unrar.dll, but i get runtime error System.NullReferenceException in line iStatus=RARReadHeader(lHandle, ref uHeader); hear is the code ...
8
by: Ben S | last post by:
Hello all, Has anyone managed to use the UnRAR OCX from www.rarlabs.com ? Or even the unRAR.dll file using declares ? If so, how ? :) With the ocx I get in interop error message, with the...
1
by: Christian Reizlein | last post by:
Does anyone has a class that allow to manage RAR files in VB.net in a native way? not using ActiveX controls or DLLs ?
3
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.