diff --git a/console/basic/pom.xml b/console/basic/pom.xml index c17a2d4a..d481a101 100644 --- a/console/basic/pom.xml +++ b/console/basic/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.console uom-console-demos - 2.0.2-SNAPSHOT + 2.0.2 Basic UoM Console Demos uom-console-demos-basic diff --git a/console/basic/src/main/java/tech/uom/demo/basic/format/EBNFDemo.java b/console/basic/src/main/java/tech/uom/demo/basic/format/EBNFDemo.java new file mode 100644 index 00000000..7bb2a6cd --- /dev/null +++ b/console/basic/src/main/java/tech/uom/demo/basic/format/EBNFDemo.java @@ -0,0 +1,34 @@ +package tech.uom.demo.basic.format; + +import java.io.PrintStream; +import java.io.UnsupportedEncodingException; +import java.util.Locale; +import java.util.ResourceBundle; + +import tech.units.indriya.format.EBNFUnitFormat; +import tech.units.indriya.format.SymbolMap; +import tech.units.indriya.unit.Units; + +/** + * Simple code to demonstrate use of aliases with the EBNFUnitFormat + */ +public class EBNFDemo { + + private static final String BUNDLE_NAME = "tech.units.indriya.format.messages"; //$NON-NLS-1$ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws UnsupportedEncodingException { + // TODO code application logic here + SymbolMap map = SymbolMap.of(ResourceBundle.getBundle(BUNDLE_NAME, Locale.ROOT)); + map.alias(Units.COULOMB.multiply(1.60217662e-19), "e"); + + EBNFUnitFormat unitParser = EBNFUnitFormat.getInstance(map); + + PrintStream utfOut = new PrintStream(System.out, true, "UTF-8"); + utfOut.println("Dimension of e: " + unitParser.parse("e").getDimension()); + + } + +} \ No newline at end of file diff --git a/console/conference/pom.xml b/console/conference/pom.xml index 0347b57b..d20a876c 100644 --- a/console/conference/pom.xml +++ b/console/conference/pom.xml @@ -7,7 +7,7 @@ tech.uom.demo.console uom-console-demos - 2.0.2-SNAPSHOT + 2.0.2 Conference Demo diff --git a/console/java12/pom.xml b/console/java12/pom.xml index b69d080f..a777e3e7 100644 --- a/console/java12/pom.xml +++ b/console/java12/pom.xml @@ -5,7 +5,7 @@ tech.uom.demo.console uom-console-demos - 2.0.2-SNAPSHOT + 2.0.2 Basic UoM Console Demos for Java 12 uom-console-demos-java12 diff --git a/console/java13/pom.xml b/console/java13/pom.xml index c94712af..3055f57d 100644 --- a/console/java13/pom.xml +++ b/console/java13/pom.xml @@ -6,7 +6,7 @@ tech.uom.demo.console uom-console-demos - 2.0.2-SNAPSHOT + 2.0.2 Basic UoM Console Demos for Java 13 Java 13 Units of Measurement Console Demos diff --git a/console/java14/pom.xml b/console/java14/pom.xml index c6214ace..6020ab02 100644 --- a/console/java14/pom.xml +++ b/console/java14/pom.xml @@ -5,7 +5,7 @@ tech.uom.demo.console uom-console-demos - 2.0.2-SNAPSHOT + 2.0.2 Basic UoM Console Demos for Java 14 uom-console-demos-java14 diff --git a/console/pom.xml b/console/pom.xml index b26ad9e2..e95d13ce 100644 --- a/console/pom.xml +++ b/console/pom.xml @@ -9,7 +9,7 @@ tech.uom.demo uom-demos - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/console/systems/common-java12/pom.xml b/console/systems/common-java12/pom.xml index c0872793..917f97e1 100644 --- a/console/systems/common-java12/pom.xml +++ b/console/systems/common-java12/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-console-demos-common-java12 diff --git a/console/systems/common-java14/pom.xml b/console/systems/common-java14/pom.xml index bfe0fc3b..1dd5a885 100644 --- a/console/systems/common-java14/pom.xml +++ b/console/systems/common-java14/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-console-demos-common-java14 UoM Common Console Demos for Java 14 diff --git a/console/systems/common/pom.xml b/console/systems/common/pom.xml index 015c6629..d47c98ae 100644 --- a/console/systems/common/pom.xml +++ b/console/systems/common/pom.xml @@ -5,7 +5,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 UoM Common Console Demos uom-console-demos-common diff --git a/console/systems/historical/pom.xml b/console/systems/historical/pom.xml index ca614680..8f8521d4 100644 --- a/console/systems/historical/pom.xml +++ b/console/systems/historical/pom.xml @@ -3,7 +3,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 historical Historical Unit Systems diff --git a/console/systems/jscience/pom.xml b/console/systems/jscience/pom.xml index 9171a881..2b3bbe1c 100644 --- a/console/systems/jscience/pom.xml +++ b/console/systems/jscience/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 jscience JScience 4 Console Demos diff --git a/console/systems/pom.xml b/console/systems/pom.xml index b966cc6c..075a57d8 100644 --- a/console/systems/pom.xml +++ b/console/systems/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.console uom-console-demos - 2.0.2-SNAPSHOT + 2.0.2 tech.uom.demo.console.systems uom-console-system-demos diff --git a/console/systems/si-java12/pom.xml b/console/systems/si-java12/pom.xml index 9f83002a..ce33957d 100644 --- a/console/systems/si-java12/pom.xml +++ b/console/systems/si-java12/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-si-console-demos-java12 diff --git a/console/systems/si/pom.xml b/console/systems/si/pom.xml index 5fec544e..a9798938 100644 --- a/console/systems/si/pom.xml +++ b/console/systems/si/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-si-console-demos diff --git a/console/systems/ucum-java12/pom.xml b/console/systems/ucum-java12/pom.xml index e5fdebfb..956a8949 100644 --- a/console/systems/ucum-java12/pom.xml +++ b/console/systems/ucum-java12/pom.xml @@ -5,7 +5,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-console-demos-ucum-java12 diff --git a/console/systems/ucum/pom.xml b/console/systems/ucum/pom.xml index 347d4d1b..232cf9e0 100644 --- a/console/systems/ucum/pom.xml +++ b/console/systems/ucum/pom.xml @@ -5,7 +5,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-console-demos-ucum diff --git a/console/systems/unicode-java12/pom.xml b/console/systems/unicode-java12/pom.xml index 934b57af..3f76c8f3 100644 --- a/console/systems/unicode-java12/pom.xml +++ b/console/systems/unicode-java12/pom.xml @@ -3,7 +3,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-console-demos-unicode-java12 diff --git a/console/systems/unicode/pom.xml b/console/systems/unicode/pom.xml index 138c5105..797f03a2 100644 --- a/console/systems/unicode/pom.xml +++ b/console/systems/unicode/pom.xml @@ -3,7 +3,7 @@ tech.uom.demo.console.systems uom-console-system-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-console-demos-unicode Unicode Console Demos diff --git a/console/valhalla/pom.xml b/console/valhalla/pom.xml index 36c9d2aa..23c4e8a7 100644 --- a/console/valhalla/pom.xml +++ b/console/valhalla/pom.xml @@ -5,7 +5,7 @@ uom-console-demos tech.uom.demo.console - 2.0.2-SNAPSHOT + 2.0.2 4.0.0 valhalla diff --git a/desktop/javafx/fxlib/pom.xml b/desktop/javafx/fxlib/pom.xml index 23757d6f..7eb90757 100644 --- a/desktop/javafx/fxlib/pom.xml +++ b/desktop/javafx/fxlib/pom.xml @@ -5,7 +5,7 @@ tech.uom.demo.desktop uom-javafx-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-fxlib Units of Measurement FXlib diff --git a/desktop/javafx/pom.xml b/desktop/javafx/pom.xml index 224feb44..7ec6993e 100644 --- a/desktop/javafx/pom.xml +++ b/desktop/javafx/pom.xml @@ -7,7 +7,7 @@ tech.uom.demo.desktop uom-desktop-demos - 2.0.2-SNAPSHOT + 2.0.2 Demos of the Units of Measurement API using JavaFX diff --git a/desktop/pom.xml b/desktop/pom.xml index fc9dab53..e22129f9 100644 --- a/desktop/pom.xml +++ b/desktop/pom.xml @@ -3,7 +3,7 @@ tech.uom.demo uom-demos - 2.0.2-SNAPSHOT + 2.0.2 tech.uom.demo.desktop uom-desktop-demos diff --git a/device/edison/hello/pom.xml b/device/edison/hello/pom.xml index ec680cce..28736c09 100644 --- a/device/edison/hello/pom.xml +++ b/device/edison/hello/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.device.edison uom-edison-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-edison-hello Hello Edison Demo diff --git a/device/edison/pom.xml b/device/edison/pom.xml index 9f4db7c9..07f9f6d6 100644 --- a/device/edison/pom.xml +++ b/device/edison/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.device uom-device-demos - 2.0.2-SNAPSHOT + 2.0.2 tech.uom.demo.device.edison uom-edison-demos diff --git a/device/edison/tutorial/pom.xml b/device/edison/tutorial/pom.xml index e0130ef8..fcc5cb6a 100644 --- a/device/edison/tutorial/pom.xml +++ b/device/edison/tutorial/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.device.edison uom-edison-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-edison-tutorial pom diff --git a/device/edison/tutorial/src/main/asciidoc/03-ExampleCode.asciidoc b/device/edison/tutorial/src/main/asciidoc/03-ExampleCode.asciidoc index 129900d6..622e011c 100644 --- a/device/edison/tutorial/src/main/asciidoc/03-ExampleCode.asciidoc +++ b/device/edison/tutorial/src/main/asciidoc/03-ExampleCode.asciidoc @@ -1,7 +1,7 @@ === Example Code Now you are ready to run a first "Hello World" project. -. We called it +HelloEdison+ in the package +tec.uom.demo.edison.hello+ +. We called it +HelloEdison+ in the package +tech.uom.demo.edison.hello+ . The following code: + [source,java] diff --git a/device/pom.xml b/device/pom.xml index f99f8bde..f44ebd5d 100644 --- a/device/pom.xml +++ b/device/pom.xml @@ -3,7 +3,7 @@ tech.uom.demo uom-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-device-demos pom diff --git a/domain/energy/pom.xml b/domain/energy/pom.xml index dc18b5a9..cca809a7 100644 --- a/domain/energy/pom.xml +++ b/domain/energy/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.domain uom-domain-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-energy-demos Units of Measurement Energy Demos diff --git a/domain/health/pom.xml b/domain/health/pom.xml index a26a64ec..9539a0d7 100644 --- a/domain/health/pom.xml +++ b/domain/health/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.domain uom-domain-demos - 2.0.2-SNAPSHOT + 2.0.2 uom-health-demos-se Units of Measurement Health Demos for Java SE diff --git a/domain/pom.xml b/domain/pom.xml index 28c00c9c..5cbe4ee9 100644 --- a/domain/pom.xml +++ b/domain/pom.xml @@ -8,7 +8,7 @@ tech.uom.demo uom-demos - 2.0.2-SNAPSHOT + 2.0.2 Domain Specific Demos of the Units of Measurement API tech.uom.demo.domain diff --git a/domain/retail/pom.xml b/domain/retail/pom.xml index cf03c902..ab32433f 100644 --- a/domain/retail/pom.xml +++ b/domain/retail/pom.xml @@ -5,7 +5,7 @@ tech.uom.demo.domain uom-domain-demos - 2.0.2-SNAPSHOT + 2.0.2 retail Retail Demos for Java SE diff --git a/lang/pom.xml b/lang/pom.xml index 9c87bc42..83e9972f 100644 --- a/lang/pom.xml +++ b/lang/pom.xml @@ -9,7 +9,7 @@ tech.uom.demo uom-demos - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/lang/repl/pom.xml b/lang/repl/pom.xml index d7ac783e..8124b75f 100644 --- a/lang/repl/pom.xml +++ b/lang/repl/pom.xml @@ -5,7 +5,7 @@ uom-language-demos tech.uom.demo.lang - 2.0.2-SNAPSHOT + 2.0.2 4.0.0 repl diff --git a/pom.xml b/pom.xml index b635c2fc..6669e69c 100644 --- a/pom.xml +++ b/pom.xml @@ -11,8 +11,7 @@ uom-demos pom Units of Measurement Demos - 2.0.2-SNAPSHOT - http://github.com/unitsofmeasurement/uom-demos + https://unitsofmeasurement.github.io/uom-demos/ Units of Measurement project http://unitsofmeasurement.github.io @@ -36,7 +35,7 @@ 2.0 2.0.4 2.0.1 - 2.0.2-SNAPSHOT + 2.0.1 2.0.2 diff --git a/src/etc/BMIDemoSE.launch b/src/etc/BMIDemoSE.launch index fb8c2d52..185e456c 100644 --- a/src/etc/BMIDemoSE.launch +++ b/src/etc/BMIDemoSE.launch @@ -7,7 +7,7 @@ - + diff --git a/src/etc/HeatingDemo (SE).launch b/src/etc/HeatingDemo (SE).launch index 2d8bbdbf..d7c19771 100644 --- a/src/etc/HeatingDemo (SE).launch +++ b/src/etc/HeatingDemo (SE).launch @@ -9,6 +9,6 @@ - + diff --git a/src/etc/SmartHomeDemo.launch b/src/etc/SmartHomeDemo.launch index 5b730486..025489a6 100644 --- a/src/etc/SmartHomeDemo.launch +++ b/src/etc/SmartHomeDemo.launch @@ -6,6 +6,6 @@ - + diff --git a/src/etc/uom-demos clean install.launch b/src/etc/uom-demos clean install.launch index ce2ea399..69a11205 100644 --- a/src/etc/uom-demos clean install.launch +++ b/src/etc/uom-demos clean install.launch @@ -15,6 +15,7 @@ + diff --git a/web/pom.xml b/web/pom.xml index 0e852708..ca36db94 100644 --- a/web/pom.xml +++ b/web/pom.xml @@ -7,7 +7,7 @@ tech.uom.demo uom-demos - 2.0.2-SNAPSHOT + 2.0.2 Web-based Demos for Units of Measurement diff --git a/web/sparkdemo/pom.xml b/web/sparkdemo/pom.xml index 8afb3238..8f26207b 100644 --- a/web/sparkdemo/pom.xml +++ b/web/sparkdemo/pom.xml @@ -3,7 +3,7 @@ tech.uom.demo.web uom-web-demos - 2.0.2-SNAPSHOT + 2.0.2 sparkdemo Spark Sensor Web API Demo diff --git a/web/springbootdemo/pom.xml b/web/springbootdemo/pom.xml index edbb327f..d5ce5275 100644 --- a/web/springbootdemo/pom.xml +++ b/web/springbootdemo/pom.xml @@ -5,7 +5,7 @@ uom-web-demos tech.uom.demo.web - 2.0.2-SNAPSHOT + 2.0.2 4.0.0 diff --git a/web/temperature-converter/pom.xml b/web/temperature-converter/pom.xml index 55e533dc..01217523 100644 --- a/web/temperature-converter/pom.xml +++ b/web/temperature-converter/pom.xml @@ -16,7 +16,7 @@ tech.uom.demo.web uom-web-demos - 2.0.2-SNAPSHOT + 2.0.2 temperature-converter war @@ -105,7 +105,7 @@ < declare the exclusion here > tech.uom.lib uom-lib-common tech.uom.lib uom-lib-common - 2.0.2-SNAPSHOT.1-SNAPSHOT --> + 2.0.2.1-SNAPSHOT --> diff --git a/web/vaadindemo/pom.xml b/web/vaadindemo/pom.xml index f4bea6d5..89e76bb9 100644 --- a/web/vaadindemo/pom.xml +++ b/web/vaadindemo/pom.xml @@ -4,7 +4,7 @@ tech.uom.demo.web uom-web-demos - 2.0.2-SNAPSHOT + 2.0.2 vaadindemo Vaadin Web Demo