B4J Question [Solved] Build only, Don't Run

aeric

Expert
Licensed User
Longtime User
Hi all,
May I know I can build the Release jar (Non-UI) without starting/running the app after the compilation is completed? Maybe using Conditional Compilation or CommandLineArgs?
 
It is not possible but in the log panel there is a button "kill process" that will work on release.

The IDE will know what process you just launched if you don't close it. Once you close it you have to kill it with the task manager
 
Upvote 0
Thanks.
I am building an app where it is using development and production API.
My workaround is using a config file.
 
Upvote 0
May I know I can build the Release jar (Non-UI) without starting/running the app after the compilation is completed?
Use the Commandlinebuilder.
 
Upvote 0
Use the Commandlinebuilder.
Thanks @DonManfred
This has answered my question. It may be useful if it is build in the IDE menu. However, I seldom need to do this so no need to add as a wish. :)

1595227468988.png
 
Upvote 0
Actually I didn't find the correct result with "Commandlinebuilder". Then I broken the word into "Command line builder" and search again.
 
Upvote 0
It may be useful if it is build in the IDE menu.
 
Upvote 0
I use this method.

B4X: Copy
    #if RELEASE    
        #CustomBuildAction: 2, C:\Apps\B4J\Tools\CompileOnly\compileonly.bat,    
    #end if

The compileonly.bat batch file is as follows;

Code: Copy
@echo off
echo ***************************
echo Compile complete, cancel run...
echo ***************************
EXIT /B 1

Or if you prefer not to have a batch file;

Code: Copy
#if RELEASE       
    #CustomBuildAction: 2, %windir%\system32\cmd.exe, "/k exit /B 1"
#end if
 
Last edited:
Upvote 0

Similar Threads

Back
Top