Skip to main content
Jump to: navigation, search

Difference between revisions of "IAM Development Conventions"

(License snippet for feature.properties)
Line 13: Line 13:
  
 
  /*
 
  /*
   * Copyright (c) 2008 Exist Global, Inc. and others
+
   * Copyright (c) 2009 Exist Global, Inc. and others
 
   * All rights reserved. This program and the accompanying materials
 
   * All rights reserved. This program and the accompanying materials
 
   * are made available under the terms of the Eclipse Public License v1.0
 
   * are made available under the terms of the Eclipse Public License v1.0
Line 25: Line 25:
 
=== plugin.properties ===
 
=== plugin.properties ===
 
  #-------------------------------------------------------------------------------
 
  #-------------------------------------------------------------------------------
  # Copyright (c) 2008 Exist Global, Inc. and others
+
  # Copyright (c) 2009 Exist Global, Inc. and others
 
  # All rights reserved. This program and the accompanying materials
 
  # All rights reserved. This program and the accompanying materials
 
  # are made available under the terms of the Eclipse Public License v1.0
 
  # are made available under the terms of the Eclipse Public License v1.0
Line 35: Line 35:
 
  # "copyright" property - text of the "Feature Update Copyright"
 
  # "copyright" property - text of the "Feature Update Copyright"
 
  copyright=\
 
  copyright=\
  Copyright (c) 2008 Exist, Inc. and others\n\
+
  Copyright (c) 2009 Exist, Inc. and others\n\
 
  All rights reserved. This program and the accompanying materials\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\  
 
  are made available under the terms of the Eclipse Public License v1.0\n\  

Revision as of 16:35, 12 February 2009

< 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) 2009 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) 2009 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) 2009 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