facebook

Must modify output folder to get junit to run.

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #299508 Reply

    mxnmatch
    Member

    I used to get a not found exception when running junit and command line apps in my maven project. I eventually discovered that I could run junit and command line apps if I just modified the output folder for the project. However, doing that means that webapps are not deployed properly.

    So, I am constantly needing to modify the output folder of the project every time I want to run one or the other type of app.

    For command line apps the output folder that works is:
    AccessControl/target/classes
    for the webapp the output folder that works is:
    AccessControl/src/main/webapp/WEB-INF/classes
    For the above paths, obviously the project is named “AccessControl”.

    Personally I’d prefer that the output folder be in the target directory so that auto generated files are not put under the src directory. However, I’d be happy if I just didn’t need to modify the output folder all the time.

    I am using MyEclipse 7.1.1-20090310.

    #299530 Reply

    Unfortunately, MyEclipse deployment code only supports classes in WEB-INF/classes. We need that for our hot deployment support.

    #299545 Reply

    mxnmatch
    Member

    So it’s just impossible to have junit tests in a webapp and run them without manually modifying the output path every single time they must be run? This is ridiculous.

    #299546 Reply

    It is not possible in the current MyEclipse version.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Must modify output folder to get junit to run.

You must be logged in to post in the forum log in