modules/jdk.packager/src/main/java/com/sun/javafx/tools/resource/PackagerResource.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 PackagerResource {
  31     private static final ResourceFilter ACCEPT_ALL_FILTER =
  32             new ResourceFilter() {
  33                 @Override
  34                 public boolean descent(final File file,
  35                                        final String relativePath) {
  36                     return true;
  37                 }
  38 
  39                 @Override
  40                 public boolean accept(final File file,
  41                                       final String relativePath) {
  42                     return true;
  43                 }
  44             };
  45 
  46     private final File baseDir;
  47     private final File file;
  48     private final String relativePath;
  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 PackagerResource {
  35     private static final ResourceFilter ACCEPT_ALL_FILTER =
  36             new ResourceFilter() {
  37                 @Override
  38                 public boolean descent(final File file,
  39                                        final String relativePath) {
  40                     return true;
  41                 }
  42 
  43                 @Override
  44                 public boolean accept(final File file,
  45                                       final String relativePath) {
  46                     return true;
  47                 }
  48             };
  49 
  50     private final File baseDir;
  51     private final File file;
  52     private final String relativePath;
  53