"tapestry5-annotations-5.1.0.5.jar",
"woodstox-core-asl-4.0.3.jar", };
try {
// if this path exists
if (configPath.toFile().exists()) {// configPath.toFile().exists()
final IWorkspaceRunnable op = new IWorkspaceRunnable() {
public void run(final IProgressMonitor monitor_inner)
throws CoreException {
String absolutePath = ComponentCore
.createComponent(project).getRootFolder()
.getUnderlyingFolder().getRawLocation()
.toString();
String webContent = absolutePath.substring(absolutePath
.lastIndexOf("/"));
for (int i = 0; i < jarList.length; i++) {
String jar = jarList[i];
IFile eachJar = project.getFile(webContent
+ libPath + jar);
if (!eachJar.exists()) {
eachJar.create(this.getClass().getClassLoader()
.getResourceAsStream("jars/" + jar),
false, null);
}
}
project.refreshLocal(IResource.DEPTH_INFINITE,
monitor_inner);
}
};
op.run(monitor);
}
} catch (final CoreException e) {
TapestryCorePlugin.log(e,
"Exception occured while copying Tapestry jar libraries");
}