CPD Results

The following document contains the results of PMD's CPD

Duplications

FileLine
com/cyclopsgroup/waterview/jelly/JellyScriptsRunner.java57
com/cyclopsgroup/waterview/jelly/JellyRunner.java56
				Enumeration enu = JellyRunner.class.getClassLoader()
						.getResources(path);
				CollectionUtils.addAll(scripts, enu);
			}
		}
		if (scripts.isEmpty()) {
			System.out.println("No script to run, return!");
			return;
		}

		String basedir = new File("").getAbsolutePath();
		Properties initProperties = new Properties(System.getProperties());
		initProperties.setProperty("basedir", basedir);
		initProperties.setProperty("plexus.home", basedir);

		DefaultPlexusContainer container = new DefaultPlexusContainer();
		for (Iterator j = initProperties.keySet().iterator(); j.hasNext();) {
			String initPropertyName = (String) j.next();
			container.addContextValue(initPropertyName, initProperties
					.get(initPropertyName));
		}

		container.addContextValue(Waterview.INIT_PROPERTIES, initProperties);
		container.initialize();
		container.start();

		JellyEngine je = (JellyEngine) container.lookup(JellyEngine.ROLE);
		JellyContext jc = new JellyContext(je.getGlobalContext());