Skip to content

Commit

Permalink
95: Migrate java10 demos to java12 demos, java12 to java13
Browse files Browse the repository at this point in the history
Task-Url: #95
  • Loading branch information
keilw committed Sep 28, 2020
1 parent 8c87a37 commit 1b96b73
Show file tree
Hide file tree
Showing 44 changed files with 79 additions and 45 deletions.
2 changes: 1 addition & 1 deletion console/basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.console</groupId>
<artifactId>uom-console-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<name>Basic UoM Console Demos</name>
<artifactId>uom-console-demos-basic</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -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());

}

}
2 changes: 1 addition & 1 deletion console/conference/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>tech.uom.demo.console</groupId>
<artifactId>uom-console-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>

<name>Conference Demo</name>
Expand Down
2 changes: 1 addition & 1 deletion console/java12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>tech.uom.demo.console</groupId>
<artifactId>uom-console-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<name>Basic UoM Console Demos for Java 12</name>
<artifactId>uom-console-demos-java12</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion console/java13/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>tech.uom.demo.console</groupId>
<artifactId>uom-console-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<name>Basic UoM Console Demos for Java 13</name>
<description>Java 13 Units of Measurement Console Demos</description>
Expand Down
2 changes: 1 addition & 1 deletion console/java14/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>tech.uom.demo.console</groupId>
<artifactId>uom-console-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<name>Basic UoM Console Demos for Java 14</name>
<artifactId>uom-console-demos-java14</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>tech.uom.demo</groupId>
<artifactId>uom-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>

<build>
Expand Down
2 changes: 1 addition & 1 deletion console/systems/common-java12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-console-demos-common-java12</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion console/systems/common-java14/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-console-demos-common-java14</artifactId>
<name>UoM Common Console Demos for Java 14</name>
Expand Down
2 changes: 1 addition & 1 deletion console/systems/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<name>UoM Common Console Demos</name>
<artifactId>uom-console-demos-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion console/systems/historical/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>historical</artifactId>
<name>Historical Unit Systems</name>
Expand Down
2 changes: 1 addition & 1 deletion console/systems/jscience/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>jscience</artifactId>
<name>JScience 4 Console Demos</name>
Expand Down
2 changes: 1 addition & 1 deletion console/systems/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.console</groupId>
<artifactId>uom-console-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion console/systems/si-java12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-si-console-demos-java12</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion console/systems/si/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-si-console-demos</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion console/systems/ucum-java12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-console-demos-ucum-java12</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion console/systems/ucum/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-console-demos-ucum</artifactId>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion console/systems/unicode-java12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-console-demos-unicode-java12</artifactId>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion console/systems/unicode/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>tech.uom.demo.console.systems</groupId>
<artifactId>uom-console-system-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-console-demos-unicode</artifactId>
<name>Unicode Console Demos</name>
Expand Down
2 changes: 1 addition & 1 deletion console/valhalla/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>uom-console-demos</artifactId>
<groupId>tech.uom.demo.console</groupId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>valhalla</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion desktop/javafx/fxlib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>tech.uom.demo.desktop</groupId>
<artifactId>uom-javafx-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-fxlib</artifactId>
<name>Units of Measurement FXlib</name>
Expand Down
2 changes: 1 addition & 1 deletion desktop/javafx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>tech.uom.demo.desktop</groupId>
<artifactId>uom-desktop-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<description>Demos of the Units of Measurement API using JavaFX</description>

Expand Down
2 changes: 1 addition & 1 deletion desktop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>tech.uom.demo</groupId>
<artifactId>uom-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<groupId>tech.uom.demo.desktop</groupId>
<artifactId>uom-desktop-demos</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion device/edison/hello/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.device.edison</groupId>
<artifactId>uom-edison-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-edison-hello</artifactId>
<name>Hello Edison Demo</name>
Expand Down
2 changes: 1 addition & 1 deletion device/edison/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.device</groupId>
<artifactId>uom-device-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<groupId>tech.uom.demo.device.edison</groupId>
<artifactId>uom-edison-demos</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion device/edison/tutorial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.device.edison</groupId>
<artifactId>uom-edison-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-edison-tutorial</artifactId>
<packaging>pom</packaging>
Expand Down
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion device/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>tech.uom.demo</groupId>
<artifactId>uom-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-device-demos</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion domain/energy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.domain</groupId>
<artifactId>uom-domain-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-energy-demos</artifactId>
<name>Units of Measurement Energy Demos</name>
Expand Down
2 changes: 1 addition & 1 deletion domain/health/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>tech.uom.demo.domain</groupId>
<artifactId>uom-domain-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>uom-health-demos-se</artifactId>
<name>Units of Measurement Health Demos for Java SE</name>
Expand Down
2 changes: 1 addition & 1 deletion domain/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>tech.uom.demo</groupId>
<artifactId>uom-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<description>Domain Specific Demos of the Units of Measurement API</description>
<groupId>tech.uom.demo.domain</groupId>
Expand Down
2 changes: 1 addition & 1 deletion domain/retail/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>tech.uom.demo.domain</groupId>
<artifactId>uom-domain-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>retail</artifactId>
<name>Retail Demos for Java SE</name>
Expand Down
2 changes: 1 addition & 1 deletion lang/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>tech.uom.demo</groupId>
<artifactId>uom-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>

<build>
Expand Down
2 changes: 1 addition & 1 deletion lang/repl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>uom-language-demos</artifactId>
<groupId>tech.uom.demo.lang</groupId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>repl</artifactId>
Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
<artifactId>uom-demos</artifactId>
<packaging>pom</packaging>
<name>Units of Measurement Demos</name>
<version>2.0.2-SNAPSHOT</version>
<url>http://github.com/unitsofmeasurement/uom-demos</url>
<url>https://unitsofmeasurement.github.io/uom-demos/</url>
<organization>
<name>Units of Measurement project</name>
<url>http://unitsofmeasurement.github.io</url>
Expand All @@ -36,7 +35,7 @@
<jsr.version>2.0</jsr.version>
<ri.version>2.0.4</ri.version>
<lib.version>2.0.1</lib.version>
<si.version>2.0.2-SNAPSHOT</si.version>
<si.version>2.0.1</si.version>
<systems.version>2.0.2</systems.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion src/etc/BMIDemoSE.launch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<listEntry value="1"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="tec.uom.demo.health.se.BMIDemoSE"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="tech.uom.demo.health.se.BMIDemoSE"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="${string_prompt:height} ${string_prompt:weight}"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="uom-health-demos-se"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
Expand Down
2 changes: 1 addition & 1 deletion src/etc/HeatingDemo (SE).launch
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="tec.uom.demo.energy.se.HeatingDemo"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="tech.uom.demo.energy.se.HeatingDemo"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="energy-se"/>
</launchConfiguration>
2 changes: 1 addition & 1 deletion src/etc/SmartHomeDemo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="tec.uom.demo.energy.SmartHomeDemo"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="tech.uom.demo.energy.SmartHomeDemo"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="energy"/>
</launchConfiguration>
1 change: 1 addition & 0 deletions src/etc/uom-demos clean install.launch
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-14"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/uom-demos}"/>
Expand Down
2 changes: 1 addition & 1 deletion web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>tech.uom.demo</groupId>
<artifactId>uom-demos</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<description>Web-based Demos for Units of Measurement</description>
<modules>
Expand Down
Loading

0 comments on commit 1b96b73

Please sign in to comment.