Skip to content
This repository was archived by the owner on Jan 14, 2023. It is now read-only.

Commit 6896348

Browse files
damonkohlerstonier
authored andcommitted
Adds rule to build GenerateInterfaces as a binary.
1 parent 59527a2 commit 6896348

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

message_generation/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ dependencies {
2424
compile project(':gradle_plugins')
2525
}
2626

27+
apply plugin: "application"
28+
mainClassName = "org.ros.internal.message.GenerateInterfaces"

message_generation/src/main/java/org/ros/internal/message/GenerateInterfaces.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Copyright (C) 2011 Google Inc.
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of
66
* the License at
7-
*
7+
*
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
1212
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -161,12 +161,12 @@ public static void main(String[] args) {
161161
String rosPackagePath = System.getenv(ROS_PACKAGE_PATH);
162162
// Overwrite with a supplied package path if specified (--package-path=)
163163
for (ListIterator<String> iter = arguments.listIterator(); iter.hasNext(); ) {
164-
String arg = iter.next();
165-
if (arg.contains("--package-path=")) {
166-
rosPackagePath = arg.replace("--package-path=", "");
167-
iter.remove();
168-
break;
169-
}
164+
String arg = iter.next();
165+
if (arg.contains("--package-path=")) {
166+
rosPackagePath = arg.replace("--package-path=", "");
167+
iter.remove();
168+
break;
169+
}
170170
}
171171
Collection<File> packagePath = Lists.newArrayList();
172172
for (String path : rosPackagePath.split(File.pathSeparator)) {

0 commit comments

Comments
 (0)