Sunil Kumar Sahoo
Sunil Kumar Sahoo

Reputation: 53667

How to create a tar file from a jar file, Netbeans, ant

Hi I have netbeans 6.7.1. My build.xml file creates a jar file. Now I want both jar and tar file. my tar file must be created from my jar file. SO how to create tar file from my jar file by making some changes in build.xml. I think it uses ant to create jar file.

Thanks Sunil Kumar Sahoo

Upvotes: 0

Views: 1261

Answers (2)

Sunil Kumar Sahoo
Sunil Kumar Sahoo

Reputation: 53667

Please use like below. U have to provide full path of jar. Write the following inside tag of build.xml file

<tar destfile="/root/NetBeansProjects/TextWandDesktop/store/TextWandDesktop.tar"
     basedir="/root/NetBeansProjects/TextWandDesktop/store/"/>

Thanks

Upvotes: 0

Vladimir
Vladimir

Reputation: 6871

Obvious answer: use the Ant tar task. You will have to edit the Netbean build.xml file and invoke the tar task after the jar one.

I'm not a Netbean heavy user but this should get you started.

Upvotes: 2

Related Questions