7 Replies Latest reply on Mar 1, 2007 12:51 AM by jeffdelong

    removed the examples from the eclipse classpath

    tom.baeyens

      in the eclipse .classpath file under the jbpm.3 directory, i have removed the 2 source paths and one classpath folder related to the examples.

      the idea is that if you want to do examples, you create a separate eclipse workspace with jbpm.3 in there and then all the examples as separate projects in that workspace.

      those projects can have a dependency on the jbpm.3 project and their own classpath.

      regards, tom.

        • 1. Re: removed the examples from the eclipse classpath
          kukeltje

          good idea, but this should be documented carefully. I see a lot of questions comming up in this area.

          • 2. Re: removed the examples from the eclipse classpath
            jeffdelong

            I will try to test my examples sometime this week.

            • 3. Re: removed the examples from the eclipse classpath
              jeffdelong

               


              the idea is that if you want to do examples, you create a separate eclipse workspace with jbpm.3 in there and then all the examples as separate projects in that workspace.


              I am not sure I follow this. If I try to create a project, and use Create Project from existing source, I get an error 'Cannot create project contents in workspace"

              I assume this is because jbpm.3 is already a project in my workspace. So I guess I would have to create another workspace separate from the one with jbpm.3?

              What am I missing here?

              • 4. Re: removed the examples from the eclipse classpath
                jeffdelong

                Actually Tom's instructions do seem to work if I create a project in a new workspace using a downloaded version of jbpm-jpdl-3.2.Beta2 (and manually removing the examples source folders from Eclipse project build path src tab - this step only because beta2 does not have Tom's changes), and then create a project from the example/ruleFlow directory.

                It did not work at first because I was using the jbpm.3 project created from CVS.

                • 5. Re: removed the examples from the eclipse classpath
                  tom.baeyens

                  the way you can do it is by checking out the complete jbpm.3 project and checkout each example as a separate project.

                  the examples are hence checked out 2 times, but that is not a problem.

                  you might have a problem that the projects are simple projects when you check them out initially instead of java projects. in that case you need to delete them (without deleting content) and then recreate them by typing the example project name in the default directory. it will pick up the original project, but then you can create it as a java project.

                  • 6. Re: removed the examples from the eclipse classpath
                    kukeltje

                    I think you can also check it out once (outside the workspace) and then import jbpm.3 and each example as a separate project. That way it is checked out once.

                    I wanted to try that, but get.all.dependencies starts all over again after a (local) network failure. It does not take the timestamp into account on linux

                    • 7. Re: removed the examples from the eclipse classpath
                      jeffdelong

                      Ok, I fixed my examples: customTaskInstance, ruleFlow, rulesActionHandler, and rulesAssignmentHandler and tested them by creating a new project in a separate workspace. I will try to test them again tomorrow by rechecking them out as separate projects from CVS.