wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes eclipse and build.properties - what the heck is this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse and build.properties - what the heck is this?" Watch "eclipse and build.properties - what the heck is this?" New topic
Author

eclipse and build.properties - what the heck is this?

Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I was fiddling around with some code in eclispe, and thought I'd extract some configuration information into a properties file. As this information was related to the build process (destination directories, archive names etc.) I thought I'd name it "build.properties".

Imagine my surprise when, instead of opening my new file in the regulat text editor, like every other properties file I have ever created, Eclipse gave me some sort of strange build settings checklist. (see an image of what I mean)

  • Does it do this for anyone else?
  • If so, why, and what is it for?
  • And my usual question: how do I get it to stop doing it?


  • Thanks for any enlightenment


    Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
    Ilja Preuss
    author
    Sheriff

    Joined: Jul 11, 2001
    Posts: 14112
    Originally posted by Frank Carver:
    If so, why, and what is it for?


    I suspect that it is a standard file format used when developing Eclipse plugins.


    And my usual question: how do I get it to stop doing it?


    Temporarily: right click on the file, "open with..."

    Permanently: Preferences/General/Editors/File Associations - select file type "build.properties", choose a different default editor


    The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
    Frank Carver
    Sheriff

    Joined: Jan 07, 1999
    Posts: 6920
    thanks
    Stefan Evans
    Bartender

    Joined: Jul 06, 2005
    Posts: 1016
    Another alternative:
    See those two tabs down the bottom? Build and build.properties?

    Clicking on the other tab will bring up the text version of the file.
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: eclipse and build.properties - what the heck is this?
     
    Similar Threads
    scope of properties
    How to use the Ant build in v3 without a custom build.xml
    How to get name of property file...???
    Class in Eclipse won't go away...and now it doesn't compile
    I dont quite get some terms in build.xml