Maven: tests adjusted for mac os + Maven lib updated to 2.2.1
authorAnton Makeev <Anton.Makeev@jetbrains.com>
Fri, 12 Mar 2010 10:17:27 +0000 (13:17 +0300)
committerAnton Makeev <Anton.Makeev@jetbrains.com>
Fri, 12 Mar 2010 10:17:46 +0000 (13:17 +0300)
14 files changed:
plugins/maven/lib/maven-2.2.1-uber.jar [moved from plugins/maven/lib/maven-2.2.0-uber.jar with 76% similarity, mode: 0755]
plugins/maven/maven.iml
plugins/maven/src/main/java/org/jetbrains/idea/maven/compiler/MavenResourceCompiler.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/indices/MavenIndex.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/indices/MavenIndices.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/MavenImportingTestCase.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/MavenTestCase.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/dom/MavenPropertyCompletionAndResolutionTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/dom/MavenPropertyFindUsagesTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/dom/MavenPropertyResolverTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/DependenciesImportingTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/project/MavenProjectReaderTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/project/MavenProjectsManagerTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/wizards/MavenModuleBuilderTest.java

old mode 100644 (file)
new mode 100755 (executable)
similarity index 76%
rename from plugins/maven/lib/maven-2.2.0-uber.jar
rename to plugins/maven/lib/maven-2.2.1-uber.jar
index 1794ed1..3a0fd1f
Binary files a/plugins/maven/lib/maven-2.2.0-uber.jar and b/plugins/maven/lib/maven-2.2.1-uber.jar differ
index c23db089864cbb6fc01f8d57eda11c1322757cc2..af02c5f83cab18bf517d5a2b7938d1c0e1a09bb3 100644 (file)
@@ -22,7 +22,7 @@
     <orderEntry type="module-library" exported="">
       <library>
         <CLASSES>
-          <root url="jar://$MODULE_DIR$/lib/maven-2.2.0-uber.jar!/" />
+          <root url="jar://$MODULE_DIR$/lib/maven-2.2.1-uber.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
index d6aeaa41ec1348aa7c4944e110363697a58a6f44..43d5660af3a6fdae0a8c20280bdc2361a54dbeb7 100644 (file)
@@ -155,7 +155,7 @@ public class MavenResourceCompiler implements ClassPostProcessingCompiler {
                                                                                                        "maven-resources-plugin"),
                                                                    "escapeString", "\\");
 
