trying to resolve end lines issue
This commit is contained in:
parent
d1dddf55b5
commit
523f13485f
Binary file not shown.
|
@ -7,6 +7,8 @@ import java.util.Date;
|
||||||
* Andrey Belomutskiy (c) 2014
|
* Andrey Belomutskiy (c) 2014
|
||||||
*/
|
*/
|
||||||
public class Version2Header {
|
public class Version2Header {
|
||||||
|
private static final String NL = System.getProperty("line.separator");
|
||||||
|
|
||||||
private static final String COMMAND = "svn info";
|
private static final String COMMAND = "svn info";
|
||||||
private static final String VERSION_MARKER = "Last Changed Rev: ";
|
private static final String VERSION_MARKER = "Last Changed Rev: ";
|
||||||
private static final String HEADER_TAG = "VCS_VERSION";
|
private static final String HEADER_TAG = "VCS_VERSION";
|
||||||
|
@ -20,8 +22,6 @@ public class Version2Header {
|
||||||
|
|
||||||
BufferedReader stdout =
|
BufferedReader stdout =
|
||||||
new BufferedReader(new InputStreamReader(simulatorProcess.getInputStream()));
|
new BufferedReader(new InputStreamReader(simulatorProcess.getInputStream()));
|
||||||
BufferedReader stderr =
|
|
||||||
new BufferedReader(new InputStreamReader(simulatorProcess.getErrorStream()));
|
|
||||||
|
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
String line;
|
String line;
|
||||||
|
@ -52,11 +52,11 @@ public class Version2Header {
|
||||||
|
|
||||||
private static void writeFile(int version) throws IOException {
|
private static void writeFile(int version) throws IOException {
|
||||||
BufferedWriter bw = new BufferedWriter(new FileWriter("svnversion.h"));
|
BufferedWriter bw = new BufferedWriter(new FileWriter("svnversion.h"));
|
||||||
bw.write("// This file was generated by Version2Header\r\n");
|
bw.write("// This file was generated by Version2Header" + NL);
|
||||||
bw.write("// " + new Date() + "\r\n");
|
bw.write("// " + new Date() + NL);
|
||||||
bw.write("#ifndef " + HEADER_TAG + "\r\n");
|
bw.write("#ifndef " + HEADER_TAG + NL);
|
||||||
bw.write("#define " + HEADER_TAG + " \"" + version + "\"\r\n");
|
bw.write("#define " + HEADER_TAG + " \"" + version + "\"" + NL);
|
||||||
bw.write("#endif\r\n");
|
bw.write("#endif" + NL);
|
||||||
bw.close();
|
bw.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue