1. Marc-André Despins
  2. PowerBuilder
  3. Monday, 4 November 2019 20:01 PM UTC

I try to generate build my powerbuilder application that i put on GIT.

We dont add the pbl on Git.

We work with Azure devops and i try to do an automatic build with the PBC190.exe

But when i try to deploy the application, with that command line :

pbc190.exe /d "app.pbt" /o "app.exe" /r "app.pbr" /w n /i /m n /x 32 /bg y /p "PowerBuilder Enterprise Series" /cp "Appeon" /de "Appeon Product File" /v "1.0.0.1" /vn "1.0.0.1" /fv "1.0.0.1" /fvn "1.0.0.1" /ge 0 

i got an error message : "Current application has not been set"

Did someone know if i use the best solution for that probleme.

if yes, what is my problem ?

Accepted Answer
Marc-André Despins Accepted Answer Pending Moderation
  1. Tuesday, 5 November 2019 15:51 PM UTC
  2. PowerBuilder
  3. # Permalink

i finally find the solution to my probleme. 

i do and orascript like this : 

start session
scc set connect property localprojpath "D:\Powerbuilder test\UNI-test2\"
;localprojpath must point to the parent directory of ws_objects folder
scc set connect property logfile "D:\Powerbuilder test\UNI-test2\svnorca.log"
scc set connect property logappend false
scc set connect property deletetempfiles "true"
scc connect offline
scc set target "D:\Powerbuilder test\UNI-test2\src\uni.pbt" "refresh_all importonly"
;scc exclude liblist "D:\Powerbuilder test\UNI-test2\pbsoapclient190.pbd"
scc refresh target incremental
scc refresh target "3pass"

build library "D:\Powerbuilder test\UNI-test2\src\unign.pbl" "" pbd
build library "D:\Powerbuilder test\UNI-test2\src\uni_misc.pbl" "" pbd

build executable "D:\Powerbuilder test\UNI-test2\src\uni.exe" "D:\Powerbuilder test\UNI-test2\uni.ico" "" "yy"
scc close
end session

 

after i can do a full rebuild in command line with the PBC190.exe

and i can run my application with the EXE that's is generate

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 5 November 2019 16:02 PM UTC
Thanks for sharing the solution!
  1. Helpful
  1. Roland Smith
  2. Tuesday, 5 November 2019 18:45 PM UTC
Aren't the three build commands at the end doing the same thing that the PBC program does?
  1. Helpful
  1. Marc-André Despins
  2. Tuesday, 5 November 2019 18:50 PM UTC
i'm not sure. when i run only my orca script my exe file didn't work. But if i run the PBC after, my exe work good
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 4 November 2019 20:14 PM UTC
  2. PowerBuilder
  3. # 1

Hi Marc-André;

   You would need to precede the PBC utility by running the ORACScript utility. ORCAScript is the one that can connect to your SCM repository and bring down the PBL's and/or object changes as required for the build. Once that ORCAScript step is done, the PBC can then create the application EXE and/or PBD's. Check out the PB Help for more details about these utilities.
HTH

Regards ... Chris

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Monday, 4 November 2019 20:26 PM UTC
  2. PowerBuilder
  3. # 2

Adding to what Chris said, the source control repository only has the source files (*.sr*). The stand-alone compiler requires the .PBL files. You need to run ORCAScript to recreate or update a set of .PBL files and feed them into the compiler.

Comment
There are no comments made yet.
Marc-André Despins Accepted Answer Pending Moderation
  1. Monday, 4 November 2019 20:46 PM UTC
  2. PowerBuilder
  3. # 3

i run the oracScript whit the orcascr190.exe
My script is :
start session
set liblist "D:\Powerbuilder test\UNI-test2\src\unign.pbl" "D:\Powerbuilder test\UNI-test2\src\uni_misc.pbl"
set appendlib "D:\Powerbuilder test\UNI-test2\src\unign.pbl" "y"
set appendlib "D:\Powerbuilder test\UNI-test2\src\uni_misc.pbl" "y"
set application "D:\Powerbuilder test\UNI-test2\src\unign.pbl" "build"
build library "D:\Powerbuilder test\UNI-test2\src\unign.pbl" "" pbd
build library "D:\Powerbuilder test\UNI-test2\src\uni_misc.pbl" "" pbd
build executable "D:\Powerbuilder test\UNI-test2\src\uni.exe" "D:\Powerbuilder test\UNI-test2\src\uni.ico" "D:\Powerbuilder test\UNI-test2\src\uniforme.pbr" ""
end session


but i got this message : An OpenLibrary() operation failed. It is possibly locked by another user or deleted.

but i know that i dont have the library. i want to create it

Comment
  1. Roland Smith
  2. Monday, 4 November 2019 22:00 PM UTC
I haven't used Orcascript myself but that looks like a compile script.

I think you need to do a 'scc refresh' but the help is pretty poor.
  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.