HowToCustomzieTheProjectBuilding

Revision as of 18:20, 6 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

How to customzie the Project Building

Contributed By; Mohamed Magdy Shaheen


How To enforce NetBeans to use pre-defined Manifest file

  1. Open nbproject\build-impl.xml
  2. Replace any ${manifest.file} with the manifest file path.

How to add custom project property

  1. Open nbproject\project.properties
  2. Add the custom property if format of key, value pairs

How to enforce the NetBeans to generate .rar instead of jar file:

  1. Open nbproject\project.properties
  2. Navigate to "dist.jar" property
  3. Change the file extension to "rar" instead of jar.

How to move the generated jar to specific folder:

  1. Open nbproject\build-impl.xml
  2. Add the following section;
<target name="-post-jar">
   <move description="Custom Deployment" file="${dist.dir}/a.jar" todir="c://server/deploy//"  />
</target>

Its ready to be used.. Thanks!

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo