Skip to main content
Jump to: navigation, search

Difference between revisions of "IAM Development Conventions"

m (Link back and category)
(License snippet for feature.properties)
Line 31: Line 31:
 
  # http://www.eclipse.org/legal/epl-v10.html
 
  # http://www.eclipse.org/legal/epl-v10.html
 
  #-------------------------------------------------------------------------------
 
  #-------------------------------------------------------------------------------
 +
 +
=== feature.properties ===
 +
# "copyright" property - text of the "Feature Update Copyright"
 +
copyright=\
 +
Copyright (c) 2008 Exist, Inc. and others\n\
 +
All rights reserved. This program and the accompanying materials\n\
 +
are made available under the terms of the Eclipse Public License v1.0\n\
 +
which accompanies this distribution, and is available at\n\
 +
http://www.eclipse.org/legal/epl-v10.html\n\
  
 
[[Category:IAM]]
 
[[Category:IAM]]

Revision as of 13:44, 30 November 2008

< To: IAM Environment

IAM Development Conventions

Code formatting

IAM inherits the Maven Coding Conventions. Eclipse settings can be downloaded here and imported by going to the Preferences > Java > Code Style > Formatter and then using the Import... button.

File headers

These are the standard headers for new files:

Java

/*
 * Copyright (c) 2008 Exist Global, Inc. and others
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */


You can set this as the default for new files in Preferences > Java > Code Style > Code Templates and then choose the Comments > File node on the tree. Use the Edit... button to paste the comment.

plugin.properties

#-------------------------------------------------------------------------------
# Copyright (c) 2008 Exist Global, Inc. and others
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#-------------------------------------------------------------------------------

feature.properties

# "copyright" property - text of the "Feature Update Copyright"
copyright=\
Copyright (c) 2008 Exist, Inc. and others\n\
All rights reserved. This program and the accompanying materials\n\
are made available under the terms of the Eclipse Public License v1.0\n\ 
which accompanies this distribution, and is available at\n\
http://www.eclipse.org/legal/epl-v10.html\n\

Back to the top