Skip to content

Commit

Permalink
Merge branch 'openhab:main' into blockly_new_blocks2
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-hoehn committed Dec 6, 2022
2 parents f3cada8 + e11bf7e commit 4e165d3
Show file tree
Hide file tree
Showing 16 changed files with 357 additions and 84 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ bin/
.metadata/
.openapi-generator/
**/.settings/org.eclipse.*
features/*/src/main/history
bundles/**/src/main/history
features/**/src/main/history
features/**/src/main/feature
npm-debug.log
node_modules/
.idea
11 changes: 11 additions & 0 deletions bundles/org.openhab.ui.basic/src/main/feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<features name="org.openhab.ui.basic-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>

<feature name="openhab-ui-basic" description="Basic UI" version="${project.version}">
<feature>openhab-core-ui</feature>
<feature>openhab-core-io-rest-sitemap</feature>
<bundle>mvn:org.openhab.ui.bundles/org.openhab.ui.basic/${project.version}</bundle>
<configfile finalname="${openhab.conf}/services/basicui.cfg" override="false">mvn:org.openhab.ui.features/org.openhab.ui.features.openhab-ui-external/${project.version}/cfg/basic</configfile>
</feature>
</features>
12 changes: 12 additions & 0 deletions bundles/org.openhab.ui.cometvisu.php/src/main/feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<features name="org.openhab.ui.cometvisu-php-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>
<repository>mvn:org.openhab.ui.bundles/org.openhab.ui.cometvisu/${project.version}/xml/features</repository>

<feature name="openhab-ui-cometvisu-php" description="PHP support for CometVisu" version="${project.version}">
<feature>openhab-core-ui</feature>
<feature>openhab-ui-cometvisu</feature>
<bundle>mvn:org.openhab.ui.bundles/org.openhab.ui.cometvisu.php/${project.version}</bundle>
<bundle>mvn:org.openhab/com.caucho.quercus/4.0.45</bundle>
</feature>
</features>
24 changes: 23 additions & 1 deletion bundles/org.openhab.ui.cometvisu/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.14.0-rc2</version>
<version>${jackson.version}</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -155,6 +155,28 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifact</id>
<goals>
<goal>attach-artifact</goal>
</goals>
<phase>package</phase>
<configuration>
<artifacts>
<artifact>
<file>target/feature/feature.xml</file>
<type>xml</type>
<classifier>features</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
36 changes: 36 additions & 0 deletions bundles/org.openhab.ui.cometvisu/src/main/feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<features name="org.openhab.ui.cometvisu-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>

<feature name="openhab-ui-cometvisu" description="CometVisu Backend" version="${project.version}">
<feature>openhab-core-model-item</feature>
<feature>openhab-core-model-sitemap</feature>
<feature>openhab-core-ui-icon</feature>
<feature>openhab-core-ui</feature>
<feature dependency="true">openhab.tp-jaxb</feature>
<feature dependency="true">openhab.tp-jackson</feature>
<bundle dependency="true">mvn:org.rrd4j/rrd4j/3.8.2</bundle>
<bundle>mvn:org.openhab.ui.bundles/org.openhab.ui.cometvisu/${project.version}</bundle>
<config name="org.openhab.cometvisu">
webFolder=../../../CometVisu/src/

icons>enableMapping=true

icons.mapping>firstfloor=control_building_int_og
icons.mapping>groundfloor=control_building_int_eg
icons.mapping>cellar=control_building_int_kg
icons.mapping>garden=scene_garden
icons.mapping>sun=weather_sun
icons.mapping>video=scene_livingroom
icons.mapping>kitchen=scene_dinner
icons.mapping>bath=scene_bath
icons.mapping>corridor=scene_hall
icons.mapping>office=scene_office
icons.mapping>boy1=scene_childs_room
icons.mapping>bedroom=scene_sleeping
icons.mapping>heating=sani_heating
icons.mapping>temperature=temp_temperature
icons.mapping>contact=fts_window_1w
</config>
</feature>
</features>
15 changes: 15 additions & 0 deletions bundles/org.openhab.ui.habot/src/main/feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<features name="org.openhab.ui.habot-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>

<feature name="openhab-ui-habot" description="HABot" version="${project.version}">
<feature>openhab-core-model-script</feature>
<feature>openhab-core-ui</feature>
<bundle>mvn:org.openhab.ui.bundles/org.openhab.ui.habot/${project.version}</bundle>
<bundle>mvn:org.openhab.core.bundles/org.openhab.core.semantics/${project.version}</bundle>
<bundle>mvn:org.openhab.core.bundles/org.openhab.core.io.rest/${project.version}</bundle>
<bundle dependency="true">mvn:org.bouncycastle/bcprov-jdk15on/1.69</bundle>
<bundle dependency="true">mvn:org.apache.opennlp/opennlp-tools/1.9.3</bundle>
<bundle dependency="true">mvn:org.bitbucket.b_c/jose4j/0.7.9</bundle>
</feature>
</features>
9 changes: 9 additions & 0 deletions bundles/org.openhab.ui.habpanel/src/main/feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<features name="org.openhab.ui.habpanel-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>

