modules/jdk.packager/src/main/java/com/oracle/tools/packager/RelativeFileSet.java

Print this page




  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.oracle.tools.packager;
  27 
  28 import java.io.File;
  29 
  30 import java.util.Collection;
  31 import java.util.LinkedHashSet;
  32 import java.util.Set;
  33 




  34 public class RelativeFileSet {
  35 
  36     public enum Type {
  37         UNKNOWN, jnlp, jar, nativelib, icon, license, data
  38     }
  39 
  40     private Type type = Type.UNKNOWN;
  41     private String mode;
  42     private String os;
  43     private String arch;
  44 
  45     private File basedir;
  46     private Set<String> files = new LinkedHashSet<>();
  47 
  48     public RelativeFileSet(RelativeFileSet copy) {
  49         type = copy.type;
  50         mode = copy.mode;
  51         os = copy.os;
  52         arch = copy.arch;
  53         basedir = copy.basedir;




  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.oracle.tools.packager;
  27 
  28 import java.io.File;
  29 
  30 import java.util.Collection;
  31 import java.util.LinkedHashSet;
  32 import java.util.Set;
  33 
  34 /**
  35  * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
  36  */
  37 @Deprecated(since="10", forRemoval=true)
  38 public class RelativeFileSet {
  39 
  40     public enum Type {
  41         UNKNOWN, jnlp, jar, nativelib, icon, license, data
  42     }
  43 
  44     private Type type = Type.UNKNOWN;
  45     private String mode;
  46     private String os;
  47     private String arch;
  48 
  49     private File basedir;
  50     private Set<String> files = new LinkedHashSet<>();
  51 
  52     public RelativeFileSet(RelativeFileSet copy) {
  53         type = copy.type;
  54         mode = copy.mode;
  55         os = copy.os;
  56         arch = copy.arch;
  57         basedir = copy.basedir;