Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
student:jgrasp:help [2021/08/30 10:24] – [Using Checkstyle] stewarmcstudent:jgrasp:help [2021/11/28 16:41] (current) bernstdh
Line 72: Line 72:
     * Right-click and choose "Save Link As...'     * Right-click and choose "Save Link As...'
     * put this somewhere on the computer that you won't accidentally delete it before you're done with it.     * put this somewhere on the computer that you won't accidentally delete it before you're done with it.
-- In jGRASP, click on <key>Tools</key>, pull down     to <key>Checkstyle</key> and across     to <key>Settings</key>. For the field labeled "Checkstyle Home or Jar" , click <key>Browse</key>, navigate to the ''%%.xml%%'' file. Then, click on <key>OK</key>.+  - In jGRASP, click on <key>Tools</key>, pull down     to <key>Checkstyle</key> and across     to <key>Settings</key>. For the field labeled "Checkstyle Home or Jar" , click <key>Browse</key>, navigate to the ''%%.xml%%'' file. Then, click on <key>OK</key>.
 === Running Checkstyle === === Running Checkstyle ===
  
Line 96: Line 96:
  
 If you have properly configured jGRASP, the "Create JUnit test file"  button, {{jgrasp-CreateJUnitTestFile.png}}, will appear  whenever you open a ''%%.java%%'' file. If you have properly configured jGRASP, the "Create JUnit test file"  button, {{jgrasp-CreateJUnitTestFile.png}}, will appear  whenever you open a ''%%.java%%'' file.
 +
 +
 +== Classpath ==
  
 Though it's not absolutely necessary (depending on how you create  your test classes), you should also add  ''%%junit.jar%%'' to the CLASSPATH for your workspace. To do  so, click on <key>Settings</key>-<key>PATH/CLASSPATH</key>  -<key>Workspace</key> and select the CLASSPATHS tab. Then, click on  <key>New</key> and add ''%%junit.jar%%''. Though it's not absolutely necessary (depending on how you create  your test classes), you should also add  ''%%junit.jar%%'' to the CLASSPATH for your workspace. To do  so, click on <key>Settings</key>-<key>PATH/CLASSPATH</key>  -<key>Workspace</key> and select the CLASSPATHS tab. Then, click on  <key>New</key> and add ''%%junit.jar%%''.
Line 106: Line 109:
  
  
-Unless you understand what it is doint, you should probably delete  all of the code that jGrasp inserts into this class and start from  scratch.+Unless you understand what it is doing, you should probably delete  all of the code that jGrasp inserts into this class and start from  scratch.