modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/DeployResource.java

Print this page




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.javafx.tools.resource;
  27 
  28 import java.io.File;
  29 




  30 public class DeployResource extends PackagerResource {
  31     private final Type type;
  32     private final String mode;
  33     private final String os;
  34     private final String arch;
  35 
  36     public static enum Type {
  37         UNKNOWN, jnlp, jar, nativelib, icon, license, data
  38     };
  39 
  40     public static final String TYPE_LICENSE = "license";
  41     public static final String TYPE_DATA    = "data";
  42 
  43     public DeployResource(final File baseDir, final String path) {
  44         this(baseDir, path, "eager");
  45     }
  46 
  47     public DeployResource(final File baseDir, final File file) {
  48         this(baseDir, file, "eager");
  49     }




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.javafx.tools.resource;
  27 
  28 import java.io.File;
  29 
  30 /**
  31  * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
  32  */
  33 @Deprecated(since="10", forRemoval=true)
  34 public class DeployResource extends PackagerResource {
  35     private final Type type;
  36     private final String mode;
  37     private final String os;
  38     private final String arch;
  39 
  40     public static enum Type {
  41         UNKNOWN, jnlp, jar, nativelib, icon, license, data
  42     };
  43 
  44     public static final String TYPE_LICENSE = "license";
  45     public static final String TYPE_DATA    = "data";
  46 
  47     public DeployResource(final File baseDir, final String path) {
  48         this(baseDir, path, "eager");
  49     }
  50 
  51     public DeployResource(final File baseDir, final File file) {
  52         this(baseDir, file, "eager");
  53     }