buildframework/helium/sf/java/sysdef/src/com/nokia/helium/sysdef/ant/taskdefs/JoinTask.java
changeset 628 7c4a911dc066
parent 587 85df38eb4012
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    34  * </pre>
    34  * </pre>
    35  *
    35  *
    36  * For more information about system definition file v3.0 please check 
    36  * For more information about system definition file v3.0 please check 
    37  * <a href="http://developer.symbian.org/wiki/index.php/System_Definition">http://developer.symbian.org/wiki/index.php/System_Definition</a>.
    37  * <a href="http://developer.symbian.org/wiki/index.php/System_Definition">http://developer.symbian.org/wiki/index.php/System_Definition</a>.
    38  *
    38  *
       
    39  * <br>
       
    40  * This task relies on externals tools. Their location can be configured the following ways:
       
    41  *  <li>by configuring the sysdef.tools.home property, fails if the location is incorrect.
       
    42  *  <li>The parent folder of the joinsysdef tool from the PATH, fallback on SDK location.
       
    43  *  <li>Default SDK location.
       
    44  *
    39  * @ant.task name="joinSysdef" category="Sysdef"
    45  * @ant.task name="joinSysdef" category="Sysdef"
    40  */
    46  */
    41 
    47 
    42 public class JoinTask extends AbstractSydefTask {
    48 public class JoinTask extends AbstractSydefTask {
    43     private static final String XSLT = "sf/os/buildtools/bldsystemtools/sysdeftools/joinsysdef.xsl"; 
    49     private static final String XSLT = "joinsysdef.xsl"; 
    44 
    50 
    45     /**
    51     /**
    46      * {@inheritDoc}
    52      * {@inheritDoc}
    47      */
    53      */
    48     public void execute() {
    54     public void execute() {
       
    55         // This task is configure to always fail on warnings,
       
    56         // because it doesn't fails in case of missing link. 
       
    57         this.setFailOnWarning(true);
    49         check();
    58         check();
    50         log("Joining " + this.getSrcFile()); 
    59         log("Joining " + this.getSrcFile()); 
    51         log("Creating " + this.getDestFile());
    60         log("Creating " + this.getDestFile());
    52         transform(new Hashtable<String, String>());
    61         transform(new Hashtable<String, String>());
    53     }
    62     }
    55     /**
    64     /**
    56      * {@inheritDoc}
    65      * {@inheritDoc}
    57      */
    66      */
    58     @Override
    67     @Override
    59     protected File getXsl() {
    68     protected File getXsl() {
    60         return new File(this.getEpocroot(), XSLT);
    69         return new File(SysdefUtils.getSysdefHome(getProject(), this.getEpocroot()), XSLT);
    61     }
    70     }
    62 }
    71 }