Changeset 3924

Show
Ignore:
Timestamp:
10/22/08 13:03:45 (3 months ago)
Author:
mtld
Message:

added 'docroot' buildtime property, usable in xml property files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pfixcore/ChangeLog

    r3923 r3924  
     12008-10-22  Martin Leidig  <mleidig@schlund.de> 
     2 
     3        Added 'docroot' buildtime property, which can be used in XML property 
     4        files to create absolute paths (necessary if the properties are read 
     5        by APIs which can't handle the 'pfixroot:' scheme and can't use the  
     6        ResourceUtil class. Example: <prop name="foo">${docroot}/bar</prop> 
     7 
     8        * src/de/schlund/pfixxml/config/BuildTimePropTask.java: added 
     9        'docroot' property 
     10        * skel/build-skel.xml: added 'docroot' attribute to task 
     11 
    1122008-10-22  Martin Leidig  <mleidig@schlund.de> 
    213 
  • trunk/pfixcore/skel/build-skel.xml

    r3916 r3924  
    743743     machine="${machine}" 
    744744     fqdn="${fqdn}" 
     745     docroot="${dir.projects}" 
    745746    /> 
    746747  </target> 
  • trunk/pfixcore/src/de/schlund/pfixxml/config/BuildTimePropTask.java

    r3394 r3924  
    3939 
    4040    private String uid; 
     41     
     42    private String docroot; 
    4143 
    4244    public void setFile(File file) { 
     
    6062    } 
    6163 
     64    public void setDocroot(String docroot) { 
     65        this.docroot = docroot; 
     66    } 
     67     
    6268    /* 
    6369     * (non-Javadoc) 
     
    7985            props.setProperty("fqdn", fqdn); 
    8086            props.setProperty("uid", uid); 
     87            props.setProperty("docroot", docroot); 
    8188             
    8289            Hashtable<String, String> antProps = this.getProject().getProperties();