• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xdoclet-ing a propery file

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to add xdoclet tags in a property file for documenting properties and then generate html out of it.

ie.
- my.properties
# @property:file id=$Id$
# description=Contains all database related properties

# @property:item name=db_server
# @property:item description=point to the database server
# @property:item default=test_server
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
imho, XDoclet1.x tags are javadoc tags. So it has to be specified in a java source file. The parser will not be able to parse a properties file and extract metadata.

XDoclet2, ideally yes it was'nt supposed to care where the metadata came from. So even though the design is a lot cleaner when compared to 1.x, its not there yet.

May be you can have your properties file in the form of XML with the required attributes and then get ant to apply a stylesheet on it and generate HTML and .properties file as well?
 
reply
    Bookmark Topic Watch Topic
  • New Topic