Author |
Message
|
ramzi |
Posted: Thu Aug 10, 2006 7:10 am Post subject: Bar file and Java Dependencies |
|
|
 Novice
Joined: 16 Aug 2004 Posts: 19 Location: France
|
Hi there,
I have a flow with a Java Compute Node (JCN Project) which has a project dependency (Java project) in its buildpath.
When I created the bar, I would expect that a jar is created and added to the bar but only the flow and the JCN jar are added.
But when I generate a jar from the Java Project and add it as "internal jar" to the buildpath of the "JCN Project" (and remove the project dependency), the jar is successfully added to the bar.
So my question is: does the WMB Toolkit support "Java project dependencies" for bar creation, or only "internal jar dependencies"?
Any "expert's answer" would be apprecieted 
Last edited by ramzi on Fri Aug 11, 2006 8:24 am; edited 2 times in total |
|
Back to top |
|
 |
wschutz |
Posted: Thu Aug 10, 2006 8:55 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Is the java project just listed in the buildpath, or is it also listed as a project dependency? _________________ -wayne |
|
Back to top |
|
 |
ramzi |
Posted: Fri Aug 11, 2006 6:47 am Post subject: |
|
|
 Novice
Joined: 16 Aug 2004 Posts: 19 Location: France
|
Hi Wayne, thanks for answering!
Currently the java project is referenced in both "buildpath" & "Project Reference" of the JCN project. It is also referenced as a project reference in the flow project.
Unfortunately, only the JCN project's jar is added in the bar generation and not the Java project jar.
Is it working with you?
Ramzi |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 11, 2006 6:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So you have three projects. A Message Flow Project, a Java project for your JCN and another Java project.
And the Toolkit is correctly building and including in the bar file the Jar for the JCN project.
And you now want to get the jar file for the other Java project to be built and included as well?
You probably need to specify the dependancies on the Message Flow project, rather than the JCN project. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
ramzi |
Posted: Fri Aug 11, 2006 7:36 am Post subject: |
|
|
 Novice
Joined: 16 Aug 2004 Posts: 19 Location: France
|
Hi Jeff !
jefflowrey wrote: |
So you have three projects. A Message Flow Project, a Java project for your JCN and another Java project.
|
Correct
jefflowrey wrote: |
And the Toolkit is correctly building and including in the bar file the Jar for the JCN project.
|
Correct
jefflowrey wrote: |
And you now want to get the jar file for the other Java project to be built and included as well?
|
Correct
jefflowrey wrote: |
You probably need to specify the dependancies on the Message Flow project, rather than the JCN project. |
I've just tried it but unfortunately it does not work !
Is it working with you? |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 11, 2006 7:39 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
ramzi wrote: |
Is it working with you? |
I haven't tried it. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
ramzi |
Posted: Mon Aug 14, 2006 5:05 am Post subject: |
|
|
 Novice
Joined: 16 Aug 2004 Posts: 19 Location: France
|
UP!
Does Anyone had the toolkit successfuly packaged jars from workspace's project into the bar? |
|
Back to top |
|
 |
shrek |
Posted: Mon Aug 14, 2006 11:46 am Post subject: |
|
|
 Acolyte
Joined: 19 Feb 2005 Posts: 61 Location: Gudivada,India
|
ramzi...
I had success with the following directory structure
Quote: |
<java project>\<package name>\*.java |
However, I couldn't succeed with below set up
Quote: |
<java project>\<schema name>\<package name>\*.java |
In both cases, I had a project reference to java project from message flow projects.
Hope this helps.
Thanks. |
|
Back to top |
|
 |
ramzi |
Posted: Tue Aug 29, 2006 1:20 am Post subject: |
|
|
 Novice
Joined: 16 Aug 2004 Posts: 19 Location: France
|
|
Back to top |
|
 |
|