Pack netbeans into jar and netbeans into jar

Source: Internet
Author: User
Tags echo message netbeans

Pack netbeans into jar and netbeans into jar

<Target name = "package-for-store" depends = "jar"> <! -- Change the value of this property to be the name of your JAR, minus. jar extension. it shoshould not have spaces. <property name = "store. jar. name "value =" MyJarName "/> --> <property name =" store. jar. name "value =" SwitchHexAndChinese "/> <! -- Don't edit below this line --> <property name = "store. dir "value =" store "/> <property name =" store. jar "value =" $ {store. dir}/$ {store. jar. name }. jar "/> <echo message =" Packaging $ {application. title} into a single JAR at $ {store. jar} "/> <delete dir =" $ {store. dir} "/> <mkdir dir =" $ {store. dir} "/> <jar destfile =" $ {store. dir}/temp_final.jar "filesetmanifest =" skip "> <zipgroupfileset dir =" dist "includes = "*. jar "/> <zipgroupfileset dir =" dist/lib "includes = "*. jar "/> <manifest> <attribute name =" Main-Class "value =" $ {main. class} "/> </manifest> </jar> <zip destfile =" $ {store. jar} "> <zipfileset src =" $ {store. dir}/temp_final.jar "excludes =" META-INF /*. SF, META-INF /*. DSA, META-INF /*. RSA "/> </zip> <delete file =" $ {store. dir}/temp_final.jar "/> </target>Press Ctrl + C to copy the code

 

Right-click build. xml to generate SwitchHexAndChinese. jar.

 

Generated file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.