Lines Matching refs:line

42  * (including the last line) in package.access and package.definition
43 * MUST end with ',\'. A blank line MUST exist after the last line.
80 String line = br.readLine();
81 while (line != null) {
82 if (line.startsWith(PKG_ACC)) {
83 addPackages(br, lines, line, PKG_ACC_INDENT, extraLines);
84 } else if (line.startsWith(PKG_DEF)) {
85 addPackages(br, lines, line, PKG_DEF_INDENT, extraLines);
87 lines.add(line);
89 line = br.readLine();
98 String line = iter.next();
99 if (line.startsWith("#endif")) {
102 } else if (line.startsWith("#ifdef ")) {
103 if (line.indexOf('-') > 0) {
104 mode = line.endsWith(args[2]+"-"+args[3]) ? 1 : 2;
106 mode = line.endsWith(args[2]) ? 1 : 2;
109 } else if (line.startsWith("#ifndef ")) {
110 if (line.indexOf('-') > 0) {
111 mode = line.endsWith(args[2]+"-"+args[3]) ? 2 : 1;
113 mode = line.endsWith(args[2]) ? 2 : 1;
116 } else if (line.startsWith("#else")) {
130 String line = lines.get(i);
131 int index = line.indexOf(".tbd");
133 String prefix = line.substring(0, index);
136 lines.set(i, prefix + "." + n + line.substring(index+4));
142 String line = lines.get(i);
143 int index = line.indexOf("crypto.policydir-tbd");
145 String prefix = line.substring(0, index);
150 // Clean up the last line of PKG_ACC and PKG_DEF blocks.
151 // Not really necessary since a blank line follows.
154 String line = lines.get(i);
155 if (line.startsWith(PKG_ACC) || line.startsWith(PKG_DEF)) {
159 if (line.isEmpty()) {
171 String line, int numSpaces,
173 // parse property until EOL, not including line breaks
175 while (line != null && !line.isEmpty()) {
176 if (!line.startsWith("#")) {
177 if (!line.endsWith(",\\") ||
178 (!first && line.contains("="))) {
179 throw new IOException("Invalid line: " + line);
182 lines.add(line);
183 line = br.readLine();
186 // add new packages, one per line
194 if (line != null) {
195 lines.add(line);