Skip to content

Configuration file: tasks.properties

Cyrille Chopelet edited this page Jul 10, 2013 · 5 revisions

Daily tasks works thanks to the tasks.properties file. Here is a description of all available properties.

Sample file

# === GENERAL BEHAVIOUR === #

# Specify a locale
# Use xx or xx_YY with xx being the ISO code for language and YY the ISO code for country.
# Leave blank to use the system default.
#locale=en
#locale=en_US

# true to display tasks on top of other windows
# false otherwise
#always.on.top=false
always.on.top=true

# Choose a theme
theme=GRAY

# === TASKS === #

# change the separator if you need to use the default on in your tasks description
tasks.separator=;
tasks.todos=Task 1;Task 2;Task 3

Available properties and values

locale

Specifies which locale should be used for the messages to display.

  • Mandatory: no
  • Possible values: xx or xx_YY, with xx being the lowercase language ISO code and YY the uppercase country ISO code
  • Default: as provided by system

msg.level

Specifies the level from which messages are displayed to the user.

  • Mandatory: no
  • Possible values: INFO, WARNING, ERROR (any other value will trigger a warning message)
  • Default: WARNING

always.on.top

If set to true, the to-do list will always stay on top of other applications. Any other value will cancel this behavior.

  • Mandatory: no (absence will trigger an info message)
  • Possible values: true or false
  • Default: true

theme

This defines the general appearance of the application.

  • Mandatory: no (absence will trigger an info message)
  • Possible values:
    • LIGHT
    • GRAY
    • DARK
    • BLACK
    • BLUE
    • CYAN
    • GREEN
    • YELLOW
    • ORANGE
    • RED
    • PINK
    • MAGENTA
    • Any other value will trigger a warning message.
  • Default: GRAY

Tasks fields

  • Mandatory: yes
  • Possible values: free text

tasks.separator

Contains the character which should be used to separate the different tasks.

tasks.todos

Contains a list of tasks separated with the character given above.

Specifying which file to use

You may wish to use another file than task.properties, or maybe you cannot place it in the same directory. In this case, you can use the command-line to force the application to use another configuration file:

java -jar /path/to/your/daily-tasks.jar /path/to/your/configuration.properties