Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top