1. Arthur Hefti
  2. PowerBuilder
  3. Saturday, 3 February 2018 15:48 PM UTC

Hi

using OrcaScript we can build the PBLs with 

start session
  ...
  scc connect offline   
  scc set target "..\absenzverwaltung.pbt" importonly  
  scc refresh target 3pass
  ...
end session  

This fails with R2 as the application sourced is not found. The source files are now located at different location than before.

From the Log:
...
Scc Connect Offline Successful.
PBORCA_SccSetTarget: e:\projects\absentia & av\av\buildtest\absenzverwaltung.pbt
Target settings: IMPORT ONLY | REFRESH ALL (Implicit)
App Name: absenzverwaltung    App Lib: e:\projects\absentia & av\av\buildtest\absenzverwaltung\absenzverwaltung.pbl
Library List: 
e:\projects\absentia & av\av\buildtest\absenzverwaltung\absenzverwaltung.pbl
....
Bootstrapping Application...
Application object not found: e:\projects\absentia & av\av\buildtest\absenzverwaltung\absenzverwaltung.sra
PBORCA_SccClose
The sra file is actually at E:\Projects\Absentia & Av\av\BuildTest\ws_objects\absenzverwaltung\absenzverwaltung.pbl.src
 
Regards
Arthur

 

Bruce Armstrong Accepted Answer Pending Moderation
  1. Saturday, 3 February 2018 21:27 PM UTC
  2. PowerBuilder
  3. # 1

Perhaps as a work around until Appeon addresses this, have you considered using the OrcaScript file copy command or perhaps a batch file prior to running OrcaScript to copy the files into the location that OrcaScript is expecting them?

Comment
  1. Arthur Hefti
  2. Monday, 5 February 2018 08:26 AM UTC
I would have been nice when Appeon would have though about such things. Or maybe inform the PB users in advance what they want to change and get some feedback.



We use our own C++ Application that processes to target and builds the pbls and exe. So I have to change it at some places to make it work.

  1. Helpful
  1. William Tranmer
  2. Monday, 7 May 2018 20:33 PM UTC
Should this be necessary if we have not touched the ws_objects folder? For example, given the following structure:



\code



  \folder1



    \src



  \folder2



    \src



\demo.pbw



When we add the workspace to source control (git), the ws_objects folder structure is created in the root of the workspace, i.e. \ws_objects. Then another dev opens the workspace in PB to download the repo. The orca script then fails with the error "Application object not found: d:\code\folder1\src\app1.sra"



Do we really need to copy all of the *.sr* files out from the ws_objects folder into the main src folder? Our production application has >10k objects. Can you provide the script to do the copy so we can adapt it to our use case?

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.