-          long propertiesHashCode = calculateHashCode(properties);
+          long propertiesHashCode = calculateHashCode(mavenProject, properties);
 
           List<ProcessingItem> moduleItemsToProcess = new ArrayList<ProcessingItem>();
           collectProcessingItems(eachModule, mavenProject, context, properties, propertiesHashCode,
@@ -188,12 +188,12 @@ public class MavenResourceCompiler implements ClassPostProcessingCompiler {
     return result;
   }
 
-  private static long calculateHashCode(Properties properties) {
+  private static long calculateHashCode(MavenProject project, Properties properties) {
     Set<String> sorted = new TreeSet<String>();
     for (Map.Entry<Object, Object> each : properties.entrySet()) {
       sorted.add(each.getKey().toString() + "->" + each.getValue().toString());
     }
-    return sorted.hashCode();
+    return project.getLastReadStamp() + 31 * sorted.hashCode();
   }
 
   private static Properties loadPropertiesAndFilters(CompileContext context, MavenProject mavenProject) {
index 9f5a7dadeb40689ce758db54365b64f7bcfd7b15..eebda818240ee866c45d9ec285cc2e88c14df5b6 100644 (file)
@@ -21,6 +21,7 @@ import com.intellij.openapi.progress.ProgressManager;
 import com.intellij.openapi.util.Condition;
 import com.intellij.openapi.util.io.FileUtil;
 import com.intellij.openapi.util.text.StringUtil;
+import com.intellij.openapi.vfs.VfsUtil;
 import com.intellij.util.containers.ContainerUtil;
 import com.intellij.util.io.*;
 import gnu.trove.THashMap;
@@ -264,12 +265,10 @@ public class MavenIndex {
     return myKind;
   }
 
-  public boolean isForLocal(String repositoryId, File repository) {
-    return myKind == Kind.LOCAL && myRepositoryId.equals(repositoryId) && getRepositoryFile().equals(repository);
-  }
-
-  public boolean isForRemote(String repositoryId, String url) {
-    return myKind == Kind.REMOTE && myRepositoryId.equals(repositoryId) && getRepositoryUrl().equalsIgnoreCase(normalizePathOrUrl(url));
+  public boolean isFor(Kind kind, String repositoryId, String pathOrUrl) {
+    if (myKind != kind || !myRepositoryId.equals(repositoryId)) return false;
+    if (kind == Kind.LOCAL) return FileUtil.pathsEqual(myRepositoryPathOrUrl, normalizePathOrUrl(pathOrUrl));
+    return myRepositoryPathOrUrl.equalsIgnoreCase(normalizePathOrUrl(pathOrUrl));
   }
 
   public synchronized long getUpdateTimestamp() {
index 58aeb9ff0ae573031672710e1e6a65fd65cdcc4c..2517688fb6210e838eccc4b4ddb7cf1f8c4707aa 100644 (file)
@@ -104,16 +104,8 @@ public class MavenIndices {
   }
 
   public MavenIndex find(String repositoryId, String repositoryPathOrUrl, MavenIndex.Kind kind) {
-    File file = kind == MavenIndex.Kind.LOCAL ? new File(repositoryPathOrUrl.trim()) : null;
     for (MavenIndex each : myIndices) {
-      switch (kind) {
-        case LOCAL:
-          if (each.isForLocal(repositoryId, file)) return each;
-          break;
-        case REMOTE:
-          if (each.isForRemote(repositoryId, repositoryPathOrUrl)) return each;
-          break;
-      }
+      if (each.isFor(kind, repositoryId, repositoryPathOrUrl)) return each;
     }
     return null;
   }
index b1bf26f0290a7b3e9970a2c8d03193134487db9f..165dd2bb8ae538a69f7a1a53484dda65a3c9c08f 100644 (file)
@@ -31,6 +31,7 @@ import com.intellij.openapi.roots.impl.libraries.ProjectLibraryTable;
 import com.intellij.openapi.roots.libraries.Library;
 import com.intellij.openapi.ui.Messages;
 import com.intellij.openapi.ui.TestDialog;
+import com.intellij.openapi.util.SystemInfo;
 import com.intellij.openapi.util.io.FileUtil;
 import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.openapi.vfs.VfsUtil;
index 38997dc7005f40c5f353966f051758aab8f1c869..838e9ca5f2587f4c4d89f5001756fbdfff2e3075 100644 (file)
@@ -26,6 +26,7 @@ import com.intellij.openapi.progress.EmptyProgressIndicator;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.roots.ModifiableRootModel;
 import com.intellij.openapi.roots.ModuleRootManager;
+import com.intellij.openapi.util.SystemInfo;
 import com.intellij.openapi.util.io.FileUtil;
 import com.intellij.openapi.vfs.LocalFileSystem;
 import com.intellij.openapi.vfs.VirtualFile;
@@ -173,6 +174,16 @@ public abstract class MavenTestCase extends UsefulTestCase {
     return true;
   }
 
+  protected String getRoot() {
+    if (SystemInfo.isWindows) return "c:";
+    return "";
+  }
+
+  protected String getEnvVar() {
+    if (SystemInfo.isWindows) return "TEMP";
+    return "TMPDIR";
+  }
+
   protected MavenGeneralSettings getMavenGeneralSettings() {
     return MavenProjectsManager.getInstance(myProject).getGeneralSettings();
   }
index 8fed02e454a5ca06cfe7a45eaefff3215114170c..edaed390f0c9bd284c026fb121bd35dbf117581c 100644 (file)
@@ -644,11 +644,11 @@ public class MavenPropertyCompletionAndResolutionTest extends MavenDomTestCase {
                      "<artifactId>project</artifactId>" +
                      "<version>1</version>" +
 
-                     "<name>${<caret>env.TEMP}</name>");
+                     "<name>${<caret>env." + getEnvVar() + "}</name>");
 
     assertResolved(myProjectPom, MavenDomUtil.findProperty(myProject,
                                                            MavenPropertiesVirtualFileSystem.ENV_PROPERTIES_FILE,
-                                                           "TEMP"));
+                                                           getEnvVar()));
   }
 
   public void testHighlightUnresolvedProperties() throws Exception {
@@ -751,7 +751,7 @@ public class MavenPropertyCompletionAndResolutionTest extends MavenDomTestCase {
     assertContain(variants, "basedir", "project.basedir", "pom.basedir");
     assertContain(variants, "settingsXmlProp");
     assertContain(variants, "settings.localRepository");
-    assertContain(variants, "user.home", "env.TEMP");
+    assertContain(variants, "user.home", "env." + getEnvVar());
   }
 
   public void testDoNotIncludeCollectionPropertiesInCompletion() throws Exception {
index a262e0beca16393077f4b02197153bc3d6bd6a6d..3019068a764bf341e0e5b48112cf3144648d0294 100644 (file)
@@ -95,8 +95,8 @@ public class MavenPropertyFindUsagesTest extends MavenDomTestCase {
     createProjectPom("<groupId>test</groupId>" +
                      "<artifactId>module1</artifactId>" +
                      "<version>11</version>" +
-                     "<name>${env.<caret>TEMP}</name>" +
-                     "<description>${env.TEMP}</description>");
+                     "<name>${env.<caret>" + getEnvVar() + "}</name>" +
+                     "<description>${env." + getEnvVar() + "}</description>");
 
     assertSearchResultsInclude(myProjectPom, findTag("project.name"), findTag("project.description"));
   }
index 22c99a94dd2d4cc2ec7f5a16472bd2556a53551d..12944cc24cb5ee9424e0ebc68530a6f0f9a654fc 100644 (file)
@@ -203,14 +203,14 @@ public class MavenPropertyResolverTest extends MavenImportingTestCase {
 
   public void testResolvingSystemProperties() throws Exception {
     String javaHome = System.getProperty("java.home");
-    String tempDir = System.getenv("TEMP");
+    String tempDir = System.getenv(getEnvVar());
 
     importProject("<groupId>test</groupId>" +
                   "<artifactId>project</artifactId>" +
                   "<version>1</version>");
 
     assertEquals(javaHome, resolve("${java.home}", myProjectPom));
-    assertEquals(tempDir, resolve("${env.TEMP}", myProjectPom));
+    assertEquals(tempDir, resolve("${env." + getEnvVar() + "}", myProjectPom));
   }
 
   public void testAllProperties() throws Exception {
index 3b8f992cda63af79fc3f156ae9b2196f0b9e9763..5278c6c029a12287e1f73cb7f61aec3a36c6b01e 100644 (file)
@@ -21,6 +21,7 @@ import com.intellij.openapi.roots.impl.libraries.ProjectLibraryTable;
 import com.intellij.openapi.roots.libraries.Library;
 import com.intellij.openapi.roots.libraries.LibraryTable;
 import com.intellij.openapi.roots.libraries.LibraryTablesRegistrar;
+import com.intellij.openapi.util.SystemInfo;
 import com.intellij.openapi.util.io.FileUtil;
 import com.intellij.openapi.vfs.VirtualFile;
 import org.jetbrains.idea.maven.MavenImportingTestCase;
@@ -776,7 +777,8 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
   }
 
   public void testDependencyWithEnvironmentENVProperty() throws Exception {
-    String envDir = FileUtil.toSystemIndependentName(System.getenv("TEMP"));
+    String envDir = FileUtil.toSystemIndependentName(System.getenv(getEnvVar()));
+    if (envDir.endsWith("/")) envDir = envDir.substring(0, envDir.length() - 1);
 
     importProject("<groupId>test</groupId>" +
                   "<artifactId>project</artifactId>" +
@@ -788,7 +790,7 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
                   "    <artifactId>direct-system-dependency</artifactId>" +
                   "    <version>1.0</version>" +
                   "    <scope>system</scope>" +
-                  "    <systemPath>${env.TEMP}/lib/tools.jar</systemPath>" +
+                  "    <systemPath>${env." + getEnvVar() + "}/lib/tools.jar</systemPath>" +
                   "  </dependency>" +
                   "</dependencies>");
 
@@ -1362,7 +1364,7 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
                   "    <artifactId>yyy</artifactId>" +
                   "    <version>1</version>" +
                   "    <scope>system</scope>" +
-                  "    <systemPath>c:/foo/foo.jar</systemPath>" +
+                  "    <systemPath>" + getRoot() + "/foo/foo.jar</systemPath>" +
                   "  </dependency>" +
                   "</dependencies>");
 
@@ -1370,13 +1372,13 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
     assertModuleLibDeps("project", "Maven: xxx:yyy:1");
 
     // add sources and javadoc near the jar, just like in the local repository
-    addLibraryRoot("Maven: xxx:yyy:1", OrderRootType.SOURCES, "jar://c:/foo/foo-sources.jar!/");
-    addLibraryRoot("Maven: xxx:yyy:1", JavadocOrderRootType.getInstance(), "jar://c:/foo/foo-javadoc.jar!/");
+    addLibraryRoot("Maven: xxx:yyy:1", OrderRootType.SOURCES, "jar://" + getRoot() + "/foo/foo-sources.jar!/");
+    addLibraryRoot("Maven: xxx:yyy:1", JavadocOrderRootType.getInstance(), "jar://" + getRoot() + "/foo/foo-javadoc.jar!/");
 
     assertModuleLibDep("project", "Maven: xxx:yyy:1",
-                       Arrays.asList("jar://c:/foo/foo.jar!/"),
-                       Arrays.asList("jar://c:/foo/foo-sources.jar!/"),
-                       Arrays.asList("jar://c:/foo/foo-javadoc.jar!/"));
+                       Arrays.asList("jar://" + getRoot() + "/foo/foo.jar!/"),
+                       Arrays.asList("jar://" + getRoot() + "/foo/foo-sources.jar!/"),
+                       Arrays.asList("jar://" + getRoot() + "/foo/foo-javadoc.jar!/"));
 
     createProjectPom("<groupId>test</groupId>" +
                      "<artifactId>project</artifactId>" +
@@ -1388,16 +1390,16 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
                      "    <artifactId>yyy</artifactId>" +
                      "    <version>1</version>" +
                      "    <scope>system</scope>" +
-                     "    <systemPath>c:/bar/bar.jar</systemPath>" +
+                     "    <systemPath>" + getRoot() + "/bar/bar.jar</systemPath>" +
                      "  </dependency>" +
                      "</dependencies>");
     scheduleResolveAll();
     resolveDependenciesAndImport();
 
     assertModuleLibDep("project", "Maven: xxx:yyy:1",
-                       Arrays.asList("jar://c:/bar/bar.jar!/"),
-                       Arrays.asList("jar://c:/foo/foo-sources.jar!/"),
-                       Arrays.asList("jar://c:/foo/foo-javadoc.jar!/"));
+                       Arrays.asList("jar://" + getRoot() + "/bar/bar.jar!/"),
+                       Arrays.asList("jar://" + getRoot() + "/foo/foo-sources.jar!/"),
+                       Arrays.asList("jar://" + getRoot() + "/foo/foo-javadoc.jar!/"));
   }
 
   public void testUpdateRootEntriesWithActualPath() throws Exception {
@@ -1506,12 +1508,12 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
                   "    <artifactId>yyy</artifactId>" +
                   "    <version>1</version>" +
                   "    <scope>system</scope>" +
-                  "    <systemPath>c:/foo/bar.jar</systemPath>" +
+                  "    <systemPath>" + getRoot() + "/foo/bar.jar</systemPath>" +
                   "  </dependency>" +
                   "</dependencies>");
 
     assertModuleLibDep("project", "Maven: xxx:yyy:1",
-                       Arrays.asList("jar://c:/foo/bar.jar!/"),
+                       Arrays.asList("jar://" + getRoot() + "/foo/bar.jar!/"),
                        Collections.<String>emptyList(),
                        Collections.<String>emptyList());
 
