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
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.
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
精彩评论