Skip to content

Commit

Permalink
Add proto for buildozer output
Browse files Browse the repository at this point in the history
  • Loading branch information
guw committed Sep 2, 2023
1 parent 12a048f commit ac9ae41
Show file tree
Hide file tree
Showing 8 changed files with 3,689 additions and 6 deletions.
5 changes: 5 additions & 0 deletions bundles/com.salesforce.bazel.importedsource/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
<attribute name="ignore_optional_problems" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="proto/src-proto-buildozer">
<attributes>
<attribute name="ignore_optional_problems" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="proto/src-proto-intellij">
<attributes>
<attribute name="ignore_optional_problems" value="true"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source.. = proto/src-proto-bazel/,\
proto/src-proto-intellij/,\
proto/src-proto-buildozer/,\
src-bazel/,\
src-intellij-plugin/
output.. = bin/
Expand All @@ -15,4 +16,3 @@ additional.bundles = com.google.guava,\

# as long as 'wrapped.com.google.auto.value.auto-value' Tycho produced the correct output (we don't need to include it in source)
src.excludes = src-apt-generated/

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generators have been provided for Eclipse plugged into the *Run > External Tools
* `intellij/intellij_ide_info.proto` [13287a2](https://github.com/bazelbuild/intellij/commits/37813e607ad26716c4d1ccf4bc3e7163b2188658/proto/intellij_ide_info.proto)
* `intellij/common.proto` [46582ba](https://github.com/bazelbuild/intellij/commits/37813e607ad26716c4d1ccf4bc3e7163b2188658/proto/common.proto)
* `bazel/build_event_stream.proto` and dependencies [be7458a](https://github.com/bazelbuild/bazel/blob/be7458ad7c96b590e9fdec4c3022b60bf8aa9d05/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto)

* `buildozer/api.proto` [386244e](https://github.com/bazelbuild/buildtools/blob/386244e73fc446db36abd5bc9f291be7c79e2abd/api_proto/api.proto)

## Full Vendoring

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
Copyright 2016 Google Inc. All Rights Reserved.
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 License for the specific language governing permissions and
limitations under the License.
*/
syntax = "proto3";

package devtools.buildozer;

option go_package = "api_proto";

// https://github.com/bazelbuild/buildtools/pull/1193
option java_package = "com.google.devtools.buildozer";
option java_outer_classname = "BuildozerProtos";

message Output {
repeated Record records = 1;
message Record {
repeated Field fields = 1;
message Field {
oneof value {
string text = 1;
int32 number = 2;
ERROR error = 3;
RepeatedString list = 5;
}
// Used internally by Buildozer to decide whether a field should be quoted
// when printing. This does not affect the contents of 'value'.
bool quote_when_printing = 7;

enum ERROR {
UNKNOWN = 0;
MISSING = 1;
}
}
}
}

message RepeatedString {
repeated string strings = 1;
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;resources&gt;&#10;&lt;item path=&quot;/com.salesforce.bazel.sdk/proto&quot; type=&quot;2&quot;/&gt;&#10;&lt;/resources&gt;}"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;resources&gt;&#10;&lt;item path=&quot;/com.salesforce.bazel.importedsource/proto&quot; type=&quot;2&quot;/&gt;&#10;&lt;/resources&gt;}"/>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
</listAttribute>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/usr/local/bin/protoc"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="--proto_path=.&#10;--java_out=src-proto-bazel&#10;bazel/build_event_stream.proto&#10;bazel/command_line.proto&#10;bazel/failure_details.proto&#10;bazel/invocation_policy.proto&#10;bazel/option_filters.proto&#10;bazel/build.proto&#10;bazel/deps.proto&#10;bazel/java_compilation.proto"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/com.salesforce.bazel.sdk/proto}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/com.salesforce.bazel.importedsource/proto}"/>
</launchConfiguration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;resources&gt;&#10;&lt;item path=&quot;/com.salesforce.bazel.importedsource/proto&quot; type=&quot;2&quot;/&gt;&#10;&lt;/resources&gt;}"/>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
</listAttribute>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/usr/local/bin/protoc"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="--proto_path=.&#10;--java_out=src-proto-buildozer&#10;buildozer/api.proto"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/com.salesforce.bazel.importedsource/proto}"/>
</launchConfiguration>
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;resources&gt;&#10;&lt;item path=&quot;/com.salesforce.bazel.sdk/proto&quot; type=&quot;2&quot;/&gt;&#10;&lt;/resources&gt;}"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;resources&gt;&#10;&lt;item path=&quot;/com.salesforce.bazel.importedsource/proto&quot; type=&quot;2&quot;/&gt;&#10;&lt;/resources&gt;}"/>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
</listAttribute>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/usr/local/bin/protoc"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="--proto_path=. &#10;--java_out=src-proto-intellij &#10;intellij/common.proto &#10;intellij/intellij_ide_info.proto"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/com.salesforce.bazel.sdk/proto}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/com.salesforce.bazel.importedsource/proto}"/>
</launchConfiguration>
Loading

0 comments on commit ac9ae41

Please sign in to comment.