changeset 10735:f9706c9613a5

8191514: Deprecate com.sun.* and com.oracle.* packages in jdk.packager for removal Reviewed-by: kcr
author vdrozdov
date Thu, 07 Dec 2017 18:58:31 -0800
parents f5594a98ead9
children efbe2743f401
files modules/jdk.packager/src/main/java/com/oracle/tools/packager/AbstractBundler.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/AbstractImageBundler.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/BasicBundlers.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/Bundler.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/BundlerParamInfo.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/Bundlers.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/ConfigException.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/EnumeratedBundlerParam.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/IOUtils.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/InvalidBundlerParamException.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/JreUtils.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/Log.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/Platform.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/RelativeFileSet.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/StandardBundlerParam.java modules/jdk.packager/src/main/java/com/oracle/tools/packager/UnsupportedPlatformException.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CachingPrintStream.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CommonParams.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CreateBSSParams.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CreateJarParams.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/DeployParams.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/HtmlParam.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/JSCallback.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/JarSignature.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/Log.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/Main.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/MakeAllParams.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/PackagerException.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/PackagerLib.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/Param.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/SignJarParams.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/TemplatePlaceholders.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/BundleParams.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/Bundler.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/ConfigException.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/RelativeFileSet.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/UnsupportedPlatformException.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/ConsolidatedResources.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/DeployResource.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/DetailedResourceTraversal.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/PackagerResource.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/ResourceFilter.java modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/ResourceTraversal.java modules/jdk.packager/src/main/java/module-info.java
diffstat 44 files changed, 166 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/AbstractBundler.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/AbstractBundler.java	Thu Dec 07 18:58:31 2017 -0800
@@ -38,6 +38,10 @@
 import java.util.*;
 import com.oracle.tools.packager.IOUtils;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public abstract class AbstractBundler implements Bundler {
 
     private static final ResourceBundle I18N =
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/AbstractImageBundler.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/AbstractImageBundler.java	Thu Dec 07 18:58:31 2017 -0800
@@ -44,7 +44,10 @@
 
 /**
  * Common utility methods used by app image bundlers.
+ *
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
  */
+@Deprecated(since="10", forRemoval=true)
 public abstract class AbstractImageBundler extends AbstractBundler {
 
     private static final ResourceBundle I18N =
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/BasicBundlers.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/BasicBundlers.java	Thu Dec 07 18:58:31 2017 -0800
@@ -58,7 +58,10 @@
  *     <LI>Linux RPM</LI>
  *
  * </UL>
+ *
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
  */
+@Deprecated(since="10", forRemoval=true)
 public class BasicBundlers implements Bundlers {
 
     boolean defaultsLoaded = false;
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/Bundler.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/Bundler.java	Thu Dec 07 18:58:31 2017 -0800
@@ -29,9 +29,11 @@
 import java.util.Collection;
 import java.util.Map;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public interface Bundler {
-
-
     /**
      * @return User Friendly name of this bundler.
      */
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/BundlerParamInfo.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/BundlerParamInfo.java	Thu Dec 07 18:58:31 2017 -0800
@@ -30,8 +30,11 @@
 import java.util.function.BiFunction;
 import java.util.function.Function;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class BundlerParamInfo<T> {
-
     /**
      * The user friendly name of the parameter
      */
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/Bundlers.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/Bundlers.java	Thu Dec 07 18:58:31 2017 -0800
@@ -29,7 +29,10 @@
 import java.util.Iterator;
 import java.util.ServiceLoader;
 
-
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public interface Bundlers {
 
     /**
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/ConfigException.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/ConfigException.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,6 +25,10 @@
 
 package com.oracle.tools.packager;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class ConfigException extends Exception {
     final String advice;
 
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/EnumeratedBundlerParam.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/EnumeratedBundlerParam.java	Thu Dec 07 18:58:31 2017 -0800
@@ -49,7 +49,9 @@
  *     params.put(MAC_CATEGORY.getID(), value);
  * }</pre>
  *
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
  */
+@Deprecated(since="10", forRemoval=true)
 public class EnumeratedBundlerParam<T> extends BundlerParamInfo<T> {
     //Not sure if this is the correct order, my idea is that from and IDE's perspective
     //the string to display to the user is the key and then the value is some type of
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/IOUtils.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/IOUtils.java	Thu Dec 07 18:58:31 2017 -0800
@@ -35,6 +35,10 @@
 import java.nio.file.SimpleFileVisitor;
 import java.nio.file.attribute.BasicFileAttributes;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class IOUtils {
 
     public static void deleteRecursive(File path) throws IOException {
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/InvalidBundlerParamException.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/InvalidBundlerParamException.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,6 +25,10 @@
 
 package com.oracle.tools.packager;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class InvalidBundlerParamException extends RuntimeException {
     public InvalidBundlerParamException(String message) {
         super(message);
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/JreUtils.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/JreUtils.java	Thu Dec 07 18:58:31 2017 -0800
@@ -29,6 +29,10 @@
 import java.util.HashSet;
 import java.util.Set;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class JreUtils {
 
     public static class Rule {
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/Log.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/Log.java	Thu Dec 07 18:58:31 2017 -0800
@@ -30,6 +30,10 @@
 import java.io.PrintStream;
 import java.io.PrintWriter;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class Log {
     public static class Logger {
         private boolean verbose = false;
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/Platform.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/Platform.java	Thu Dec 07 18:58:31 2017 -0800
@@ -44,8 +44,10 @@
  *      //TODO Do something else
  *    }
  *  }
+ *
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
  */
-
+@Deprecated(since="10", forRemoval=true)
 public enum Platform {UNKNOWN, WINDOWS, LINUX, MAC;
     private static final Platform platform;
     private static final int majorVersion;
@@ -99,4 +101,4 @@
     public static int getMinorVersion() {
         return minorVersion;
     }
-}
\ No newline at end of file
+}
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/RelativeFileSet.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/RelativeFileSet.java	Thu Dec 07 18:58:31 2017 -0800
@@ -31,6 +31,10 @@
 import java.util.LinkedHashSet;
 import java.util.Set;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class RelativeFileSet {
 
     public enum Type {
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/StandardBundlerParam.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/StandardBundlerParam.java	Thu Dec 07 18:58:31 2017 -0800
@@ -59,6 +59,10 @@
 import static jdk.packager.internal.legacy.JLinkBundlerHelper.findPathOfModule;
 import static jdk.packager.internal.legacy.JLinkBundlerHelper.listOfPathToString;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class StandardBundlerParam<T> extends BundlerParamInfo<T> {
 
     public static final String MANIFEST_JAVAFX_MAIN ="JavaFX-Application-Class";
--- a/modules/jdk.packager/src/main/java/com/oracle/tools/packager/UnsupportedPlatformException.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/oracle/tools/packager/UnsupportedPlatformException.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,4 +25,8 @@
 
 package com.oracle.tools.packager;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class UnsupportedPlatformException extends Exception {}
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CachingPrintStream.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CachingPrintStream.java	Thu Dec 07 18:58:31 2017 -0800
@@ -27,6 +27,10 @@
 
 import java.io.PrintStream;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class CachingPrintStream {
 
     private PrintStream ps;
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CommonParams.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CommonParams.java	Thu Dec 07 18:58:31 2017 -0800
@@ -27,8 +27,11 @@
 
 import java.io.File;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public abstract class CommonParams {
-
     File outdir;
     boolean verbose;
 
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CreateBSSParams.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CreateBSSParams.java	Thu Dec 07 18:58:31 2017 -0800
@@ -31,6 +31,10 @@
 import java.util.ArrayList;
 import java.util.List;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class CreateBSSParams extends CommonParams {
     final List<PackagerResource> resources = new ArrayList<PackagerResource>();
 
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CreateJarParams.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/CreateJarParams.java	Thu Dec 07 18:58:31 2017 -0800
@@ -31,8 +31,11 @@
 import java.util.List;
 import java.util.Map;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class CreateJarParams extends CommonParams {
-
     final List<PackagerResource> resources = new ArrayList<PackagerResource>();
 
     String applicationClass;
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/DeployParams.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/DeployParams.java	Thu Dec 07 18:58:31 2017 -0800
@@ -47,7 +47,10 @@
 
 import static com.oracle.tools.packager.jnlp.JNLPBundler.*;
 
-@Deprecated
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class DeployParams extends CommonParams {
     public enum RunMode {
         WEBSTART, EMBEDDED, STANDALONE, ALL
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/HtmlParam.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/HtmlParam.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,7 +25,10 @@
 
 package com.sun.javafx.tools.packager;
 
-
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class HtmlParam extends Param {
     boolean needEscape = true;
 
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/JSCallback.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/JSCallback.java	Thu Dec 07 18:58:31 2017 -0800
@@ -29,8 +29,9 @@
  * Ant-independent version of the Callback class.
  *
  * @see com.sun.javafx.tools.ant.Callback
- *
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
  */
+@Deprecated(since="10", forRemoval=true)
 class JSCallback {
 
     private String name;
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/JarSignature.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/JarSignature.java	Thu Dec 07 18:58:31 2017 -0800
@@ -80,7 +80,10 @@
  *   - add entries using updateWithEntry()
  *   - use isValid() to validate result
  *   - use getCodeSigners() to get list of code signers used
+ *
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
  */
+@Deprecated(since="10", forRemoval=true)
 public class JarSignature {
     //name of jar manifest attribute that contains signature
     public static final String BLOB_SIGNATURE = "META-INF/SIGNATURE.BSF";
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/Log.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/Log.java	Thu Dec 07 18:58:31 2017 -0800
@@ -29,6 +29,10 @@
 import java.io.IOException;
 import java.io.PrintStream;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class Log extends com.oracle.tools.packager.Log {
     public static class Logger extends com.oracle.tools.packager.Log.Logger{
         public Logger(boolean v) {
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/Main.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/Main.java	Thu Dec 07 18:58:31 2017 -0800
@@ -43,7 +43,10 @@
 
 import jdk.packager.internal.legacy.JLinkBundlerHelper;
 
-
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class Main {
 
     private static final ResourceBundle bundle =
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/MakeAllParams.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/MakeAllParams.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,6 +25,10 @@
 
 package com.sun.javafx.tools.packager;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class MakeAllParams {
     String appClass;
     String preloader;
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/PackagerException.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/PackagerException.java	Thu Dec 07 18:58:31 2017 -0800
@@ -28,7 +28,10 @@
 import java.text.MessageFormat;
 import java.util.ResourceBundle;
 
-
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class PackagerException extends Exception {
     private static final ResourceBundle bundle =
             ResourceBundle.getBundle("com/sun/javafx/tools/packager/Bundle");
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/PackagerLib.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/PackagerLib.java	Thu Dec 07 18:58:31 2017 -0800
@@ -81,6 +81,10 @@
 import java.util.zip.ZipEntry;
 import java.util.zip.ZipOutputStream;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class PackagerLib {
     public static final String JAVAFX_VERSION = System.getProperty("java.version");
 
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/Param.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/Param.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,7 +25,10 @@
 
 package com.sun.javafx.tools.packager;
 
-
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class Param {
     String name;
     String value;
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/SignJarParams.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/SignJarParams.java	Thu Dec 07 18:58:31 2017 -0800
@@ -31,6 +31,10 @@
 import java.util.ArrayList;
 import java.util.List;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class SignJarParams extends CommonParams {
 
     final List<PackagerResource> resources = new ArrayList<PackagerResource>();
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/TemplatePlaceholders.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/TemplatePlaceholders.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,6 +25,10 @@
 
 package com.sun.javafx.tools.packager;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public enum TemplatePlaceholders {
 
     //location of dtjava.js
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/BundleParams.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/BundleParams.java	Thu Dec 07 18:58:31 2017 -0800
@@ -39,7 +39,10 @@
 
 import jdk.packager.internal.legacy.JLinkBundlerHelper;
 
-
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class BundleParams {
 
     final protected Map<String, ? super Object> params;
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/Bundler.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/Bundler.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,7 +25,10 @@
 
 package com.sun.javafx.tools.packager.bundlers;
 
-@Deprecated
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public final class Bundler {
 
     private Bundler() {}
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/ConfigException.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/ConfigException.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,6 +25,10 @@
 
 package com.sun.javafx.tools.packager.bundlers;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class ConfigException extends com.oracle.tools.packager.ConfigException {
 
     public ConfigException(String msg, String advice) {
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/RelativeFileSet.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/RelativeFileSet.java	Thu Dec 07 18:58:31 2017 -0800
@@ -31,6 +31,10 @@
 import java.util.LinkedHashSet;
 import java.util.Set;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class RelativeFileSet extends com.oracle.tools.packager.RelativeFileSet {
     public RelativeFileSet(File base, Set<File> files) {
         super(base, files);
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/UnsupportedPlatformException.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/bundlers/UnsupportedPlatformException.java	Thu Dec 07 18:58:31 2017 -0800
@@ -25,4 +25,8 @@
 
 package com.sun.javafx.tools.packager.bundlers;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class UnsupportedPlatformException extends com.oracle.tools.packager.UnsupportedPlatformException {}
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/ConsolidatedResources.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/ConsolidatedResources.java	Thu Dec 07 18:58:31 2017 -0800
@@ -30,6 +30,10 @@
 import java.util.SortedMap;
 import java.util.TreeMap;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public final class ConsolidatedResources {
     private final SortedMap<ResourceKey, ResourceRecord> resourceMap;
 
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/DeployResource.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/DeployResource.java	Thu Dec 07 18:58:31 2017 -0800
@@ -27,6 +27,10 @@
 
 import java.io.File;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class DeployResource extends PackagerResource {
     private final Type type;
     private final String mode;
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/DetailedResourceTraversal.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/DetailedResourceTraversal.java	Thu Dec 07 18:58:31 2017 -0800
@@ -27,6 +27,10 @@
 
 import java.io.File;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public abstract class DetailedResourceTraversal implements ResourceTraversal {
     private String lastRelativePath;
 
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/PackagerResource.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/PackagerResource.java	Thu Dec 07 18:58:31 2017 -0800
@@ -27,6 +27,10 @@
 
 import java.io.File;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public class PackagerResource {
     private static final ResourceFilter ACCEPT_ALL_FILTER =
             new ResourceFilter() {
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/ResourceFilter.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/ResourceFilter.java	Thu Dec 07 18:58:31 2017 -0800
@@ -27,6 +27,10 @@
 
 import java.io.File;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public interface ResourceFilter {
     boolean descent(File file, String relativePath);
 
--- a/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/ResourceTraversal.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/ResourceTraversal.java	Thu Dec 07 18:58:31 2017 -0800
@@ -27,6 +27,10 @@
 
 import java.io.File;
 
+/**
+ * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
+ */
+@Deprecated(since="10", forRemoval=true)
 public interface ResourceTraversal {
     boolean traverse(PackagerResource rootResource,
                      File file,
--- a/modules/jdk.packager/src/main/java/module-info.java	Thu Dec 07 18:20:59 2017 -0800
+++ b/modules/jdk.packager/src/main/java/module-info.java	Thu Dec 07 18:58:31 2017 -0800
@@ -36,6 +36,7 @@
  * @moduleGraph
  * @since 9
  */
+@SuppressWarnings("removal")
 module jdk.packager {
     requires jdk.jlink;