You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by rw...@apache.org on 2018/08/06 18:57:14 UTC
svn commit: r1837548 - in /pivot/trunk: build.xml
core/test/org/apache/pivot/util/test/VersionTest.java
web/src/org/apache/pivot/web/package.html
wtk-terra/src/org/apache/pivot/wtk/skin/terra/package.html
Author: rwhitcomb
Date: Mon Aug 6 18:57:14 2018
New Revision: 1837548
URL: http://svn.apache.org/viewvc?rev=1837548&view=rev
Log:
PIVOT-1039:
* Correct style errors from the previous change to VersionTest.java
* Fix (some) errors in the Javadoc process with Java 10
* Fix some of the errors in "package.html" files also found by Java 10
Modified:
pivot/trunk/build.xml
pivot/trunk/core/test/org/apache/pivot/util/test/VersionTest.java
pivot/trunk/web/src/org/apache/pivot/web/package.html
pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/package.html
Modified: pivot/trunk/build.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/build.xml?rev=1837548&r1=1837547&r2=1837548&view=diff
==============================================================================
--- pivot/trunk/build.xml (original)
+++ pivot/trunk/build.xml Mon Aug 6 18:57:14 2018
@@ -19,14 +19,28 @@ limitations under the License.
<project name="pivot" default="environment-info"
xmlns:artifact="antlib:org.apache.maven.artifact.ant"
xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant"
+ xmlns:if="ant:if"
+ xmlns:unless="ant:unless"
>
+ <!-- Java-version-related properties -->
+ <condition property="java_modules" value="true" else="false">
+ <not>
+ <!-- Since we only support Java 8 or above here, anything not 8 must be 9 or above -->
+ <equals arg1="${ant.java.version}" arg2="1.8"/>
+ </not>
+ </condition>
+
<!-- Classpath-related properties -->
<property environment="env"/>
<path id="classpath.env">
<pathelement location="${env.CLASSPATH}"/>
</path>
<path id="classpath.javalib">
- <fileset dir="${java.home}/lib" includes="**/*.jar" excludes="**/jfxrt.jar"/>
+ <fileset dir="${java.home}/lib">
+ <include name="**/*.jar"/>
+ <exclude name="**/jfxrt.jar"/>
+ <exclude name="missioncontrol/**/*.jar" if:true="${java_modules}"/>
+ </fileset>
</path>
<property name="classpath_env" refid="classpath.env"/>
<property name="classpath_javalib" refid="classpath.javalib"/>
@@ -373,6 +387,10 @@ limitations under the License.
<link href="http://download.oracle.com/javase/8/docs/api"/>
<link href="http://download.oracle.com/javaee/7/api/"/>
+
+ <arg value="-html4" if:true="${java_modules}"/>
+ <arg value="--add-modules" if:true="${java_modules}"/>
+ <arg value="java.activation" if:true="${java_modules}"/>
</javadoc>
<package-maven-source-or-javadoc-jar
@@ -547,6 +565,10 @@ limitations under the License.
<link href="https://docs.oracle.com/javase/8/docs/api/"/>
<link href="http://download.oracle.com/javaee/7/api/"/>
+
+ <arg value="-html4" if:true="${java_modules}"/>
+ <arg value="--add-modules" if:true="${java_modules}"/>
+ <arg value="java.activation" if:true="${java_modules}"/>
</javadoc>
</target>
Modified: pivot/trunk/core/test/org/apache/pivot/util/test/VersionTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/core/test/org/apache/pivot/util/test/VersionTest.java?rev=1837548&r1=1837547&r2=1837548&view=diff
==============================================================================
--- pivot/trunk/core/test/org/apache/pivot/util/test/VersionTest.java (original)
+++ pivot/trunk/core/test/org/apache/pivot/util/test/VersionTest.java Mon Aug 6 18:57:14 2018
@@ -19,7 +19,8 @@ package org.apache.pivot.util.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
-import java.util.regex.*;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import org.junit.Test;
@@ -123,7 +124,7 @@ public class VersionTest {
System.out.format("Java Runtime version (parsed and formatted): %1$s, raw: %2$s%n",
formattedJavaVersion, sysJavaVersion);
Matcher sysMatcher = versionPattern.matcher(sysJavaVersion);
- boolean matches = sysMatcher.matches()
+ boolean matches = sysMatcher.matches()
&& sysMatcher.group(1).equals(javaVersion.simpleToString());
assertTrue("Java Runtime version match", matches);
Modified: pivot/trunk/web/src/org/apache/pivot/web/package.html
URL: http://svn.apache.org/viewvc/pivot/trunk/web/src/org/apache/pivot/web/package.html?rev=1837548&r1=1837547&r2=1837548&view=diff
==============================================================================
--- pivot/trunk/web/src/org/apache/pivot/web/package.html (original)
+++ pivot/trunk/web/src/org/apache/pivot/web/package.html Mon Aug 6 18:57:14 2018
@@ -20,13 +20,15 @@ limitations under the License.
<body>
<p>Provides classes for communicating with HTTP-based web services.</p>
-<p>Fundamentally, a web query is simply an <a href="http://www.ietf.org/rfc/rfc2616.txt" target="_blank">HTTP</a> request. However, the default data format used by a web query is not HTML, but JSON. This allows a caller to effectively invoke database-like operations over the web - the HTTP methods are used in a manner that is very similar to their corresponding SQL equivalents:<p>
+<p>Fundamentally, a web query is simply an <a href="http://www.ietf.org/rfc/rfc2616.txt" target="_blank">HTTP</a> request. However, the default data format used by a web query is not HTML, but JSON. This allows a caller to effectively invoke database-like operations over the web - the HTTP methods are used in a manner that is very similar to their corresponding SQL equivalents:</p>
<table style="border-collapse:collapse; border:solid 1px #999999">
<thead>
- <td style="font-weight:bold">HTTP Method</td>
- <td style="font-weight:bold">SQL Query</td>
- <td style="font-weight:bold">Behavior</td>
+ <tr>
+ <th style="font-weight:bold">HTTP Method</th>
+ <th style="font-weight:bold">SQL Query</th>
+ <th style="font-weight:bold">Behavior</th>
+ </tr>
</thead>
<tr>
<td><tt>POST</tt></td>
Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/package.html
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/package.html?rev=1837548&r1=1837547&r2=1837548&view=diff
==============================================================================
--- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/package.html (original)
+++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/package.html Mon Aug 6 18:57:14 2018
@@ -25,19 +25,19 @@ Defines skin classes for the "Terra" the
<p>
Terra skins get their colors from the theme's color palette, which contains
-24 indexed colors. Most Terra skins expose a setter methods for each color
+24 indexed colors. Most Terra skins expose a setter method for each color
style that accepts an integer value; such methods allow callers to style
the component by referencing the theme's color palette. The default palette
is shown below:
</p>
<p>
-<img src="doc-files/palette.png" border="0" alt="The default color palette"/>
-<br/>
+<img src="doc-files/palette.png" border="0" alt="The default color palette">
+<br>
<font style="font-" color="#000000" size="-1" face="arial,helvetica,sanserif">
<i>The default color palette</i>
</font>
</p>
-<br/>
+<br>
<p>
The font, color palette, and message icons are defined in a JSON file that should contain a
@@ -45,9 +45,9 @@ The font, color palette, and message ico
</p>
<table border="1" cellpadding="5">
<tr>
-<th nowrap="nowrap">Property:</th>
-<th nowrap="nowrap">Type:</th>
-<th nowrap="nowrap">Description:</th>
+<th>Property</th>
+<th>Type</th>
+<th>Description</th>
</tr>
<tr valign="top">
<td><tt>font</tt></td>
@@ -140,21 +140,21 @@ If not set, a generic default will be us
</td>
</tr>
</table>
-<br/>
+<br>
<p>
By default, the theme definition in <tt>TerraTheme_default.json</tt> is used,
but can be overridden via the <tt>org.apache.pivot.wtk.skin.terra.location</tt>
-property.<br/>
-For Example, in VM arguments set:<br/>
-<tt>-Dorg.apache.pivot.wtk.skin.terra.location=TerraTheme_dark.json</tt><br/>
-or<br/>
-<tt>-Dorg.apache.pivot.wtk.skin.terra.location=/org/apache/pivot/tests/TerraTheme_test.json</tt><br/>
+property.<br>
+For Example, in VM arguments set:<br>
+<tt>-Dorg.apache.pivot.wtk.skin.terra.location=TerraTheme_dark.json</tt><br>
+or<br>
+<tt>-Dorg.apache.pivot.wtk.skin.terra.location=/org/apache/pivot/tests/TerraTheme_test.json</tt><br>
</p>
-<br/>
+<br>
-<br/>
-<hr/>
+<br>
+<hr>
</body>
</html>