@@ -1521,7 +1523,7 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
     resolveDependenciesAndImport();
 
     assertModuleLibDep("project", "Maven: xxx:yyy:1",
-                       Arrays.asList("jar://c:/foo/bar.jar!/"),
+                       Arrays.asList("jar://" + getRoot() + "/foo/bar.jar!/"),
                        Collections.<String>emptyList(),
                        Collections.<String>emptyList());
   }
@@ -1537,12 +1539,12 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
                   "    <artifactId>yyy</artifactId>" +
                   "    <version>1</version>" +
                   "    <scope>system</scope>" +
-                  "    <systemPath>c:/foo/bar.jar</systemPath>" +
+                  "    <systemPath>" + getRoot() + "/foo/bar.jar</systemPath>" +
                   "  </dependency>" +
                   "</dependencies>");
 
     assertModuleLibDep("project", "Maven: xxx:yyy:1",
-                       Arrays.asList("jar://c:/foo/bar.jar!/"),
+                       Arrays.asList("jar://" + getRoot() + "/foo/bar.jar!/"),
                        Collections.<String>emptyList(),
                        Collections.<String>emptyList());
 
@@ -1556,7 +1558,7 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
                      "    <artifactId>yyy</artifactId>" +
                      "    <version>1</version>" +
                      "    <scope>system</scope>" +
