[Progress Communities] [Progress OpenEdge ABL] Forum Post: compile and classes

  • Thread starter Thread starter goo
  • Start date Start date
Status
Not open for further replies.
G

goo

Guest
11.7 I have made a compilingprogram does some compile of dirctories and files. Basically it travers a directory, finds *.p *.w *.cls and does a compile to a pregiven area. &scope-defined Environment Test &scope-defined Target001 \\serverA\$D\{&Environment}\myApp myCompile = new Compile(). myCompile:addDirectory('.\directoryA','{&Target001}\directoryA'). myCompile:addDirectory('.\directoryB','{&Target001}\directoryB'). myCompile:addCommand('.\oo\myClassA.cls','{&Target001}\oo'). myCompile:addCommand('.\oo\DataHelper\myClassB.cls','{&Target001}\'). and so on... I could have done this different, but when I did it I was not very familiar with oo. Anyway, now to my question: if I have myClassA.cls that is defined without namespace class myClassA : end. and myClassB that is defined with namespace class oo.DataHelper.myClassB.cls : end. then I have to differentiate between how I do the compile statement. If I say compile myClass.cls save into .... it will store the class where it points to in save + the namespace. How can I ensure that it is compiled into the area I tell it store (save into) as it is now, I have to check if the code has a namespace before I do the compile? PS! I know I should use namespace, but there is a lot of legacy code that do not have that.... //Geir Otto //Geir Otto

Continue reading...
 
Status
Not open for further replies.
Back
Top