Changes between Version 68 and Version 69 of BuildSystem


Ignore:
Timestamp:
12/15/12 17:39:10 (7 years ago)
Author:
welberge
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildSystem

    v68 v69  
    255255 
    2562561. We assume that you are using !NetBeans 7.2 (or higher) 
    257 1. create, outside !NetBeans, a basic project in line with our build system. If you have an existing project, that's ok as well. Ensure that you have 
    258 "resolved" the project dependencies, so that the contents of the lib and test\lib directories is what you need. (Use ant resolve)  
     2571. create, outside !NetBeans, a basic project in line with our build system. If you have an existing project, that's ok as well. Ensure that you have "resolved" the project dependencies, so that the contents of the lib and test\lib directories is what you need. (Use ant resolve)  
    2592581. Ensure that the your project has no build directory: for instance use ant clean. 
    2602591. Now create a new project within !NetBeans. Choose "New Java Project with Existing Sources". 
     
    2622611. "Next", add the src folder to the list of "Source Package Folders", and add the test\src folder to "Test Package Folders". 
    2632621. "Now you can \Finish", and you have a !NetBeans project. Except that it won't compile, because you must correct the library settings: 
    264 1. The !NetBeans "Projects" panel on the left show two sets of libraries: "Libraries" and \Test Libraries" Right click on "Libraries" and choose "Add JAR/Folder". Navigate to the project's lib folder and add all jars that you find there. Also add the project's resource directory here. (This will 
    265 ensure that this directory is on Java's classpath, so the "getResourceAsStream" method for loading resource data will work) Leave the "Reference as Relative Path" option enabled: this prevents !NetBeans from copying into its own nbproject\lib directory. Do the same with "Test Libraries", this time using the jars from test\lib, and the test\resource directory. As you can see we now have a junit-4.8.2.jar, that is present in our lib directory, but also two more !NetBeans "libraries", one for JUnit3.8.2 and one for JUnit4.8.2. The latter two should be removed.  
     2631. The !NetBeans "Projects" panel on the left show two sets of libraries: "Libraries" and \Test Libraries" Right click on "Libraries" and choose "Add JAR/Folder". Navigate to the project's lib folder and add all jars that you find there. Also add the project's resource directory here. (This will ensure that this directory is on Java's classpath, so the "getResourceAsStream" method for loading resource data will work) Leave the "Reference as Relative Path" option enabled: this prevents !NetBeans from copying into its own nbproject\lib directory. Do the same with "Test Libraries", this time using the jars from test\lib, and the test\resource directory. As you can see we now have a junit-4.8.2.jar, that is present in our lib directory, but also two more !NetBeans "libraries", one for JUnit3.8.2 and one for JUnit4.8.2. The latter two should be removed.  
    2662641. By now, the project should be in shape: no unresolved libraries, it compiles and runs, and JUnits test work. 
    2672651. Note that whenever you change the contents of the lib directories, you will have to go back to the project properties page (from the File menu),