< prev index next >

src/java.desktop/unix/classes/sun/print/UnixPrintJob.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 858,868 **** int OPTIONS = 0x2; int JOBTITLE = 0x4; int COPIES = 0x8; int NOSHEET = 0x10; int pFlags = 0; ! String execCmd[]; int ncomps = 2; // minimum number of print args int n = 0; // conveniently "lp" is the default destination for both lp and lpr. if (printer != null && !printer.equals("") && !printer.equals("lp")) { --- 858,868 ---- int OPTIONS = 0x2; int JOBTITLE = 0x4; int COPIES = 0x8; int NOSHEET = 0x10; int pFlags = 0; ! String[] execCmd; int ncomps = 2; // minimum number of print args int n = 0; // conveniently "lp" is the default destination for both lp and lpr. if (printer != null && !printer.equals("") && !printer.equals("lp")) {
*** 1020,1030 **** try { /** * Spool to the printer. */ String fileName = spoolFile.getAbsolutePath(); ! String execCmd[] = printExecCmd(mDestination, mOptions, mNoJobSheet, jobName, copies, fileName); Process process = Runtime.getRuntime().exec(execCmd); process.waitFor(); final int result = process.exitValue(); --- 1020,1030 ---- try { /** * Spool to the printer. */ String fileName = spoolFile.getAbsolutePath(); ! String[] execCmd = printExecCmd(mDestination, mOptions, mNoJobSheet, jobName, copies, fileName); Process process = Runtime.getRuntime().exec(execCmd); process.waitFor(); final int result = process.exitValue();
< prev index next >