Add copyright settings for IntelliJ

Change-Id: I347f926aca518050c932b36c4e8eda87f3229b41
This commit is contained in:
Alice Kober-Sotzek
2016-11-25 16:08:43 +01:00
parent 74d2f5b746
commit b11a075730
3 changed files with 27 additions and 0 deletions

View File

@@ -67,6 +67,20 @@ and configured correctly as can be verified by:
NOTE: If IntelliJ notifies you later on that the EditorConfig settings override
the code style settings, simply confirm that.
=== Copyright
Copy the folder `$(gerrit_source_code)/tools/intellij/copyright` (not just the
contents) to `$(project_data_directory)/.idea`. If it already exists, replace
it.
=== File header
By default, IntelliJ adds a file header containing the name of the author and
the current date to new files. To disable that, follow these steps:
. Go to *File -> Settings -> Editor -> File and Code Templates*.
. Select the tab *Includes*.
. Select *File Header*.
. Remove the template code in the right editor.
== Run configurations
Run configurations can be accessed on the toolbar. To edit them or add new ones,
choose *Edit Configurations* on the drop-down list of the run configurations

View File

@@ -0,0 +1,6 @@
<component name="CopyrightManager">
<copyright>
<option name="myName" value="Gerrit Copyright" />
<option name="notice" value="Copyright (C) &amp;#36;today.year The Android Open Source Project&#10;&#10;Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);&#10;you may not use this file except in compliance with the License.&#10;You may obtain a copy of the License at&#10;&#10;http://www.apache.org/licenses/LICENSE-2.0&#10;&#10;Unless required by applicable law or agreed to in writing, software&#10;distributed under the License is distributed on an &quot;AS IS&quot; BASIS,&#10;WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&#10;See the License for the specific language governing permissions and&#10;limitations under the License." />
</copyright>
</component>

View File

@@ -0,0 +1,7 @@
<component name="CopyrightManager">
<settings default="Gerrit Copyright">
<LanguageOptions name="__TEMPLATE__">
<option name="block" value="false" />
</LanguageOptions>
</settings>
</component>