ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1406856 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerSerializer.java
Date Wed, 07 Nov 2012 23:02:33 GMT
Author: hibou
Date: Wed Nov  7 23:02:33 2012
New Revision: 1406856

URL: http://svn.apache.org/viewvc?rev=1406856&view=rev
Log:
Improve logging of the classpath container states

Modified:
    ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerSerializer.java

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerSerializer.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerSerializer.java?rev=1406856&r1=1406855&r2=1406856&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerSerializer.java
(original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerSerializer.java
Wed Nov  7 23:02:33 2012
@@ -101,12 +101,13 @@ public class IvyClasspathContainerSerial
     }
 
     public void save(IJavaProject project) {
-        IvyDEMessage.verbose("Saving the state of the containers of the project " + project.getProject().getName());
         List/* <IvyClasspathContainer> */ivycps = IvyClasspathUtil
                 .getIvyClasspathContainers(project);
         try {
-            FileOutputStream out = new FileOutputStream(new File(containersStateDir, project
-                    .getProject().getName() + ".xml"));
+            File file = new File(containersStateDir, project.getProject().getName() + ".xml");
+            IvyDEMessage.verbose("Saving the state of the containers of the project "
+                    + project.getProject().getName() + " into " + file);
+            FileOutputStream out = new FileOutputStream(file);
             try {
                 write(out, ivycps);
             } finally {
@@ -123,8 +124,9 @@ public class IvyClasspathContainerSerial
     }
 
     public Map/* <IPath, IvyClasspathContainer> */read(IJavaProject project) {
-        IvyDEMessage.verbose("Loading the state of the containers of the project " + project.getProject().getName());
         File file = new File(containersStateDir, project.getProject().getName() + ".xml");
+        IvyDEMessage.verbose("Loading the state of the containers of the project "
+                + project.getProject().getName() + " from " + file);
         if (!file.exists()) {
             IvyPlugin.logWarn("IvyDE container states of the project "
                     + project.getProject().getName() + " doesn't exist.");



Mime
View raw message