與其他應用程式整合 > 整合的軟體管理 > 《PTC Windchill Integration for Software Build Tools 開發人員指南》 > 使用 Windchill Integration for Software Build Tools 指令 > 範例:從自訂版次指令集執行 Software Build Tools 指令
  
範例:從自訂版次指令集執行 Software Build Tools 指令
下列範例顯示如何執行 Software Build Tools 指令,以使用自訂版次指令集來建立軟體版次:
java $(Username) $(Password) —jar $(SoftwareBuildtoolsJar) —ServiceName CreateAndUpload —ContainerType PRODUCT —ContainerName $(Container) —Location FPGA/Builds —ObjectType SWBuild —ObjectName $(name)—$(version) -Filename D:/dist_client_windows/auto_test/auto_test_results.txt —IsPrimary false
java $(Username) $(Password) —jar $( SoftwareBuildtools.jar) —ServiceName UpdateObject —ContainerType PRODUCT -ContainerName $(Container) —ObjectName $(name)—$(version) —Location FPGA/Builds —Attributes RialtoBuildVersion=$(version)\;RialtoBuildLabel=$(label)\;RialtoBuildDate (TODAY)\;RialtoBuildStatus=In Process\;RialtoBuildDescription=$(FullTitle) $(version)
下列範例顯示如何執行不同的 Software Build Tools 指令,以使用自訂版次指令集來將內容上載至軟體版次:
java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName AddContentToSWBuild —ContainerType PRODUCT —ContainerName $(Container) —Location FPGA/Builds —ObjectName $(name)—$(version) —Content D:/LCD/LPC2368.zip —Filename LPC2368.zip —IsPrimary true
java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName AddContentToSWBuild —ContainerType PRODUCT —ContainerName $(Container) —Location FPGA/Builds —ObjectName $(name)-$(version) —Content http://<custom_location>/LCD/LPC2368.zip —Filename LPC2368.zip —IsPrimary true
java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName UpdateObject —ContainerType PRODUCT —ContainerName $(Container) —ObjectName $(name)—$(version) —Location FPGA/Builds —Attributes RialtoBuildDate=$(TODAY)\;RialtoBuildStatus=Successful
java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName LinkBuildToDocs —ContainerType PRODUCT —ContainerName $(Container) —BuildObjectName $(name)—$(version) —BuildObjectLocation FPGA/Builds —DocumentType SWDocument —DocumentName RTOS —DocumentLocation FPGA/Source
java $(Username) $(Password) —jar $(BuildMgrJar) —ServiceName LinkDefectToBuild —ContainerType PRODUCT —ContainerName $(Container) —BuildObjectName $(name)—$(version) —BuildObjectLocation FPGA/Builds —LinkType SubmittedTo —Adapter bugzilla —DefectID $(defectid1),2,3,4,5