File System Import
Purpose
The plan is to import a large number files/folders at a time, using the
file system wizard. The results should be indentical in layout and content
as the original source used.
Setup
-
Download the JUnit source code from www.junit.org and extract the contents
into a folder in the file system.
-
Start the Eclipse workbench
-
Create a new temporary "simple" project called "JUnit Test"
-
Select File -> Import, select File System and press Next.
Import into an empty project
-
Click the Browse button and select the directory where the source files
are located.
-
Expand the folders in the tree view and until "junit" folder is visible
and check mark the box next to it
-
Type in "JUnit Test" in the Folder field
-
Press Finish
-
Verify that the contents of the project match the same file and folder
structure as the source in the file system.
-
Verify that the content of the files.
Import into a project with same contents (overwrite)
-
Click on the Directory drop down box and select the directory where the
source files are located
-
Expand the folders in the tree view and until "junit" folder is visible
and check mark the box next to it
-
Type in "JUnit Test" in the Folder field
-
Check the option "Overwrite existing resources without warning"
-
Press Finish
-
Verify you were not prompted to overwrite files
-
Verify that the contents of the project match the same file and folder
structure as the source in the file system.
-
Verify that the content of the files.
Cleanup
-
Delete the temporary project "JUnit Test"