diff --git a/message_generation/build.gradle b/message_generation/build.gradle index 66d4e1870cc65ed39c3d5cc1de633001bfab8d41..e844fcd34224765c070ca18bbf6fee0cb9051d6c 100644 --- a/message_generation/build.gradle +++ b/message_generation/build.gradle @@ -24,3 +24,5 @@ dependencies { compile project(':gradle_plugins') } +apply plugin: "application" +mainClassName = "org.ros.internal.message.GenerateInterfaces" diff --git a/message_generation/src/main/java/org/ros/internal/message/GenerateInterfaces.java b/message_generation/src/main/java/org/ros/internal/message/GenerateInterfaces.java index 46756b8b49f2c016482017a1f17063c58770f882..64a16c89c2a14240a70974f2533cb157b747c681 100644 --- a/message_generation/src/main/java/org/ros/internal/message/GenerateInterfaces.java +++ b/message_generation/src/main/java/org/ros/internal/message/GenerateInterfaces.java @@ -1,12 +1,12 @@ /* * Copyright (C) 2011 Google Inc. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -161,12 +161,12 @@ public class GenerateInterfaces { String rosPackagePath = System.getenv(ROS_PACKAGE_PATH); // Overwrite with a supplied package path if specified (--package-path=) for (ListIterator<String> iter = arguments.listIterator(); iter.hasNext(); ) { - String arg = iter.next(); - if (arg.contains("--package-path=")) { - rosPackagePath = arg.replace("--package-path=", ""); - iter.remove(); - break; - } + String arg = iter.next(); + if (arg.contains("--package-path=")) { + rosPackagePath = arg.replace("--package-path=", ""); + iter.remove(); + break; + } } Collection<File> packagePath = Lists.newArrayList(); for (String path : rosPackagePath.split(File.pathSeparator)) {