- This topic has 3 replies, 2 voices, and was last updated 18 years, 7 months ago by
Riyad Kalla.
-
AuthorPosts
-
Robin ClarkMemberI 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 WorkbenchVersion: 4.1.1 GA
Build id: 20060309-4.1.1-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.2
Build id: M20060118-1600Eclipse Platform
Version: 3.1.2
Build id: M20060118-1600Eclipse RCP
Version: 3.1.2
Build id: M20060118-1600Eclipse Java Development Tools
Version: 3.1.2
Build id: M20060118-1600Eclipse Plug-in Development Environment
Version: 3.1.2
Build id: M20060118-1600Eclipse Project SDK
Version: 3.1.2
Build id: M20060118-1600Eclipse 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.exeThank you.
Riyad KallaMemberWhere 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.
Robin ClarkMemberThe 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.
Riyad KallaMemberAhh, 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.
-
AuthorPosts