facebook

Properties not synchronized

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

    innovate
    Participant

    I 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

    #211552 Reply

    innovate
    Participant

    The 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?

    #211570 Reply

    Riyad Kalla
    Member

    I 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.

    #211620 Reply

    innovate
    Participant

    I 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

    #211632 Reply

    Riyad Kalla
    Member

    Cyrill 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).

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Properties not synchronized

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