How to unrar the rar files through ANT script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hyungKim
    New Member
    • Jan 2013
    • 6

    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.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Please show us the script and describe the issue.

    Comment

    • hyungKim
      New Member
      • Jan 2013
      • 6

      #3
      Hi i used this script .. bulid faild

      <?xml version="1.0" encoding="UTF-8"?>
      <project name="Reports_A utomate" >
      <untar dest="D:\Projec ts\....">
      <fileset dir="D:\Project s\.......">
      <include name="*filesnam e*.rar"/>
      </fileset>

      </untar>

      </project>

      Comment

      • Anas Mosaad
        New Member
        • Jan 2013
        • 185

        #4
        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.

        Comment

        Working...