New version for the update site.

This commit is contained in:
lonnen
2010-09-29 02:03:02 +00:00
parent cc9e601066
commit d563e0e1af
8 changed files with 40 additions and 39 deletions

View File

@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Processing Plugin Core
Bundle-SymbolicName: processing.plugin.core;singleton:=true
Bundle-Version: 0.2.0.0
Bundle-Version: 0.2.1.0
Bundle-Activator: processing.plugin.core.ProcessingCore
Bundle-Vendor: Processing.org
Require-Bundle: org.eclipse.core.runtime,

View File

@@ -229,7 +229,7 @@ public class SketchProject implements IProjectNature {
project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
}
/** Return the sketch's code folder or null if it cannot be retrieved */
/** Return the sketch's code folder or null if it cannot be retrieved. */
public IFolder getCodeFolder(){
try{
IFolder code = project.getFolder("code");
@@ -358,7 +358,7 @@ public class SketchProject implements IProjectNature {
if(srcFolderPathList != null){
for( IPath p : srcFolderPathList){
if (p!=null){
System.out.println(p.toOSString());
// System.out.println(p.toOSString());
entries.add(JavaCore.newSourceEntry(p.makeAbsolute()));
}
}
@@ -367,7 +367,7 @@ public class SketchProject implements IProjectNature {
if(libraryJarPathList != null){
for(IPath p : libraryJarPathList){
if (p != null){
System.out.println(p.toString());
// System.out.println(p.toString());
entries.add(
JavaCore.newLibraryEntry(p.makeAbsolute(),
null, // no source

View File

@@ -29,7 +29,6 @@ import java.util.zip.ZipFile;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IPath;
import processing.plugin.core.ProcessingCore;
import processing.plugin.core.ProcessingCorePreferences;
import processing.plugin.core.ProcessingLog;
@@ -101,21 +100,19 @@ public class Utilities {
}
return count;
}
/**
* Given a folder, return a list of absolute paths to all .jar and .zip
* (but not .class) files inside that folder, separated by the system's
* path separator character.
*
* <p>
* This will prepend the system's path separator so that it can be directly
* appended to another path string.
*
* <p>
* This function doesn't bother checking to see if there are any .class
* files in the folder or within a subfolder.
*/
static public String contentsToClassPath(File folder) {
//TODO Review this method and make sure that it is returning only paths directly to jars and zip files
// It was returning empty paths which was breaking things. Needs to be reviewed.
if (folder == null) return "";
if (!folder.isDirectory()) return "";