Author: akazakov
Date: 2008-11-21 10:29:28 -0500 (Fri, 21 Nov 2008)
New Revision: 11947
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/ISeamFacetDataModelProperties.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamProjectCreator.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2967 Fixed
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/ISeamFacetDataModelProperties.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/ISeamFacetDataModelProperties.java 2008-11-21
14:51:05 UTC (rev 11946)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/ISeamFacetDataModelProperties.java 2008-11-21
15:29:28 UTC (rev 11947)
@@ -277,4 +277,13 @@
*/
String JBOSS_AS_TARGET_RUNTIME = "seam.project.deployment.runtime";
//$NON-NLS-1$
+ /**
+ * Default action source folder name;
+ */
+ String DEFAULT_ACTION_SRC_FOLDER_NAME = "hot"; //$NON-NLS-1$
+
+ /**
+ * Default model source folder name;
+ */
+ String DEFAULT_MODEL_SRC_FOLDER_NAME = "main"; //$NON-NLS-1$
}
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2008-11-21
14:51:05 UTC (rev 11946)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2008-11-21
15:29:28 UTC (rev 11947)
@@ -321,7 +321,7 @@
webInfClassesMetaInf = new File(webInfClasses, "META-INF"); //$NON-NLS-1$
webInfClassesMetaInf.mkdirs();
webLibFolder = new File(webContentFolder, WEB_LIBRARIES_RELATED_PATH);
- srcFolder = isWarConfiguration(model) ? new
File(warSrcRootFolder.getUnderlyingFolder().getLocation().toFile(), "model") :
warSrcRootFolder.getUnderlyingFolder().getLocation().toFile(); //$NON-NLS-1$
+ srcFolder = isWarConfiguration(model) ? new
File(warSrcRootFolder.getUnderlyingFolder().getLocation().toFile(),
DEFAULT_MODEL_SRC_FOLDER_NAME) :
warSrcRootFolder.getUnderlyingFolder().getLocation().toFile();
Object runtimeName =
model.getProperty(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME);
if(runtimeName!=null) {
copyFilesToWarProject(project, fv, model, monitor);
@@ -410,8 +410,8 @@
// Copy seam project indicator
//
********************************************************************************************
- IPath actionSrcPath = new Path(source.getFullPath().removeFirstSegments(1) +
"/action"); //$NON-NLS-1$
- IPath modelSrcPath = new Path(source.getFullPath().removeFirstSegments(1) +
"/model"); //$NON-NLS-1$
+ IPath actionSrcPath = new Path(source.getFullPath().removeFirstSegments(1) +
"/" + DEFAULT_ACTION_SRC_FOLDER_NAME); //$NON-NLS-1$
+ IPath modelSrcPath = new Path(source.getFullPath().removeFirstSegments(1) +
"/" + DEFAULT_MODEL_SRC_FOLDER_NAME); //$NON-NLS-1$
warSrcRootFolder.delete(IVirtualFolder.FORCE, monitor);
WtpUtils.createSourceFolder(project, actionSrcPath,
source.getFullPath().removeFirstSegments(1),
webRootFolder.getFullPath().removeFirstSegments(1).append("WEB-INF/dev"));
//$NON-NLS-1$
@@ -420,7 +420,7 @@
warSrcRootFolder.createLink(actionSrcPath, 0, null);
warSrcRootFolder.createLink(modelSrcPath, 0, null);
- File actionsSrc = new File(project.getLocation().toFile(),
source.getFullPath().removeFirstSegments(1) + "/action/"); //$NON-NLS-1$
+ File actionsSrc = new File(project.getLocation().toFile(),
source.getFullPath().removeFirstSegments(1) + "/" +
DEFAULT_ACTION_SRC_FOLDER_NAME + "/"); //$NON-NLS-1$
//AntCopyUtils.copyFileToFolder(new File(seamGenResFolder,
"seam.properties"), actionsSrc, true); //$NON-NLS-1$
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamProjectCreator.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamProjectCreator.java 2008-11-21
14:51:05 UTC (rev 11946)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamProjectCreator.java 2008-11-21
15:29:28 UTC (rev 11947)
@@ -473,8 +473,8 @@
IVirtualFolder rootFolder = component.getRootFolder();
IPath srcRootFolder = rootFolder.getFolder(new
Path("/WEB-INF/classes")).getUnderlyingFolder().getParent().getFullPath();
//$NON-NLS-1$
- prefs.put(ISeamFacetDataModelProperties.ENTITY_BEAN_SOURCE_FOLDER,
srcRootFolder.append("model").toString());
- prefs.put(ISeamFacetDataModelProperties.SESSION_BEAN_SOURCE_FOLDER,
srcRootFolder.append("action").toString());
+ prefs.put(ISeamFacetDataModelProperties.ENTITY_BEAN_SOURCE_FOLDER,
srcRootFolder.append(ISeamFacetDataModelProperties.DEFAULT_MODEL_SRC_FOLDER_NAME).toString());
+ prefs.put(ISeamFacetDataModelProperties.SESSION_BEAN_SOURCE_FOLDER,
srcRootFolder.append(ISeamFacetDataModelProperties.DEFAULT_ACTION_SRC_FOLDER_NAME).toString());
}
try {