~ubuntu-branches/ubuntu/saucy/jenkins/saucy

« back to all changes in this revision

Viewing changes to .pc/dependency-upgrades/jnr-posix-upgrade.patch/core/src/main/java/hudson/os/PosixAPI.java

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-01-10 09:50:50 UTC
  • mfrom: (5.1.10 experimental)
  • Revision ID: package-import@ubuntu.com-20130110095050-kj8xuw20gcfh62k3
Tags: 1.480.2+dfsg-1~exp1
* New upstream release (Closes: #696816, #697617):
  - d/control: Added new BD on libjbcrypt-java.
  - d/control: Versioned BD jenkins-winstone >= 0.9.10-jenkins-40.
  - d/control: Versioned BD jenkins-trilead-ssh2 >= 214-jenkins-1.
  - Fixes the following security vulnerabilities:
    CVE-2012-6072, CVE-2012-6073, CVE-2012-6072, CVE-2013-0158.
* Tidied lintian warnings.
* Bumped Standards-Version: 3.9.4, no changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
import java.io.File;
10
10
import java.io.InputStream;
11
11
import java.io.PrintStream;
 
12
import java.util.Map;
12
13
import java.util.logging.Logger;
13
14
 
14
15
/**
55
56
        }
56
57
 
57
58
        public File getCurrentWorkingDirectory() {
58
 
            // TODO
59
 
            throw new UnsupportedOperationException();
 
59
            return new File(".").getAbsoluteFile();
60
60
        }
61
61
 
62
62
        public String[] getEnv() {
63
 
            // TODO
64
 
            throw new UnsupportedOperationException();
 
63
            Map<String,String> envs = System.getenv();
 
64
            String[] envp = new String[envs.size()];
 
65
            
 
66
            int i = 0;
 
67
            for (Map.Entry<String,String> e : envs.entrySet()) {
 
68
                envp[i++] = e.getKey()+'+'+e.getValue();
 
69
            }
 
70
            return envp;
65
71
        }
66
72
 
67
73
        public InputStream getInputStream() {
68
 
            // TODO
69
 
            throw new UnsupportedOperationException();
 
74
            return System.in;
70
75
        }
71
76
 
72
77
        public PrintStream getOutputStream() {
73
 
            // TODO
74
 
            throw new UnsupportedOperationException();
 
78
            return System.out;
75
79
        }
76
80
 
77
81
        public int getPID() {
78
82
            // TODO
79
 
            throw new UnsupportedOperationException();
 
83
            return 0;
80
84
        }
81
85
 
82
86
        public PrintStream getErrorStream() {
83
 
            // TODO
84
 
            throw new UnsupportedOperationException();
 
87
            return System.err;
85
88
        }
86
89
    }, true);
87
90