facebook

Web deploying deploying files problem

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #239622 Reply

    johnsw
    Member

    I’ve got a new webapp based on a lot of old legacy code and class files. I’m using Eclipse 3.1 with MyEclipseIDE 4 on Windows + TC 5.0.28 + JVM 1.4.2.06

    I need these class files to exist as a library so that I can compile a new servlet which will rely on them. Plus I need these class files deployed to web WEB-INF/classes directory.

    The class files do not exist in a package (yes, bad I know) but they were built ages ago, and we do not have the source code for them, so I cannot just add the *.java files to the source tree.

    Q1) How can I add the class files to the project so that they can be used to compile new servlets and also to have them deployed to the WEB-INF/classes directory?

    Q2) Some of these legacy servlets rely on property type files (named *.cfg) that must also exist in the WEB-INF/classes directory. Adding them to the src folder is not getting them deployed – only files ending in *.properties are being deployed.

    I want the the new java source files in src/, class files in legacycode/ and the sysparams.cfg file in src/ all deployed to WEB-INF/classes

    Myproject/
    src/
    newservlet.java
    test.properties
    c
    legacycode/
    lots of class files

    At the moment only newservlet.class and test.properties deployed to WEB-INF/classes – the other files are not

    Can anyone help me resolve these two issues?

    Thanks.

    John

    #239626 Reply

    johnsw
    Member

    OK deploying non-class files is now working OK. Stupid Windoze XP not showing the changes in the directory.

    But can I deploy the legacy class files?

    John

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Web deploying deploying files problem

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