6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
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.oracle.bundlers.windows;
27
28 import com.oracle.bundlers.Bundler;
29 import com.sun.javafx.tools.packager.Log;
30 import com.sun.javafx.tools.packager.bundlers.ConfigException;
31 import com.sun.javafx.tools.packager.bundlers.RelativeFileSet;
32 import com.sun.javafx.tools.packager.bundlers.UnsupportedPlatformException;
33 import com.sun.javafx.tools.packager.bundlers.WinAppBundler;
34 import org.junit.After;
35 import org.junit.Assume;
36 import org.junit.Before;
37 import org.junit.BeforeClass;
38 import org.junit.Test;
39
40 import java.io.File;
41 import java.io.FileInputStream;
42 import java.io.IOException;
43 import java.nio.file.Files;
44 import java.util.*;
45
46 import static com.oracle.bundlers.StandardBundlerParam.*;
47 import static org.junit.Assert.*;
48
49 public class WinAppBundlerTest {
50
51 static File tmpBase;
52 static File workDir;
53 static File appResourcesDir;
54 static File fakeMainJar;
55 static Set<File> appResources;
56 static boolean retain = false;
57
58 @BeforeClass
59 public static void prepareApp() {
60 // only run on windows
61 Assume.assumeTrue(System.getProperty("os.name").toLowerCase().startsWith("win"));
62
63 Log.setLogger(new Log.Logger(true));
64
65 retain = Boolean.parseBoolean(System.getProperty("RETAIN_PACKAGER_TESTS"));
66
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
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.oracle.tools.packager.windows;
27
28 import com.oracle.tools.packager.Bundler;
29 import com.oracle.tools.packager.Log;
30 import com.oracle.tools.packager.ConfigException;
31 import com.oracle.tools.packager.RelativeFileSet;
32 import com.oracle.tools.packager.UnsupportedPlatformException;
33 import org.junit.After;
34 import org.junit.Assume;
35 import org.junit.Before;
36 import org.junit.BeforeClass;
37 import org.junit.Test;
38
39 import java.io.File;
40 import java.io.FileInputStream;
41 import java.io.IOException;
42 import java.nio.file.Files;
43 import java.util.*;
44
45 import static com.oracle.tools.packager.StandardBundlerParam.*;
46 import static org.junit.Assert.*;
47
48 public class WinAppBundlerTest {
49
50 static File tmpBase;
51 static File workDir;
52 static File appResourcesDir;
53 static File fakeMainJar;
54 static Set<File> appResources;
55 static boolean retain = false;
56
57 @BeforeClass
58 public static void prepareApp() {
59 // only run on windows
60 Assume.assumeTrue(System.getProperty("os.name").toLowerCase().startsWith("win"));
61
62 Log.setLogger(new Log.Logger(true));
63
64 retain = Boolean.parseBoolean(System.getProperty("RETAIN_PACKAGER_TESTS"));
65
|