Skip to content

Commit 347001b

Browse files
committed
Build fixes
1 parent cce1239 commit 347001b

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed
File renamed without changes.

build.properties renamed to release-build.properties

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ worldwind.classes.dir=${worldwind.build.dir}/classes
1616
worldwind.doc.dir=${worldwind.build.dir}/doc
1717
worldwind.jar.dir=${worldwind.build.dir}/jar
1818
worldwind.test.results.dir=${worldwind.build.dir}/test-results
19-
worldwind.jdk=1.8
19+
worldwind.jdk=11
2020
#worldwind.exclude.jackson=true
2121

2222
# MIL-STD-2525 package build properties
@@ -26,9 +26,3 @@ milstd2525.png.dir=${milstd2525.out.dir}/png
2626
milstd2525.png.width=128
2727
milstd2525.png.height=128
2828

29-
# WebStart package build properties
30-
webstart.src.dir=${basedir}/webstart
31-
webstart.out.dir=${worldwind.build.dir}/webstart
32-
webstart.unsigned.dir=${webstart.out.dir}/jar-unsigned
33-
webstart.jar.dir=${webstart.out.dir}/jar
34-
webstart.jnlp.dir=${webstart.out.dir}/jnlp

release-build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
<!-- Import the ANT build properties and project ANT macros. -->
1515

16-
<property file="build.properties"/>
17-
<import file="build.macros.xml"/>
16+
<property file="release-build.properties"/>
17+
<import file="release-build.macros.xml"/>
1818

1919
<!-- Main build targets. Provides generic targets that compile the Java sources, bundle JAR libraries, assemble API
2020
documentation, test the Java sources, and clean up the build output. -->

src/gov/nasa/worldwindx/examples/MeasureToolPanel.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private void makePanel(Dimension size) {
116116
JPanel shapePanel = new JPanel(new GridLayout(1, 2, 5, 5));
117117
shapePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
118118
shapePanel.add(new JLabel("Shape:"));
119-
shapeCombo = new JComboBox(new String[]{"Line", "Path", "Polygon", "Circle", "Ellipse", "Square", "Rectangle"});
119+
shapeCombo = new JComboBox<>(new String[]{"Line", "Path", "Polygon", "Circle", "Ellipse", "Square", "Rectangle"});
120120
shapeCombo.addActionListener((ActionEvent event) -> {
121121
String item = (String) ((JComboBox) event.getSource()).getSelectedItem();
122122
switch (item) {
@@ -151,7 +151,7 @@ private void makePanel(Dimension size) {
151151
JPanel pathTypePanel = new JPanel(new GridLayout(1, 2, 5, 5));
152152
pathTypePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
153153
pathTypePanel.add(new JLabel("Path type:"));
154-
pathTypeCombo = new JComboBox(new String[]{"Linear", "Rhumb", "Great circle"});
154+
pathTypeCombo = new JComboBox<>(new String[]{"Linear", "Rhumb", "Great circle"});
155155
pathTypeCombo.setSelectedIndex(2);
156156
pathTypeCombo.addActionListener((ActionEvent event) -> {
157157
String item = (String) ((JComboBox) event.getSource()).getSelectedItem();
@@ -175,7 +175,7 @@ private void makePanel(Dimension size) {
175175
JPanel unitsPanel = new JPanel(new GridLayout(1, 2, 5, 5));
176176
unitsPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
177177
unitsPanel.add(new JLabel("Units:"));
178-
unitsCombo = new JComboBox(new String[]{"M/M\u00b2", "KM/KM\u00b2", "KM/Hectare", "Feet/Feet\u00b2",
178+
unitsCombo = new JComboBox<>(new String[]{"M/M\u00b2", "KM/KM\u00b2", "KM/Hectare", "Feet/Feet\u00b2",
179179
"Miles/Miles\u00b2", "Nm/Miles\u00b2", "Yards/Acres"});
180180
unitsCombo.setSelectedItem("KM/KM\u00b2");
181181
unitsCombo.addActionListener((ActionEvent event) -> {
@@ -219,7 +219,7 @@ private void makePanel(Dimension size) {
219219
JPanel anglesPanel = new JPanel(new GridLayout(1, 2, 5, 5));
220220
anglesPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
221221
anglesPanel.add(new JLabel("Angle Format:"));
222-
anglesCombo = new JComboBox(new String[]{"DD", "DMS"});
222+
anglesCombo = new JComboBox<>(new String[]{"DD", "DMS"});
223223
anglesCombo.setSelectedItem("DD");
224224
anglesCombo.addActionListener((ActionEvent event) -> {
225225
String item = (String) ((JComboBox) event.getSource()).getSelectedItem();

0 commit comments

Comments
 (0)