From a6434361097c0ee18c706bf7a86a93324f68e284 Mon Sep 17 00:00:00 2001 From: Lukacs Berki Date: Tue, 15 Sep 2015 13:56:14 +0000 Subject: Parse the label syntax "@//a:b" so that eventually we can make that the syntax that means "refer to the main repository". There isn't an overarching plan for what we are going to do with the cmdline package, which seems to be separated from the .syntax one in all sorts of awkward ways. -- MOS_MIGRATED_REVID=103088960 --- .../google/devtools/build/lib/analysis/config/RunUnderConverter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/analysis/config/RunUnderConverter.java') diff --git a/src/main/java/com/google/devtools/build/lib/analysis/config/RunUnderConverter.java b/src/main/java/com/google/devtools/build/lib/analysis/config/RunUnderConverter.java index 8da1fbbaa2..951c478c99 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/config/RunUnderConverter.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/config/RunUnderConverter.java @@ -13,10 +13,10 @@ // limitations under the License. package com.google.devtools.build.lib.analysis.config; +import com.google.devtools.build.lib.cmdline.LabelSyntaxException; import com.google.devtools.build.lib.shell.ShellUtils; import com.google.devtools.build.lib.shell.ShellUtils.TokenizationException; import com.google.devtools.build.lib.syntax.Label; -import com.google.devtools.build.lib.syntax.Label.SyntaxException; import com.google.devtools.common.options.Converter; import com.google.devtools.common.options.OptionsParsingException; @@ -44,7 +44,7 @@ public class RunUnderConverter implements Converter { try { final Label runUnderLabel = Label.parseAbsolute(runUnderCommand); return new RunUnderLabel(input, runUnderLabel, runUnderList); - } catch (SyntaxException e) { + } catch (LabelSyntaxException e) { throw new OptionsParsingException("Not a valid label " + e.getMessage()); } } else { -- cgit v1.2.3