This how-to article is useful for first-timers who want to set up Eclipse for Learn building blocks development
Setting up Eclipse (step-by-step)
To perform a Building Block install: http://<server>/webapps/bb-starting-block-bb_bb60/execute/install?fileName=d:/<my-bblock-name>.war&clean=true&available=trueTo test if your Starter building block is working try to access an already installed war under the bb filesystem: <domain>/webapps/bb-starting-block-BBLEARN/execute/install?fileName=/usr/local/blackboard/system/autoinstall/basic.learning/allavailable/assessment.war
6. Add the "Blackboard" plugin for Eclipse
ANT Deploy script
- How to add the server: "http://www.eclipse.org/webtools/community/education/web/t320/Configuring_an_Application_Server_in_Eclipse.pdf"
- Ant is integrated into eclipse. If you go to the Window menu, ant should be one of the views available to open.
- Also, the quick access feature is very useful to find something in Eclipse, in this case: Ctrl+3, type Ant (Cmd+3 on Mac)
- download latest binaries file of ant form http://ant.apache.org
- Unzip and place your workstation
- Create a new environment variable called ANT_HOME = E:\apache-ant-1.8.2
- Add E:\apache-ant-1.8.2\bin in PATH in environment variable
- check on cmd ant -version
Importing WAR files
- Select File > Import .
- In the Import dialog, select WAR file and then click Next.
- Locate the WAR file that you want to import using the Browse button.
- The wizard assumes you want to create a new Web project with the same name as the WAR file. If you accept this choice, the project will be created with the same servlet version as specified by the WAR file and in the same location. If you want to override these settings, you can click New and specify your new settings in the Dynamic Web Project wizard.
- Click Finish to populate the Web project.
Archiving your Project
1. File > Export
2. Select the General > Archive File export wizard.
3. Select the project(s) to be exported.
4. Choose the archive file type (ZIP or TAR), and other options.
5. Enter the archive file name
6. Click Finish.
This gives you an archive file containing the project complete with the Eclipse project metadata, settings, etc.
(You can deselect any bits you don't want at this stage, or when you Import the project into the target Eclipse workspace.)