woproject/projects/wolips/plugins/org.objectstyle.wolips/java/org/objectstyle/wolips/core/resources/internal/build AbstractBuildVisitor.java,1.2,1.3

[email protected] Sat, 25 Mar 2006 03:32:04 -0800 (PST)
Newsgroups gmane.comp.web.webobjects.woproject.cvs
Message-ID <[email protected]>
Update of /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips/java/org/objectstyle/wolips/core/resources/internal/build
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11894/java/org/objectstyle/wolips/core/resources/internal/build

Modified Files:
	AbstractBuildVisitor.java 
Log Message:
Get rid of the .WOLips file.

Index: AbstractBuildVisitor.java
===================================================================
RCS file: /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips/java/org/objectstyle/wolips/core/resources/internal/build/AbstractBuildVisitor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- AbstractBuildVisitor.java	30 Sep 2005 12:22:27 -0000	1.2
+++ AbstractBuildVisitor.java	25 Mar 2006 11:30:50 -0000	1.3
@@ -56,10 +56,9 @@
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.objectstyle.wolips.core.resources.internal.pattern.PatternList;
-import org.objectstyle.wolips.core.resources.types.file.IDotWOLipsAdapter;
+import org.objectstyle.wolips.core.resources.internal.types.file.ProjectPatternsets;
 import org.objectstyle.wolips.core.resources.types.folder.IDotApplicationAdapter;
 import org.objectstyle.wolips.core.resources.types.folder.IDotFrameworkAdapter;
-import org.objectstyle.wolips.core.resources.types.project.IProjectAdapter;
 
 /**
  * @author ulrich/mike
@@ -75,7 +74,7 @@
 
   private IProgressMonitor myProgressMonitor;
   private BuilderWrapper[] myBuilderWrappers;
-  private IDotWOLipsAdapter myDotWOLipsAdapter;
+  private ProjectPatternsets projectPatternsets;
   private Map myBuildCache;
   private final static PatternList DEFAULT_EXCLUDE_MATCHER = new PatternList(new String[] { "**/.svn", "**/.svn/**", "**/CVS", "**.*~/**", "**/CVS/**", "**/build/**", "**/dist/**" });
 
@@ -102,12 +101,11 @@
   }
 
   public void buildStarted(IProject project) {
-    IProjectAdapter projectAdapter = (IProjectAdapter) project.getAdapter(IProjectAdapter.class);
-    myDotWOLipsAdapter = projectAdapter.getDotWOLipsAdapter();
+    projectPatternsets = new ProjectPatternsets(project);
   }
 
   public void visitingDone() {
-    myDotWOLipsAdapter = null;
+	  projectPatternsets = null;
   }
 
   public int getWoResourceType(IResource _resource) {
@@ -132,13 +130,13 @@
     if (DEFAULT_EXCLUDE_MATCHER.matches(strings)) {
       woResourceType = AbstractBuildVisitor.WO_RESOURCE_TYPE_IGNORE;
     }
-    else if (!myDotWOLipsAdapter.getClassesExcludePatternList().matches(strings) && myDotWOLipsAdapter.getClassesIncludePatternList().matches(strings)) {
+    else if (!projectPatternsets.getClassesExcludeMatcher().match(strings) && projectPatternsets.getClassesIncludeMatcher().match(strings)) {
       woResourceType = AbstractBuildVisitor.WO_RESOURCE_TYPE_CLASS;
     }
-    else if (!myDotWOLipsAdapter.getResourcesExcludePatternList().matches(strings) && myDotWOLipsAdapter.getResourcesIncludePatternList().matches(strings)) {
+    else if (!projectPatternsets.getResourcesExcludeMatcher().match(strings) && projectPatternsets.getResourcesIncludeMatcher().match(strings)) {
       woResourceType = AbstractBuildVisitor.WO_RESOURCE_TYPE_RESOURCE;
     }
-    else if (!myDotWOLipsAdapter.getWoappResourcesExcludePatternList().matches(strings) && myDotWOLipsAdapter.getWoappResourcesIncludePatternList().matches(strings)) {
+    else if (!projectPatternsets.getWoappResourcesExcludeMatcher().match(strings) && projectPatternsets.getWoappResourcesIncludeMatcher().match(strings)) {
       woResourceType = AbstractBuildVisitor.WO_RESOURCE_TYPE_WEB_SERVER_RESOURCE;
     }
     else if (_resource.getType() == IResource.FILE && _resource.getName().endsWith(".java")) {



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642