Skip to content

Commit cfabb2d

Browse files
committed
Merge pull request aeron-io#344 from juddgaddie/master
[Java] default output directory of SbeTool to CWD
2 parents a2f115e + 966cc07 commit cfabb2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/SbeTool.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ else if (fileName.endsWith(".sbeir"))
171171
return;
172172
}
173173

174+
final String outputDirName = System.getProperty(OUTPUT_DIR, ".");
174175
if (Boolean.parseBoolean(System.getProperty(GENERATE_STUBS, "true")))
175176
{
176-
final String outputDirName = System.getProperty(OUTPUT_DIR, "");
177177
final String targetLanguage = System.getProperty(TARGET_LANGUAGE, "Java");
178178

179179
generate(ir, outputDirName, targetLanguage);
@@ -187,7 +187,6 @@ else if (fileName.endsWith(".sbeir"))
187187
final int nameEnd = inputFilename.lastIndexOf('.');
188188
final String namePart = inputFilename.substring(0, nameEnd);
189189

190-
final String outputDirName = System.getProperty(OUTPUT_DIR, "");
191190
final File fullPath = new File(outputDirName, namePart + ".sbeir");
192191

193192
try (final IrEncoder irEncoder = new IrEncoder(fullPath.getAbsolutePath(), ir))

0 commit comments

Comments
 (0)