《Copyright 编写.docx》由会员分享,可在线阅读,更多相关《Copyright 编写.docx(3页珍藏版)》请在金锄头文库上搜索。
1、Copyright 编写Copyright Profile PageUse this page to configure the selected profile: define the copyright notice to be generated and specify the keyword to detect copyright notices in comments.ItemDescriptionNameUse this text field to view or edit the name of the selected copyright profile.Copyright t
2、ext (may contain Velocity templates)Use this text area to view or edit the copyright notice to be generated. A copyright profile can contain an explicit plain text of the copyright notice or its definition through aVelocitytemplate.Currently the following variables are available in the Velocity cont
3、ext:NameTypeComment$todayDateInfoThe current date and time.$file.fileNameStringThe name of the currently opened file where the notice is to be generated.$file.pathNameStringThe complete path and name of the currently opened file where the notice is to be generated.$file.classNameStringThe name of th
4、e currently opened Java file where the notice is to be generated.$file.qualifiedClassNameStringThe fully qualified name of the currently opened Java file where the notice is to be generated.$file.lastModifiedDataInfoThe date and time when the current file was last changed.$project.nameStringThe name
5、 of the current project.$module.nameStringThe name of the current module.$usernameStringThe name of the current user.DateInfohas the following properties:yearintThe current year.monthintThe current month (1-12).dayintThe current date of month (1-31).hourintThe current hour (0-11).hour24intThe curren
6、t hour (0-23).minuteintThe current minute of the hour (0-59).secondintThe current second of the minute (0-59).DateInfohas the following method:format(String format)StringSee java.text.SimpleDateFormat format options.ValidateClick this button to check that theVelocitytemplate has been specified corre
7、ctly.Regex to detect copyright in commentsUse this text box to type, view, or edit theregular expressionthat will be used to find copyright notices in comments.This regular expression should match the above specified copyright notice. Otherwise instead ofupdatingcopyright notices, IntelliJ IDEA will insert new ones.Allow replacing copyright if old copyright contains:Use this text box to type or edit the string that will be recognized in the existing copyright notice, and allow replacing it with the new one.