Author: fbricon
Date: 2011-10-17 12:40:31 -0400 (Mon, 17 Oct 2011)
New Revision: 35732
Modified:
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenArchetypeProjectExample.java
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenProjectExample.java
Log:
JBIDE-9877 : create maven project examples in the workspace
Modified:
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenArchetypeProjectExample.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenArchetypeProjectExample.java 2011-10-17
15:49:49 UTC (rev 35731)
+++
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenArchetypeProjectExample.java 2011-10-17
16:40:31 UTC (rev 35732)
@@ -37,7 +37,7 @@
private static final String UNNAMED_PROJECTS = "UnnamedProjects";
//$NON-NLS-1$
- private static final String JBOSS_TOOLS_MAVEN_PROJECTS =
"/.JBossToolsMavenProjects"; //$NON-NLS-1$
+ //private static final String JBOSS_TOOLS_MAVEN_PROJECTS =
"/.JBossToolsMavenProjects"; //$NON-NLS-1$
@Override
public List<Project> importProject(final Project projectDescription, File file,
@@ -45,7 +45,7 @@
List<Project> projects = new ArrayList<Project>();
IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
IPath rootPath = workspaceRoot.getLocation();
- IPath mavenProjectsRoot = rootPath.append(JBOSS_TOOLS_MAVEN_PROJECTS);
+ IPath mavenProjectsRoot = rootPath; //.append(JBOSS_TOOLS_MAVEN_PROJECTS);
String projectName = projectDescription.getName();
if (projectName == null || projectName.isEmpty()) {
projectName = UNNAMED_PROJECTS;
Modified:
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenProjectExample.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenProjectExample.java 2011-10-17
15:49:49 UTC (rev 35731)
+++
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenProjectExample.java 2011-10-17
16:40:31 UTC (rev 35732)
@@ -52,7 +52,7 @@
private static final String UNNAMED_PROJECTS = "UnnamedProjects";
//$NON-NLS-1$
- private static final String JBOSS_TOOLS_MAVEN_PROJECTS =
"/.JBossToolsMavenProjects"; //$NON-NLS-1$
+ //private static final String JBOSS_TOOLS_MAVEN_PROJECTS =
"/.JBossToolsMavenProjects"; //$NON-NLS-1$
private boolean confirm;
@@ -62,7 +62,7 @@
List<Project> projects = new ArrayList<Project>();
IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
IPath rootPath = workspaceRoot.getLocation();
- IPath mavenProjectsRoot = rootPath.append(JBOSS_TOOLS_MAVEN_PROJECTS);
+ IPath mavenProjectsRoot = rootPath;//.append(JBOSS_TOOLS_MAVEN_PROJECTS);
String projectName = projectDescription.getName();
if (projectName == null || projectName.isEmpty()) {
projectName = UNNAMED_PROJECTS;
Show replies by date