facebook

[Closed] Auto deploying changed files.

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

    Robin Clark
    Member

    I am using Eclipse 3.1.2 and MyEclipse 4.1.1. Although the .class files in WEB-INF/classes get automatically copied to my deployment directory, the MessageResources.properties does not get copied to the deployment directory. If I manually copy the file, the application works fine.

    Can someone explain the mechanism by which the IDE knows which files to copy to the deployment directory? How can I configure Eclipse to automatically copy the MessageResources.properties file to the deployment directory? I am using WebLogic 8.1 as my application server.

    My system configuration is as follows:

    *** Date: Fri Sep 29 09:25:29 EDT 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.4.2_05

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.1.1 GA
    Build id: 20060309-4.1.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Platform

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse RCP

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Java Development Tools

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Plug-in Development Environment

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Project SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Eclipse3.1.2\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    a9c_38
    -vm
    C:\bea\jdk142_05\jre\bin\javaw.exe

    Thank you.

    #259573 Reply

    Riyad Kalla
    Member

    Where does the property file live? It should be in your /src dir somewhere, and then it is “built” out to your /classes dir in the respective location, at which point MyEclipse wlil copy it out.

    If what you really mean is that you make changes to it and don’t see the changes reflected in the application, that doesn’t have anything to do with auto-deployment, but instead means that the code that loads the properties file is not written to either time out, or check for new files, so it has most likely loaded the old copy and cached it.

    #259579 Reply

    Robin Clark
    Member

    The property file is in the /src directory. When I run the ant script it gets copied to the WEB-INF/classes directory. The problem is that it does not get copied to the deployment directory (which is different from my workspace). Can you direct me to some documentation that explains how the auto-deployment works?

    I have tried stopping my application server and re-started it. The main problem is that I don’t understand the mechanisms that drive what gets copied from the workspace to the deployment directories and when it gets copied.

    Thank you for your help.

    #259586 Reply

    Riyad Kalla
    Member

    Ahh, the build script is the issue. Deployment is tied to the build cycle, when you run out-of-process processes that mutate your project layout without Eclipse knowing, the build cycle isn’t triggered and deployment doesn’t know about the new files.

    So the workaround is to either refresh your project, or go to Window > Prefs > General > Worksapce, and check “Refresh automatically” and you should be all set.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Auto deploying changed files.

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