def artifact_item(name, suffix): """ Creates simple artifactItem tag like this: <artifactItem> <groupId>org.kaaproject.kaa.examples</groupId> <artifactId>profilingdemo</artifactId> <version>${kaa-sample-apps.version}</version> <classifier>profiling-src-objc</classifier> <type>tar.gz</type> <overWrite>false</overWrite> <outputDirectory>${base.path}/demo_projects/objc</outputDirectory> <destFileName>profiling_demo.tar.gz</destFileName> </artifactItem> """ print("[INFO] Creating new artifactItem tag for name=%s, suffix=%s" % (name, suffix)) return E.artifact_item( etree.Comment(COMMENT_AUTOGENERATED), E.groupId("org.kaaproject.kaa.examples"), E.artifactId(name + "demo"), E.version("${kaa-sample-apps.version}"), E.classifier(name + "-src-" + suffix), E.type("tar.gz"), E.overWrite("false"), E.outputDirectory("${base.path}/demo_projects/" + suffix), E.destFileName(name + "_demo.tar.gz"), )
def dependency_bundle(name): """ Generates dependency tag like this: <dependency> <groupId>org.kaaproject.kaa.examples</groupId> <artifactId>cellmonitordemo</artifactId> <version>${kaa-sample-apps.version}</version> </dependency> """ print("[INFO] Creating new dependency tag for bundle=%s" % name) return E.dependency( etree.Comment(COMMENT_AUTOGENERATED), E.groupId("org.kaaproject.kaa.examples"), E.artifactId(name + "demo"), E.version("${kaa-sample-apps.version}"), )
def dependency(name, suffix): """ Generates dependency tag like this: <dependency> <groupId>org.kaaproject.kaa.examples</groupId> <artifactId>profilingdemo</artifactId> <version>${kaa-sample-apps.version}</version> <classifier>profiling-src-cpp</classifier> <type>tar.gz</type> <scope>provided</scope> </dependency> """ print("[INFO] Creating new dependency tag for name=%s, suffix=%s" % (name, suffix)) return E.dependency( etree.Comment(COMMENT_AUTOGENERATED), E.groupId("org.kaaproject.kaa.examples"), E.artifactId(name + "demo"), E.version("${kaa-sample-apps.version}"), E.classifier(name + "-src-" + suffix), E.type("tar.gz"), E.scope("provided"), )