Index: src/org/jbpm/gd/jpdl/wizard/NewProcessProjectWizard.java =================================================================== --- src/org/jbpm/gd/jpdl/wizard/NewProcessProjectWizard.java (revision 23382) +++ src/org/jbpm/gd/jpdl/wizard/NewProcessProjectWizard.java (working copy) @@ -266,7 +266,7 @@ // if (!processesFolder.exists()) { // processesFolder.create(true, true, null); // } - IFolder folder = javaProject.getProject().getFolder("src/main/jpdl/simple"); + IFolder folder = javaProject.getProject().getFolder("src/main/jpdl"); if (!folder.exists()) { folder.create(true, true, null); } @@ -281,11 +281,21 @@ File fromDir = new File(fromPath); if (!fromDir.exists()) return; File[] files = fromDir.listFiles(); + IFile destination = null; for (int i = 0; i < files.length; i++) { - copyJbpmResource(files[i], folder); + if ("processdefinition.xml".equals(files[i].getName())) { + destination = folder.getFile("simple.jpdl.xml"); + } else if ("gpd.xml".equals(files[i].getName())) { + destination = folder.getFile(".simple.gpd.xml"); + } else if ("processimage.jpg".equals(files[i].getName())) { + destination = folder.getFile("simple.jpg"); + } + if (destination != null) { + destination.create(new FileInputStream(files[i]), true, null); + } } } - + private void createSimpleProcessTest(IJavaProject javaProject) throws JavaModelException, IOException { String resourceName = "org/jbpm/gd/jpdl/resource/SimpleProcessTest.java.template"; IFolder folder = javaProject.getProject().getFolder("src/test/java"); Index: src/org/jbpm/gd/jpdl/resource/SimpleProcessTest.java.template =================================================================== --- src/org/jbpm/gd/jpdl/resource/SimpleProcessTest.java.template (revision 23382) +++ src/org/jbpm/gd/jpdl/resource/SimpleProcessTest.java.template (working copy) @@ -10,7 +10,7 @@ public void testSimpleProcess() throws Exception { // Extract a process definition from the processdefinition.xml file. - ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("simple/processdefinition.xml"); + ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("simple.jpdl.xml"); assertNotNull("Definition should not be null", processDefinition); // Create an instance of the process definition.