Follow these directions to create the directory structure on your hard drive that is necessary to develop a driver.
Anywhere that this instructs you to create something called "YourDriver", replace "YourDriver" with the name of your driver. For example, if you have decided to name your driver the "ultimate driver", then replace "yourDriver" with "ultimateDriver" or "YourDriver" with "UltimateDriver". Follow the same capitalization format too. Replace "yourCompany" with the name of your company. For example, if you are developing this driver for a company called Acme Co, then replace "yourCompany" with "acmeCo" and "YourCompany" with "AcmeCo". Follow the same capitalization format here too. Replace "jarfilename" with the name that you wish to assign to the resulting jar file when your driver is compiled. For example, if you want your driver's jar file to be named "ultimate.jar" then replace "jarFileName" with "ultimate".
Next, open the empty build.xml file and add the following (replacing the text yourDriver, jarFileName and yourCompany as previously described). Please replace yd with the lower-case version of your driver's initials. For example, if you decide to name your driver the ultimate driver then please replace yd with ud.
Please consider changing the description attribute to a brief sentence that describes your driver.
<!-- Module Build File --> <module name = "jarFileName" bajaVersion="3.2" preferredSymbol = "yd" description = "A driver built on the development driver framework." vendor = "yourCompany" > <!-- Dependencies --> <dependency name="alarm" vendor="Tridium" vendorVersion="3.0" /> <dependency name="baja" vendor="Tridium" vendorVersion="3.0" /> <dependency name="driver" vendor="Tridium" vendorVersion="3.0" /> <dependency name="devDriver" vendor="Tridium" vendorVersion="3.2" /> <dependency name="platform" vendor="Tridium" vendorVersion="3.0" /> <dependency name="control" vendor="Tridium" vendorVersion="3.0" /> <!-- Packages --> <package name="com.yourCompany.yourDriver" doc="true"/> <package name="com.yourCompany.yourDriver.comm" doc="true"/> <package name="com.yourCompany.yourDriver.comm.req" doc="true"/> <package name="com.yourCompany.yourDriver.comm.rsp" doc="true"/> <package name="com.yourCompany.yourDriver.discover" doc="true"/> <package name="com.yourCompany.yourDriver.identify" doc="true"/> <package name="com.yourCompany.yourDriver.point" doc="true"/> </module>
Please remember to save the file!
Next, open the empty module-include.xml file and add the following:
<!-- Module Include File --> <!-- Types --> <types> <!-- Type Example: <type name="YourClass" class="com.yourDriver.BYourClass"/> --> </types>
Copyright © 2000-2014 Tridium Inc. All rights reserved.