How do I get an IBM i build definition to push java class files?
I've got an IBM i project which is mostly c/c++, some CL, and a few Java classes.
The IBM i build definition properly sends all the files in QSYS but it isn't sending any of the java classes which are in IFS. How can I get the build to push the java classes?
The java classes are in the repository workspace. The remote reconciler has the 'Push on build' box checked.
One answer
Christian I answered your other version of this question about 'IFS files' but you didn't say in that one you were talking about java. You also haven't specified what Build style you are using since there are more than one or specifying what version of RTC which dictates what Build styles you have available.
As I said in your other question you can define your own types based on extensions BUT if you do that with .java you don't get the java built into classes. The IBM i builds are specifically to manage source that lives in sourcefiles and my other answer was a hack for config files like PCML.
Save yourself a LOT of time and just manage your java files in a java project and do a normal RTC java build with the target the IFS, stop trying to use the IBM i build to do something it's not supposed to do just because the build results happen to live on the IBM i in the IFS. yes it will be a different build then your native IBM i stuff but it will be a big effort to manage them in the IBM i build and it probably won't work that well anyway. You might be able to get it to work with a very simple java app but anything complex with lots of dependencies will probably fall down.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 04 '22, 9:46 a.m.Christian Aasland
Mar 09 '22, 2:41 p.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 10 '22, 3:38 a.m.