Ant script Issue - pct compile

Posted by FCC on 22-May-2015 04:17

I've managed to develop the Ant script  that compiles all the modules/projects on Linux, but there is an annoying thing that happens, when different modules are compiled all the super classes are compiled also and local r files are created with folder structure from the super classes in the module.
For example if the Backend project is compiled folder structure and r files will be created in the project from the superclasses and those are in different project, can this be avoided somehow?

All Replies

Posted by Mike Fechner on 22-May-2015 04:52

It's a common behavior (annoyance) of the compile statement which PCT is relying on.

When there are parallel projects and source code of the class library project is available in Propath, those classes are compiled in the referencing project as well.

You can get around this by only making the r-code (may be in a .pl) of the library project available when compiling the code that references this.

Von meinem Windows Phone gesendet

Von: unu_mi
Gesendet: ‎22.‎05.‎2015 11:18
An: TU.OE.General@community.progress.com
Betreff: [Technical Users - OE General] Ant script Issue - pct compile

Thread created by unu_mi

I've managed to develop the Ant script  that compiles all the modules/projects on Linux, but there is an annoying thing that happens, when different modules are compiled all the super classes are compiled also and local r files are created with folder structure from the super classes in the module.
For example if the Backend project is compiled folder structure and r files will be created in the project from the superclasses and those are in different project, can this be avoided somehow?

Stop receiving emails on this subject.

Flag this post as spam/abuse.

Posted by Riverside Software on 22-May-2015 07:04

Mike is right, you'll need to have the rcode of parent classes referenced in your propath.

Posted by Simon L. Prinsloo on 22-May-2015 09:36

I am working on the same project as the original poster.

In some cases we have the r-code in a pl. But we also need to reference includes in the other projects, so these projects are still in the propath, albeit after the pl file.

Yet the behaviour persists. If the r-code is encountered much sooner in the propath (inb the pl file) than the  source of the super classes, why are the super classes still compiled?

An alternative would be to make a project with the sole purpose to contain the include files with dataset definitions etc., but I really hate that idea, because that means that we must either mix up stuff from different projects in one place (which we wantto avoid, hence the different project) or double up on all projects.

This thread is closed