<feature name="openhab-ui-habpanel" description="HABPanel" version="${project.version}">
<feature>openhab-core-ui</feature>
<bundle>mvn:org.openhab.ui.bundles/org.openhab.ui.habpanel/${project.version}</bundle>
</feature>
</features>
80 changes: 80 additions & 0 deletions bundles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,29 @@
<type>pom</type>
<scope>test</scope>
</dependency>
<!-- Distribution -->
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>${karaf.version}</version>
<type>kar</type>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Repositories -->
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<version>${karaf.version}</version>
<classifier>features</classifier>
<type>xml</type>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -67,6 +90,59 @@
<skipIfEmpty>true</skipIfEmpty>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>${karaf.version}</version>
<extensions>true</extensions>
<configuration>
<startLevel>80</startLevel>
<aggregateFeatures>true</aggregateFeatures>
<checkDependencyChange>true</checkDependencyChange>
<failOnDependencyChange>false</failOnDependencyChange>
<logDependencyChanges>true</logDependencyChanges>
<overwriteChangedDependencies>true</overwriteChangedDependencies>
</configuration>
<executions>
<execution>
<id>compile</id>
<goals>
<goal>features-generate-descriptor</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<inputFile>${feature.directory}</inputFile>
</configuration>
</execution>
<execution>
<id>karaf-feature-verification</id>
<goals>
<goal>verify</goal>
</goals>
<phase>verify</phase>
<configuration>
<descriptors combine.children="append">
<!-- Apache Karaf -->
<descriptor>mvn:org.apache.karaf.features/framework/${karaf.version}/xml/features</descriptor>
<descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
<!-- Current feature under verification -->
<descriptor>file:${project.build.directory}/feature/feature.xml</descriptor>
</descriptors>
<distribution>org.apache.karaf.features:framework</distribution>
<javase>${oh.java.version}</javase>
<framework>
<feature>framework</feature>
</framework>
<features>
<feature>openhab-*</feature>
</features>
<verifyTransitive>false</verifyTransitive>
<ignoreMissingConditions>true</ignoreMissingConditions>
<fail>first</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand All @@ -86,6 +162,10 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down
46 changes: 46 additions & 0 deletions features/openhab-ui-external/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.ui.features</groupId>
<artifactId>org.openhab.ui.reactor.features</artifactId>
<version>3.4.0-SNAPSHOT</version>
</parent>

<artifactId>org.openhab.ui.features.openhab-ui-external</artifactId>
<packaging>pom</packaging>

<name>openHAB UI :: Features :: UI External</name>
<description>openHAB UI External</description>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifact</id>
<goals>
<goal>attach-artifact</goal>
</goals>
<phase>package</phase>
<configuration>
<artifacts>
<artifact>
<file>src/main/resources/conf/basicui.cfg</file>
<type>cfg</type>
<classifier>basic</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
23 changes: 23 additions & 0 deletions features/openhab-ui-external/src/main/resources/conf/basicui.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Defines the UI theme.
#
#theme=default

# Defines whether UI renders icons for the widgets or not.
#
#enableIcons=true

# When enabled, changes the layout so that more widgets can fit on the screen.
#
#condensedLayout=false

# Displays all widget states in uppercase.
#
#capitalizeValues=false

# Play audio sent to the web audio sink.
#
#webAudio=false

# The sitemap to show if no parameter is passed.
#
#defaultSitemap=
67 changes: 67 additions & 0 deletions features/openhab-ui/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.ui.features</groupId>
<artifactId>org.openhab.ui.reactor.features</artifactId>
<version>3.4.0-SNAPSHOT</version>
</parent>

<artifactId>org.openhab.ui.features</artifactId>

<packaging>feature</packaging>

<name>openHAB UI :: Features :: UI</name>
<description>openHAB UI Features</description>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>org.openhab.ui.features.openhab-ui-external</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<inherited>false</inherited>
<executions>
<execution>
<id>create-karaf-features</id>
<goals>
<goal>run</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<target>
<concat destfile="src/main/feature/feature.xml">
<header file="src/main/resources/header.xml" filtering="no"/>
<fileset dir="${basedirRoot}/bundles">
<include name="*/src/main/feature/feature.xml"/>
</fileset>
<filterchain>
<linecontainsRegExp>
<regexp
pattern="(feature&gt;)|(feature\s)|(bundle&gt;)|(bundle\s)|(configfile&gt;)|(configfile\s)"/>
</linecontainsRegExp>
</filterchain>
<footer file="src/main/resources/footer.xml" filtering="no"/>
</concat>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 2 additions & 0 deletions features/openhab-ui/src/main/resources/footer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

</features>
18 changes: 18 additions & 0 deletions features/openhab-ui/src/main/resources/header.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010-2022 Contributors to the openHAB project
See the NOTICE file(s) distributed with this work for additional
information.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
-->
<features name="${project.artifactId}-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">

<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>
Loading

0 comments on commit 4e165d3

Please sign in to comment.