-                     "    <systemPath>c:/foo/xxx.jar</systemPath>" +
+                     "    <systemPath>" + getRoot() + "/foo/xxx.jar</systemPath>" +
                      "  </dependency>" +
                      "</dependencies>");
 
@@ -1564,7 +1566,7 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
     resolveDependenciesAndImport();
 
     assertModuleLibDep("project", "Maven: xxx:yyy:1",
-                       Arrays.asList("jar://c:/foo/xxx.jar!/"),
+                       Arrays.asList("jar://" + getRoot() + "/foo/xxx.jar!/"),
                        Collections.<String>emptyList(),
                        Collections.<String>emptyList());
   }
index 1de406927f9e0ea7564f402d6206d2cf51e78990..6af7d8a31a6ebbced2e8df998398785572078d94 100644 (file)
@@ -15,6 +15,7 @@
  */
 package org.jetbrains.idea.maven.project;
 
+import com.intellij.openapi.util.SystemInfo;
 import com.intellij.openapi.util.io.FileUtil;
 import com.intellij.openapi.vfs.VfsUtil;
 import com.intellij.openapi.vfs.VirtualFile;
@@ -529,11 +530,11 @@ public class MavenProjectReaderTest extends MavenTestCase {
 
   public void testExpandingSystemAndEnvProperties() throws Exception {
     createProjectPom("<name>${java.home}</name>" +
-                     "<packaging>${env.TEMP}</packaging>");
+                     "<packaging>${env." + getEnvVar() + "}</packaging>");
 
     org.apache.maven.project.MavenProject p = readProject(myProjectPom);
     assertEquals(System.getProperty("java.home"), p.getName());
-    assertEquals(System.getenv("TEMP"), p.getPackaging());
+    assertEquals(System.getenv(getEnvVar()), p.getPackaging());
   }
 
   public void testExpandingPropertiesFromProfiles() throws Exception {
@@ -1101,17 +1102,19 @@ public class MavenProjectReaderTest extends MavenTestCase {
   }
 
   public void testActivatingProfilesByOS() throws Exception {
+    String os = SystemInfo.isWindows ? "windows" : SystemInfo.isMac ? "mac" : "unix";
+
     createProjectPom("<profiles>" +
                      "  <profile>" +
                      "    <id>one</id>" +
                      "    <activation>" +
-                     "      <os><family>windows</family></os>" +
+                     "      <os><family>" + os + "</family></os>" +
                      "    </activation>" +
                      "  </profile>" +
                      "  <profile>" +
                      "    <id>two</id>" +
                      "    <activation>" +
-                     "      <os><family>unix</family></os>" +
+                     "      <os><family>xxx</family></os>" +
                      "    </activation>" +
                      "  </profile>" +
                      "</profiles>");
@@ -1180,14 +1183,14 @@ public class MavenProjectReaderTest extends MavenTestCase {
   }
 
   public void testActivatingProfilesByEnvProperty() throws Exception {
-    String value = MavenUtil.getEnvProperties().getProperty("TMP");
+    String value = MavenUtil.getEnvProperties().getProperty(getEnvVar());
 
     createProjectPom("<profiles>" +
                      "  <profile>" +
                      "    <id>one</id>" +
                      "    <activation>" +
                      "      <property>" +
-                     "        <name>env.TMP</name>" +
+                     "        <name>env." + getEnvVar() + "</name>" +
                      "        <value>" + value + "</value>" +
                      "      </property>" +
                      "    </activation>" +
index 67a6348a3fe8f5eb611ea8fa45c411c0e608ac43..4d759370bde5faa10e7aa9e0aa421671a68f3a9a 100644 (file)
@@ -487,8 +487,8 @@ public class MavenProjectsManagerTest extends MavenImportingTestCase {
   }
 
   public void testResolvingEnvVariableInRepositoryPath() throws Exception {
-    String temp = System.getenv("TMP");
-    updateSettingsXml("<localRepository>${env.TEMP}/tmpRepo</localRepository>");
+    String temp = System.getenv(getEnvVar());
+    updateSettingsXml("<localRepository>${env." + getEnvVar() + "}/tmpRepo</localRepository>");
 
     File repo = new File(temp + "/tmpRepo").getCanonicalFile();
     assertEquals(repo.getPath(), getMavenGeneralSettings().getEffectiveLocalRepository().getPath());
index 42f351ef2266ceb524d97bcbed6a2745cf8fcae7..0bc3bf083d107a4904defb1958a6c6d6e9b4d028 100644 (file)
@@ -19,6 +19,7 @@ import com.intellij.openapi.module.ModifiableModuleModel;
 import com.intellij.openapi.module.Module;
 import com.intellij.openapi.module.ModuleManager;
 import com.intellij.openapi.roots.ModuleRootManager;
+import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.openapi.vfs.VfsUtil;
 import com.intellij.openapi.vfs.VirtualFile;
 import org.jetbrains.idea.maven.MavenImportingTestCase;
@@ -27,6 +28,7 @@ import org.jetbrains.idea.maven.indices.ArchetypeInfo;
 import org.jetbrains.idea.maven.project.MavenProject;
 import org.jetbrains.idea.maven.project.MavenId;
 
+import java.io.File;
 import java.util.List;
 
 public class MavenModuleBuilderTest extends MavenImportingTestCase {
@@ -104,13 +106,13 @@ public class MavenModuleBuilderTest extends MavenImportingTestCase {
     createNewModule(new MavenId("org.foo", "module", "1.0"));
 
     assertEquals(createPomXml("<groupId>test</groupId>" +
-                                  "<artifactId>project</artifactId>\r\n" +
-                                  "    <packaging>pom</packaging>\r\n" +
-                                  "    <version>1</version>\r\n" +
-                                  "    <modules>\r\n" +
-                                  "        <module>module</module>\r\n" +
-                                  "    </modules>\r\n"),
-                 VfsUtil.loadText(myProjectPom));
+                              "<artifactId>project</artifactId>\n" +
+                              "    <packaging>pom</packaging>\n" +
+                              "    <version>1</version>\n" +
+                              "    <modules>\n" +
+                              "        <module>module</module>\n" +
+                              "    </modules>\n"),
+                 StringUtil.convertLineSeparators(VfsUtil.loadText(myProjectPom)));
   }
 
   public void testAddingManagedProjectIfNoArrgerator() throws Exception {