taverna-beanshell-activity/src/main/java/org/apache/taverna/activities/dependencyactivity/AbstractAsynchronousDependencyActivity.java [306:343]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
					try {
						dependencies.add(new File(libDir, jar.textValue()));
					} catch (Exception ex) {
						logger.warn("Invalid URL for " + jar, ex);
						continue;
					}
				}
			}
//			}
//			else if (dependencyType.equals(ARTIFACTS)){
//				if (this.getClass().getClassLoader() instanceof LocalArtifactClassLoader){ // This should normally be the case
//					LocalArtifactClassLoader cl = (LocalArtifactClassLoader)this.getClass().getClassLoader();
//					LocalRepository rep  = (LocalRepository)cl.getRepository();
//					if (rep != null){
//						for (BasicArtifact art : configurationBean.getArtifactDependencies()){
//							dependencies.add(rep.jarFile(art));
//						}
//					}
//				}
//				else{
//					// Tests will not be loaded using the LocalArtifactClassLoader as athey are loaded
//					// outside Raven so there is nothing we can do about this - some tests
//					// with dependencies will probably fail
//				}
//			}
		}

		// Collect the URLs of all found dependencies
		for (File file: dependencies){
			try{
				dependenciesURLs.add(file.toURI().toURL());
			}
			catch(Exception ex){
				logger.warn("Invalid URL for " + file.getAbsolutePath(), ex);
				continue;
			}
		}
		return dependenciesURLs;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



taverna-beanshell-activity/src/main/java/org/apache/taverna/activities/dependencyactivity/AbstractAsynchronousDependencyActivity.java [377:408]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
									try {
										dependencies.add(new File(libDir, jar.textValue()));
									} catch (Exception ex) {
										logger.warn("Invalid URL for " + jar, ex);
										continue;
									}
								}
							}
//						} else if (dependencyType.equals(ARTIFACTS) && this.getClass().getClassLoader() instanceof LocalArtifactClassLoader){
//							LocalArtifactClassLoader cl = (LocalArtifactClassLoader) this.getClass().getClassLoader(); // this class is always loaded with LocalArtifactClassLoader
//							LocalRepository rep  = (LocalRepository) cl.getRepository();
//							for (BasicArtifact art : ((DependencyActivityConfigurationBean) activity
//											.getConfiguration())
//											.getArtifactDependencies()){
//								dependencies.add(rep.jarFile(art));
//							}
//						}
				}
			}
		}

		// Collect the URLs of all found dependencies
		for (File file: dependencies){
			try{
				dependenciesURLs.add(file.toURI().toURL());
			}
			catch(Exception ex){
				logger.warn("Invalid URL for " + file.getAbsolutePath(), ex);
				continue;
			}
		}
		return dependenciesURLs;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



