DAVE SDK 4.1.2 Help content (翻译——manifest 结构



Manifest Properties

一个DAVE™ APP 必须要有一个manifest文件。例如:DEMOAPP.manifest.

Manifest包含下面部分:

  1. 加载声明(Import statements)

  2. (Class object for DAVE™ APP (e.g. DEMOAPP))

 

所有的属性必须在app类中定义。如果它们没有被声明,在生成app时就会产生错误

这些属性不能被appGUI改变。它们能以任何顺序被定义,能在templates file 中被读取。

 

属性应该这样定义:

def    <property_name>= value>

<Type> > < 

 

 

在下面的程序你能看到生成manifest file 和其中的定义和各个属性

1

 2

 3

 4

 5

 6

 7

 8

 9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

// Import statements

import ifx.davex.app.manifest.*

 

class DEMOAPP extends DEMOAPP_GUI {

   // Note : Following APP properties are mandatory and important

// Begin : APP property section

   /**

    * APP version

    * Format: a string with three digit separated by a dot.

    */

    def version = '1.0.0'

    * APP categories declaration.

    * It is list of strings. Subcategories are separated by slash.

    * No limits on number of categories and subcategories depth.

categoriesDescription ["Category/Sub Category"]

/**

    * Minimum DAVE version required for this APP.

    *

    * It is string with three digit separated by a dot.

minDaveVersion = '4.0.0'

    * Keywords used by search feature in APPs selection view

    * It is a list of string.

keywords ['My keyword']

    * softwareIDs is used to declare which devices are compatible with this APP.

    * It is a map with key a string containing a pattern that shall match the SW id of

    * the device and as value the minimal version of the APP.

    // Any step of XMC4500F144 and XMC4400F144

// Any step of XMC4400F100 and XMC4400F64

// Any step,any variant and any packages of XMC1300

softwareIDs [

        "XMC4.[4-5].00.F144.*":"1.0.0",

        "XMC4.4.00.(F100|F64).*"         "XMC1.3.*.*.*":"1.0.0"

        * Singleton property:

    * When it is true the APP can be instantiated only once.

singleton = false

    * initProvider property

    * It shall be true to add a call to <AppName>_Init()

initProvider  

    * Deprecated APP

    * Set it to true to indicate that the APP shall be not used for new projects.

deprecated     * Sharable property.

    * It shall be true to allows multiple APPs to require the same instance of this APP.

sharable     * APP function description.

description = "Here the APP description. Please add appropriate APP description"

// End   : APP property section

// Begin : User APP property section

// End   : User APP property section

// APP Constructor

public DEMOAPP(DaveEnv daveEnv)         //Todo: Initialize manifest variables here

}

// File Generation

def generateFiles(){

        generate("demoapp.tmpl""demoapp.h"false)

}

 

属性

version

categoriesDescription

minDaveVersion

keywords

softwareIDs

singleton

initProvider

deprecated

sharable

descrition

相关文章

背景:    8月29日,凌晨4点左右,某服务告警,其中一个...
https://support.smartbear.comeadyapi/docs/soapui/steps/g...
有几个选项可用于执行自定义JMeter脚本并扩展基线JMeter功能...
Scala和Java为静态语言,Groovy为动态语言Scala:函数式编程,...
出处:https://www.jianshu.com/p/ce6f8a1f66f4一、一些内部...
在运行groovy的junit方法时,报了这个错误:java.lang.Excep...