facebook

Deployment question on application resources file [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #209510 Reply

    yymeg
    Member

    I am working on eclipse 3.0+MyEclipse3.8. I created a web application with an ApplicationResources.properties file in it. For i18n reason, I created an external tool (a .bat file) to compile (java native2ascii) the property file.

    Then something happens:

    I edited and saved property file (system auto built it). Then the web project was marked as ‘deployment is out of date…’. If I deploy now, the built ApplicationResources.properties will exist in the .war file. However, I have to manually build it with my external tool. But, when I deploy the whole project after that, I cannot find the property in .war file!

    My develop environment is: eclpse 3.0+myeclipse3.8+tomcat5.0.19. Anybody can help? Thanks.

    #209636

    Scott Anderson
    Participant

    Are you using packaged deployment? Does the same thing happen with exploded?

    #209640

    yymeg
    Member

    Seems exploded mode is fine. It only happens under packaged mode.

    #209646

    Riyad Kalla
    Member

    Can you check your log file for an exception? If we can’t readily find an explination, is using exploded deployment going to work for you?

    Log file is under <workspace dir>\.metadata\.log

    #209657

    Scott Anderson
    Participant

    However, I have to manually build it with my external tool. But, when I deploy the whole project after that, I cannot find the property in .war file!

    This sounds like it might be caused by not refreshing the project after your external tool runs. Can you try to manually refresh it, then redeploy as an archive to see if that fixes the problem?

    #209663

    Riyad Kalla
    Member

    Ahh good call Scott.

    #209667

    yymeg
    Member

    Great answer, Scott! It works! Thank your guys for the excellent help.

    #209675

    Scott Anderson
    Participant

    I like it when I get them right. 🙂

    By the way, you can set your external tool to refresh the project automatically if you’ve installed it into Eclipse through the External Builders functionality. Please see the Eclipse doc for more details.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Deployment question on application resources file [Closed]

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