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?
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
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

DonManfred

Expert
Licensed User
Longtime User
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

aeric

Expert
Licensed User
Longtime User
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

Erel

B4X founder
Staff member
Licensed User
Longtime User
It may be useful if it is build in the IDE menu.
 
Upvote 0

tchart

Well-Known Member
Licensed User
Longtime User
I use this method.

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

The compileonly.bat batch file is as follows;

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

Or if you prefer not to have a batch file;

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