Description
Get the current drive letter that the task is being run from. It also handles linked resources. This is written for the newer UCM system where we no longer have fixed locations for things so that the same scripts can still be used. It is also assumed that it will be run on a windows machine. This will replace the value of the propertyName passed in if it already exists.
To use this as an ANT task, you will need to add a taskdef to your build file:
<taskdef name="applyDriveLetter" classname="com.deaded.ant.CurrentDriveLetterTask" classpath="commonAntTasks.jar"/>
Parameters
| Attribute | Description | Required |
| propertyName | The name of the property to put the result in. If this property already exists, it will be updated with the new value | Yes |
| projectName | The name of the project for which to find the drive letter | Yes |
Example
<applyDriveLetter propertyName="vob.root" projectName="myProject"/>
DeadEd.com
http://www.deaded.com/staticpages/index.php/applydrivelettertask