TD MXC NetBeans Boudreau

Embed Size (px)

Citation preview

  • 8/14/2019 TD MXC NetBeans Boudreau

    1/15

    Using NetBeans For

    Your Existing Projects

    Tim Boudreau

    Senior Staff EngineerSun Microsystems

    [email protected]

  • 8/14/2019 TD MXC NetBeans Boudreau

    2/15

    2

    Agenda Introduction

    Building Software

    About NetBeans Projects

    Automated Project Import

    Manual Project ImportMaven

    Conclusion

  • 8/14/2019 TD MXC NetBeans Boudreau

    3/15

    3

    GoalsBecome friends with the NetBeans

    project system

    Learn how projects can be importedinto NetBeans

    Learn how NetBeans can be used

    alongside other IDEs

  • 8/14/2019 TD MXC NetBeans Boudreau

    4/154

    Building Software

  • 8/14/2019 TD MXC NetBeans Boudreau

    5/155

    Building Software When programs were a single file?

    - Just compile it

    - Use your IDE to do its own thing Then there was Make

    - Make is evil

    Ant the de-facto standard for buildingJava code XML-based config files

    Maven Ant++ - solves the libraries

    problem

  • 8/14/2019 TD MXC NetBeans Boudreau

    6/156

    NetBeans projects

    Ant-based projects

    Project file: build.xmlCan be extended

    Ant tightly integrated

  • 8/14/2019 TD MXC NetBeans Boudreau

    7/157

    Two Project TypesRegular projects

    Free-form projects

    If you can, use regular projects

    Much easier, setup free

    Default file structure

    The IDE takes care of build.xml

  • 8/14/2019 TD MXC NetBeans Boudreau

    8/158

    Automated ImportGood news for Java SE projects

    created with JBuilder or Eclipse:

    We have project importers Available on the update center

    They create the build.xml file

    Works for Java SE Projects

  • 8/14/2019 TD MXC NetBeans Boudreau

    9/159

    Manual importUsing regular projects

    Create a New Project with Existing

    Sources Let NetBeans generate build.xml

    Using free-form projects

    Create a New Project with Existing AntScript

    Reuse existing build.xml

  • 8/14/2019 TD MXC NetBeans Boudreau

    10/1510

    Using Multiple IDEs

    Regardless of how you get your

    project into NetBeans

    It's harmless and easy to stilluse those other IDEs

  • 8/14/2019 TD MXC NetBeans Boudreau

    11/15

    11

    Apache MavenGet the Maven Module from Tools >

    Plugins

    Open any Maven project in NetBeans

    - No NB-specific metadata

    - No special set-up

    - It just uses Maven in-place

  • 8/14/2019 TD MXC NetBeans Boudreau

    12/15

    12

    NetBeans Ready

    Documented examples on usingNetBeans with well-known open sourceprojects

    Tomcat, Ant, JUnit, ...

    Apply the concepts to your own project

    Add to the Wish List Contribute

    http://wiki.netbeans.org/wiki/view/

    NetbeansReady

  • 8/14/2019 TD MXC NetBeans Boudreau

    13/15

    13

    Did you know...?

    There are Hibernate, Wicket and Springplug-ins for NetBeans

    There is a vi plug-in for NetBeans The NetBeans 6 Editor is on par with

    Eclipse

    NetBeans has keybindings for Eclipse andemacs

    Maven is well integrated

    http://www.netbeans.org/kb/55/vi-integration.htmlhttp://www.netbeans.org/kb/55/vi-integration.html
  • 8/14/2019 TD MXC NetBeans Boudreau

    14/15

    14

    Conclusion

    There are tools that help with project setup

    Free-form projects and Maven are

    interesting for some scenarios You can use NetBeans in a multi-IDE

    environment

    There is no longer a reason for Eclipseusers not to try NetBeans :-)

  • 8/14/2019 TD MXC NetBeans Boudreau

    15/15

    Using NetBeans ForYour Existing Projects