mail[Wesnoth-commits] r43910 - /trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/WorkspaceUtils.java


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by timotei_cluj on July 04, 2010 - 22:25:
Author: timotei
Date: Sun Jul  4 22:25:27 2010
New Revision: 43910

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43910&view=rev
Log:
eclipse plugin: use the location full path rather than directory name

Modified:
    
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/WorkspaceUtils.java

Modified: 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/WorkspaceUtils.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/WorkspaceUtils.java?rev=43910&r1=43909&r2=43910&view=diff
==============================================================================
--- 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/WorkspaceUtils.java
 (original)
+++ 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/WorkspaceUtils.java
 Sun Jul  4 22:25:27 2010
@@ -142,9 +142,13 @@
                        if (!proj.exists())
                        {
                                IProjectDescription description = 
ResourcesPlugin.getWorkspace().newProjectDescription("User Addons");
-                               // cleanup any project file if exists.
+
+                               // cleanup any strictly-project related files 
if any.
                                if (new File(userDir + Path.SEPARATOR + 
"data/add-ons/.project").exists())
                                        new File(userDir + Path.SEPARATOR + 
"data/add-ons/.project").delete();
+
+                               if (new File(userDir + Path.SEPARATOR + 
"data/add-ons/.ignore").exists())
+                                       new File(userDir + Path.SEPARATOR + 
"data/add-ons/.ignore").delete();
 
                                description.setLocation(new Path(userDir + 
Path.SEPARATOR + "data/add-ons/"));
                                proj.create(description, null);
@@ -167,7 +171,7 @@
                                {
                                        if (project.getName().equals("User 
Addons"))
                                                continue;
-                                       skipList += (project.getName() + 
"\n");
+                                       skipList += 
(project.getLocation().toOSString() + "\n");
                                }
                                ResourceUtils.createFile(proj, 
".ignore",skipList);
                        }




Related Messages


Powered by MHonArc, Updated Sun Jul 04 22:40:06 2010