Skip to content

Commit df76964

Browse files
committed
[Java] Fix warnings in build script when trying to find cargo.
1 parent 82210df commit df76964

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

build.gradle

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ project(':sbe-tool') {
185185
jar {
186186
manifest.attributes(
187187
'Main-Class': 'uk.co.real_logic.sbe.SbeTool',
188-
'Specification-Title' : 'Simple Binary Encoding',
189-
'Specification-Version' : '1.0',
190-
'Implementation-Title' : 'SBE',
191-
'Implementation-Version' : "${sbeVersion}",
192-
'Implementation-Vendor' : 'Real Logic Limited'
188+
'Specification-Title': 'Simple Binary Encoding',
189+
'Specification-Version': '1.0',
190+
'Implementation-Title': 'SBE',
191+
'Implementation-Version': "${sbeVersion}",
192+
'Implementation-Vendor': 'Real Logic Limited'
193193
)
194194
}
195195

@@ -278,11 +278,11 @@ project(':sbe-all') {
278278
classifier = ''
279279
manifest.attributes(
280280
'Main-Class': 'uk.co.real_logic.sbe.SbeTool',
281-
'Specification-Title' : 'Simple Binary Encoding',
282-
'Specification-Version' : '1.0',
283-
'Implementation-Title' : 'SBE',
284-
'Implementation-Version' : "${sbeVersion}",
285-
'Implementation-Vendor' : 'Real Logic Limited')
281+
'Specification-Title': 'Simple Binary Encoding',
282+
'Specification-Version': '1.0',
283+
'Implementation-Title': 'SBE',
284+
'Implementation-Version': "${sbeVersion}",
285+
'Implementation-Vendor': 'Real Logic Limited')
286286
}
287287

288288
uploadArchives {
@@ -531,15 +531,12 @@ task runRustCarExample(type: Exec) {
531531
def cargo_exists() {
532532
try {
533533
def result = project.exec {
534-
executable 'cargo'
535-
args '-v'
536-
standardOutput = new ByteArrayOutputStream()
537-
errorOutput = new ByteArrayOutputStream()
534+
executable = 'cargo'
535+
args = '-v'
538536
}
539537
return result.exitValue == 0
540538
}
541-
catch (Exception ignore)
542-
{
539+
catch (Exception ignore) {
543540
return false
544541
}
545542
}

0 commit comments

Comments
 (0)