diff -r 3a3c32bf146f -r d075b556b189 glassfish.common/src/org/netbeans/modules/glassfish/spi/Utils.java --- a/glassfish.common/src/org/netbeans/modules/glassfish/spi/Utils.java Thu Mar 12 11:03:48 2015 +0100 +++ b/glassfish.common/src/org/netbeans/modules/glassfish/spi/Utils.java Tue Mar 17 16:39:16 2015 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2009-2011 Oracle and/or its affiliates. All rights reserved. + * Copyright 2009-2015 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. @@ -61,8 +61,9 @@ import org.openide.filesystems.FileUtil; /** - * - * @author vbk + * Utilities. + *

+ * @author Vince Kraemer */ public class Utils { @@ -416,7 +417,7 @@ /** * Use the server instance id for a project to decide whether the server specific DD/resource - * file should use the glassfish- prefix. + * file should use the {@code glassfish-} prefix. * * @param serverInstanceID * @return diff -r 3a3c32bf146f -r d075b556b189 glassfish.eecommon/nbproject/project.xml --- a/glassfish.eecommon/nbproject/project.xml Thu Mar 12 11:03:48 2015 +0100 +++ b/glassfish.eecommon/nbproject/project.xml Tue Mar 17 16:39:16 2015 +0100 @@ -219,6 +219,13 @@ org.netbeans.modules.projectapi.nb + + org.netbeans.modules.nbjunit + + + + org.netbeans.insane + diff -r 3a3c32bf146f -r d075b556b189 glassfish.eecommon/src/org/netbeans/modules/glassfish/eecommon/api/config/GlassfishConfiguration.java --- a/glassfish.eecommon/src/org/netbeans/modules/glassfish/eecommon/api/config/GlassfishConfiguration.java Thu Mar 12 11:03:48 2015 +0100 +++ b/glassfish.eecommon/src/org/netbeans/modules/glassfish/eecommon/api/config/GlassfishConfiguration.java Tue Mar 17 16:39:16 2015 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2008-2011 Oracle and/or its affiliates. All rights reserved. + * Copyright 2008-2015 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. @@ -42,7 +42,6 @@ package org.netbeans.modules.glassfish.eecommon.api.config; -import org.netbeans.modules.glassfish.eecommon.api.*; import java.io.File; import java.io.IOException; import java.io.OutputStream; @@ -54,6 +53,10 @@ import java.util.logging.Logger; import org.netbeans.api.project.FileOwnerQuery; import org.netbeans.api.project.Project; +import org.netbeans.modules.glassfish.eecommon.api.Utils; +import org.netbeans.modules.glassfish.eecommon.api.XmlFileCreator; +import org.netbeans.modules.glassfish.tooling.data.GlassFishVersion; +import org.netbeans.modules.glassfish.tooling.utils.OsUtils; import org.netbeans.modules.j2ee.deployment.common.api.ConfigurationException; import org.netbeans.modules.j2ee.deployment.common.api.Datasource; import org.netbeans.modules.j2ee.deployment.common.api.DatasourceAlreadyExistsException; @@ -89,37 +92,217 @@ import org.openide.util.RequestProcessor; /** - * Basic j2eeserver configuration api support for V2 and V3 plugins - * - * @author Peter Williams + * Basic Java EE server configuration API support for V2, V3 and V4 plugins. + *

+ * @author Peter Williams, Tomas Kraus */ public abstract class GlassfishConfiguration implements ContextRootConfiguration, EjbResourceConfiguration, MessageDestinationConfiguration, - DatasourceConfiguration - { + DatasourceConfiguration { + + //////////////////////////////////////////////////////////////////////////// + // Class attributes // + //////////////////////////////////////////////////////////////////////////// + + /** GlassFish Java EE common module Logger. */ + private static final Logger LOGGER = Logger.getLogger("glassfish-eecommon"); + + /** GlassFish resource file suffix is {@code .xml}. */ + private static final String RESOURCE_FILES_SUFFIX = ".xml"; + + /** List of base file names containing server resources: