Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
AppFuseDebug
AppFuseSupport
Articles
Articles_cn
Articles_de
Articles_ko
Articles_pt
Articles_zh
DevelopmentEnvironme...
DevelopmentEnvironme...
...and 1 more




JSPWiki v2.2.33

[RSS]


Hide Menu

AppFuseEclipse


Difference between version 50 and version 49:

At line 42 changed 1 line.
__WARNING:__ If you're using the internal version of Ant, you may get an error message like the one below:
Now if you run the "compile" target and then refresh the project (right-click on project → Refresh) you shouldn't see any errors in the "Problems" pane. You should now be able to compile and create classes as you normally would. Sometimes when my imports aren't resolving correctly in Eclipse, I do have to run Project → Clean in Eclipse.
%%note __NOTE:__ If you're using the internal version of Ant, you may get an error message like the one below:
At line 47 changed 1 line.
}}}
}}}%%
At line 55 changed 2 lines.
!!Run JUnit Tests in Eclipse [#6]
It's also possible to run your JUnit tests in Eclipse. I should note that if you're running an ActionTest, you'll need to execute "ant deploy-test-war" and then start Tomcat before running them. To configure Eclipse to run AppFuse's JUnit Tests, all you need to do is define a J2EE_HOME variable. To do this, go to Window → Preferences → Java → Classpath Variables. Add a new variable called J2EE_HOME and point it to the location where you have the [J2EE SDK|http://java.sun.com/j2ee/download.html#sdk] installed. AppFuse already has its classpath configured (in the .classpath file) to include J2EE_HOME/lib/j2ee.jar.
!!Run JUnit Tests in Eclipse [#5]
It's also possible to run your JUnit tests in Eclipse. But before running them, you need to run the "test-all" target. This will set the classpath and files for testing. After "test-all" completes, refresh the project.
At line 58 changed 1 line.
Also, before running any JUnit Tests in Eclipse, you need to run "ant test-all" from the command line. After you have successfully done so, in Eclipse open a test you'd like to run (i.e. UserDaoTest) and go to Run → Debug As → JUnit Test. If this doesn't work, make sure you have AppFuse 1.0.1+
After you have successfully done so, in Eclipse open a test you'd like to run (i.e. UserDaoTest) and go to Run → Debug As → JUnit Test. If this doesn't work, I'd suggest just using the command line - i.e. ant test-dao -Dtestcase=UserDAO. I've spent countless hours trying to get AppFuse tests to run in Eclipse and whenever I figure out a formula to make things work - it quits working the next time. Running tests from the command line always works. ;-)
At line 60 changed 1 line.
!!Tips for Debugging and UI Editing [#7]
!!Tips for Debugging and UI Editing [#5]

Back to AppFuseEclipse, or to the Page History.