org.netbeans.modules.java.j2seproject/1 1.53.0 46

org.netbeans.modules.java.j2seproject.api
Class J2SEProjectConfigurations

java.lang.Object
  extended by org.netbeans.modules.java.j2seproject.api.J2SEProjectConfigurations

public final class J2SEProjectConfigurations
extends Object

Utility class for creating project run configuration files

Since:
1.10

Method Summary
static void createConfigurationFiles(Project prj, String configName, EditableProperties sharedProps, EditableProperties privateProps)
          Creates property files for run configuration and writes passed properties.
static void createConfigurationFiles(Project prj, String configName, Properties sharedProps, Properties privateProps)
          Creates property files for run configuration and writes passed properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createConfigurationFiles

public static void createConfigurationFiles(Project prj,
                                            String configName,
                                            EditableProperties sharedProps,
                                            EditableProperties privateProps)
                                     throws IOException,
                                            IllegalArgumentException
Creates property files for run configuration and writes passed properties. Shared properties are written to nbproject/configs folder and private properties are written to nbproject/private/configs folder. The property file is not created if null is passed for either shared or private properties.

Parameters:
prj - project under which property files will be created
configName - name of the config file, '.properties' is apended
sharedProps - properties to be written to shared file; is allowed to contain special purpose properties starting with $ (e.g. $label)
privateProps - properties to be written to private file
Throws:
IOException
IllegalArgumentException
Since:
1.29

createConfigurationFiles

public static void createConfigurationFiles(Project prj,
                                            String configName,
                                            Properties sharedProps,
                                            Properties privateProps)
                                     throws IOException,
                                            IllegalArgumentException
Creates property files for run configuration and writes passed properties. Shared properties are written to nbproject/configs folder and private properties are written to nbproject/private/configs folder. The property file is not created if null is passed for either shared or private properties.

Parameters:
prj - project under which property files will be created
configName - name of the config file, '.properties' is apended
sharedProps - properties to be written to shared file; is allowed to contain special purpose properties starting with $ (e.g. $label)
privateProps - properties to be written to private file
Throws:
IOException
IllegalArgumentException

org.netbeans.modules.java.j2seproject/1 1.53.0 46

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.