Sep 12, 2025 Replies: 3 Method 1: rename existing jar B4X: Copy #Macro: Title, Rename, ide://run?file=%COMSPEC%&Args=/c&Args=ren&Args=result.jar&Args=libget-non-ui.jar You can also check if the file exists before rename or you will get an error "The system cannot find the file specified." (Exit code 1) B4X: Copy #Macro: Title, Rename, ide://run?file=%COMSPEC%&Args=/c&Args=IF+EXIST+result.jar&Args=ren&Args=result.jar&Args=libget-non-ui.jar Method 2: keep result.jar but copy to Additional Libraries folder B4X: Copy #CustomBuildAction: 2, %COMSPEC%, /c copy result.jar %ADDITIONAL%\..\B4X\libget-non-ui.jar Method 3: build the jar without running B4ABuilder / B4JBuilder - Command line compilation B4A v4.30 includes a new tool named B4ABuilder.exe (and B4J includes a similar tool named B4JBuilder.exe). This tool allows you to compile your projects from the command line. This can be useful if you need to build multiple projects or to build the same project with multiple configurations... www.b4x.com B4X: Copy #Macro: Title, Build only, ide://run?File=%B4X%\B4JBuilder.exe&Args=-Task%3DBuild&Args=-BaseFolder%3D..&Args=-Output%3Dlibget_non_ui Note: dash or hyphen in the output filename resulted the filename back to result.jar Last edited: Sep 24, 2025 Click to expand...
Method 1: rename existing jar B4X: Copy #Macro: Title, Rename, ide://run?file=%COMSPEC%&Args=/c&Args=ren&Args=result.jar&Args=libget-non-ui.jar You can also check if the file exists before rename or you will get an error "The system cannot find the file specified." (Exit code 1) B4X: Copy #Macro: Title, Rename, ide://run?file=%COMSPEC%&Args=/c&Args=IF+EXIST+result.jar&Args=ren&Args=result.jar&Args=libget-non-ui.jar Method 2: keep result.jar but copy to Additional Libraries folder B4X: Copy #CustomBuildAction: 2, %COMSPEC%, /c copy result.jar %ADDITIONAL%\..\B4X\libget-non-ui.jar Method 3: build the jar without running B4ABuilder / B4JBuilder - Command line compilation B4A v4.30 includes a new tool named B4ABuilder.exe (and B4J includes a similar tool named B4JBuilder.exe). This tool allows you to compile your projects from the command line. This can be useful if you need to build multiple projects or to build the same project with multiple configurations... www.b4x.com B4X: Copy #Macro: Title, Build only, ide://run?File=%B4X%\B4JBuilder.exe&Args=-Task%3DBuild&Args=-BaseFolder%3D..&Args=-Output%3Dlibget_non_ui Note: dash or hyphen in the output filename resulted the filename back to result.jar
aeric Expert Licensed User Longtime User Sep 12, 2025 #2 Added Method 2, just copy the result.jar to another destination. B4X: Copy #CustomBuildAction: 2, %COMSPEC%, /c copy result.jar %ADDITIONAL%\..\B4X\libget-non-ui.jar Edit: Replaced C:\Windows\System32\cmd.exe with %COMSPEC% [B4X] Comment Links and #Macros Comment Links Code comments can include clickable links. The following schemes are supported: http(s):// - Link will be opened with the browser. Example: Dim key As String = OrderedMap.Keys.Get(0) 'based on... www.b4x.com Last edited: Sep 24, 2025
Added Method 2, just copy the result.jar to another destination. B4X: Copy #CustomBuildAction: 2, %COMSPEC%, /c copy result.jar %ADDITIONAL%\..\B4X\libget-non-ui.jar Edit: Replaced C:\Windows\System32\cmd.exe with %COMSPEC% [B4X] Comment Links and #Macros Comment Links Code comments can include clickable links. The following schemes are supported: http(s):// - Link will be opened with the browser. Example: Dim key As String = OrderedMap.Keys.Get(0) 'based on... www.b4x.com
aeric Expert Licensed User Longtime User Sep 24, 2025 #3 Added Method 3 to build the jar without running by using B4JBuilder.exe Last edited: Sep 24, 2025
aeric Expert Licensed User Longtime User Sep 24, 2025 #4 Added &Args=IF+EXIST+result.jar to check if the file exists or already renamed for Method 1.