7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 import java.nio.file.Path; 25 import java.util.HashMap; 26 import java.util.Map; 27 import java.util.function.Supplier; 28 import jdk.jpackage.test.TKit; 29 import jdk.jpackage.test.PackageTest; 30 import jdk.jpackage.test.PackageType; 31 import jdk.jpackage.test.Functional; 32 import jdk.jpackage.test.JPackageCommand; 33 import jdk.jpackage.test.Annotations.Parameter; 34 35 /** 36 * Test --install-dir parameter. Output of the test should be 37 * commoninstalldirtest*.* package bundle. The output package should provide the 38 * same functionality as the default package but install test application in 39 * specified directory. 40 * 41 * Linux: 42 * 43 * Application should be installed in /opt/jpackage/commoninstalldirtest folder. 44 * 45 * Mac: 46 * 47 * Application should be installed in /Applications/jpackage/commoninstalldirtest.app 48 * folder. 49 * 50 * Windows: 51 * 52 * Application should be installed in %ProgramFiles%/TestVendor/InstallDirTest1234 | 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 import java.nio.file.Path; 25 import java.util.HashMap; 26 import java.util.Map; 27 import jdk.jpackage.test.TKit; 28 import jdk.jpackage.test.PackageTest; 29 import jdk.jpackage.test.PackageType; 30 import jdk.jpackage.test.Functional; 31 import jdk.jpackage.test.Annotations.Parameter; 32 33 /** 34 * Test --install-dir parameter. Output of the test should be 35 * commoninstalldirtest*.* package bundle. The output package should provide the 36 * same functionality as the default package but install test application in 37 * specified directory. 38 * 39 * Linux: 40 * 41 * Application should be installed in /opt/jpackage/commoninstalldirtest folder. 42 * 43 * Mac: 44 * 45 * Application should be installed in /Applications/jpackage/commoninstalldirtest.app 46 * folder. 47 * 48 * Windows: 49 * 50 * Application should be installed in %ProgramFiles%/TestVendor/InstallDirTest1234 |