- This topic has 4 replies, 2 voices, and was last updated 20 years, 6 months ago by
Riyad Kalla.
-
AuthorPosts
-
innovateParticipantI have a few properties files (*.properties) in my classpath and they do not get synchronized if I do changes to this files. Even when I force a redeployment, they get not updated on the tomcat server.
Setup:
MyEclispe 3.8 Beta2, Tomcat 5.0.25, Linux GTK, Deployed as exploded archive.MyUsers
|——- src/java (java files, included in classpath)
|——–src/conf (includes properties files, included in classpath)
|——–WEB-INF
innovateParticipantThe problem is, that the updated properties files are not copied over to WEB-INF/classes. I assume, that you synchronize from WEB-INF/classes to the tomcat server. Then, the problem is the compiler, right? I cleaned the project and rebuild the whole project. Now I have the updated properties files. Probably a problem of the aspectj compiler?
Riyad KallaMemberI have a few properties files (*.properties) in my classpath and they do not get synchronized if I do changes to this files. Even when I force a redeployment, they get not updated on the tomcat server.
This is very strange… can you veirfy that the files are getting copied over to the classes dir after you edit/save them?
The way the ME deployer works is that it hooks into the Eclipse notification mechanism for changes, so if a plugin is not honoring this and instead copying files into their places “behind the scenes” then ME has no way of knowing a file changed.
To see if this is what is happening, you can try editing your properties file, save it, verify that it HAS NOT been deployed, then refresh the project and see if all the sudden it gets deployed. Sometimes people have problems with Ant scripts that will generate files outside of Eclipse and place them into a location and forget to update their workspace after running the Ant script, so Eclipse/ME have no idea that a new file is there that needs to be deployed.
I hope this helps.
innovateParticipantI can confirm, that the modified properties files do net get deployed nor are they updated in the classes folder. I have to clean the project and build it from scratch – then the modified properties file get updated in the classes folder and gets deployed.
So I can assume, that the aspectj compiler or the aspectj builder does its job wrong?!
Regards,
Cyrill
Riyad KallaMemberCyrill did you try this suggestion:
To see if this is what is happening, you can try editing your properties file, save it, verify that it HAS NOT been deployed, then refresh the project and see if all the sudden it gets deployed. Sometimes people have problems with Ant scripts that will generate files outside of Eclipse and place them into a location and forget to update their workspace after running the Ant script, so Eclipse/ME have no idea that a new file is there that needs to be deployed.
This will help you determine if the aspectj compiler is/is not doing what it should be doing.
Also I was just made aware of a bug between the AspectJ compiler and our JSP editor that is aparently fixed in our internal build (incase you were running into that problem).
-
AuthorPosts