diff options
author | Lukacs Berki <lberki@google.com> | 2015-09-15 13:56:14 +0000 |
---|---|---|
committer | John Field <jfield@google.com> | 2015-09-15 20:27:47 +0000 |
commit | a6434361097c0ee18c706bf7a86a93324f68e284 (patch) | |
tree | 98a3109cb41b1f6cbcb5bae4f9452fdb81553ae4 /src/main/java/com/google/devtools/build/lib/analysis/config/DefaultsPackage.java | |
parent | 5d737d642623749c8672916548b7c7c85b2ca9e6 (diff) |
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
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/config/DefaultsPackage.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/config/DefaultsPackage.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/config/DefaultsPackage.java b/src/main/java/com/google/devtools/build/lib/analysis/config/DefaultsPackage.java index e04633011f..e702ac2c50 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/config/DefaultsPackage.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/config/DefaultsPackage.java @@ -18,8 +18,8 @@ import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; +import com.google.devtools.build.lib.cmdline.LabelSyntaxException; import com.google.devtools.build.lib.syntax.Label; -import com.google.devtools.build.lib.syntax.Label.SyntaxException; import java.util.Locale; import java.util.Map; @@ -161,7 +161,7 @@ public final class DefaultsPackage { if (value.startsWith("//")) { try { return Label.parseAbsolute(value); - } catch (SyntaxException e) { + } catch (LabelSyntaxException e) { // We ignore this exception here - it will cause an error message at a later time. return null; } |