Orangevolt ANT Tasks » Tasks » Unix related tasks » unix.properties
unix.propertiesunix.link

2.11.1.1.  Example

build.xml
<project name="test project" basedir="." default="main">
  <taskdef resource="com/orangevolt/tools/ant/taskdefs.properties">
    <classpath>
      <pathelement path=".."/>
      <pathelement location="../lib/roxes-win32forjava-1.0.2.jar"/>
    </classpath>
  </taskdef>
    
  <target name="main">
    <unix.properties/>
      
    <echo>unix.user.isRoot = ${unix.user.isRoot}</echo>
      
    <echo>unix.programfiles = ${unix.programfiles}</echo>
    <echo>unix.common.programfiles = ${unix.common.programfiles}</echo>
      
    <echo>unix.kde.home = ${unix.kde.home}</echo>
    <echo>unix.kde.icons = ${unix.kde.icons}</echo>
      
    <echo>unix.kde.personal.desktop = ${unix.kde.personal.desktop}</echo>
    <echo>unix.kde.common.desktop = ${unix.kde.common.desktop}</echo>
      
    <echo>unix.kde.personal.programs_menu = ${unix.kde.personal.programs_menu}</echo>
    <echo>unix.kde.common.programs_menu = ${unix.kde.common.programs_menu}</echo>
      
    <echo>unix.kde.personal.autostart_menu = ${unix.kde.personal.autostart_menu}</echo>
    <echo>unix.kde.common.autostart_menu = ${unix.kde.common.autostart_menu}</echo>
      
    <echo>unix.kde.personal.documents = ${unix.kde.personal.documents}</echo>
    <echo>unix.kde.common.documents = ${unix.kde.common.documents}</echo>
      
    <echo>unix.kde.personal.templates = ${unix.kde.personal.templates}</echo>
    <echo>unix.kde.common.templates = ${unix.kde.common.templates}</echo>    
  </target>
</project>

The example above produce something like the following output:

build.xml output
[echo] unix.user.isRoot = ${unix.user.isRoot}
[echo] unix.programfiles = /home/lars/bin
[echo] unix.common.programfiles = /usr/local
[echo] unix.kde.home = /home/lars/.kde
[echo] unix.kde.icons = /home/lars/.kde/share/icons/
[echo] unix.kde.personal.desktop = /home/lars/Desktop/
[echo] unix.kde.common.desktop = ${unix.kde.common.desktop}
[echo] unix.kde.personal.programs_menu = /home/lars/.kde/share/applnk/
[echo] unix.kde.common.programs_menu = /etc/opt/kde3/share/applnk/
[echo] unix.kde.personal.autostart_menu = /home/lars/.kde/Autostart/
[echo] unix.kde.common.autostart_menu = ${unix.kde.common.autostart_menu}
[echo] unix.kde.personal.documents = /home/lars/Documents/
[echo] unix.kde.common.documents = ${unix.kde.common.documents}
[echo] unix.kde.personal.templates = /home/lars/.kde/share/templates/
[echo] unix.kde.common.templates = /opt/kde3/share/templates/

As you can see some properties may not be set (depends on your KDE configuration).