与其他应用程序集成 > 集成的软件管理 > 《PTC Windchill Integration for Software Build Tools 开发人员指南》 > 使用 Windchill Integration for 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)
下面的示例显示如何使用自定义版次脚本,运行各种“软件版次工具”命令来将内容上载到软件版次:
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