The ide://run method supports these additional arguments:
FilesSync=True - Causes the IDE to sync the Files folder after operation completes.
CleanProject=True - Causes the IDE to clean the project after operation completes.
VMArgs - Similar to Args but added as a JVM argument.
You can add: VMArgs=-DZeroSharedFiles%3DTrue to a zipper call to delete the content of the platform specific copies of shared files (the content will be added back when the program runs, because of the custom build action).
The parameter values can include the following case sensitive aliases:
%B4X% - installation folder.
%PROJECT% - project folder (location of the project .B4? file).
%JAVABIN% - configured java bin folder (not available in beta #1)
%ADDITIONAL% - Platform specific additional libraries folder.
Any other environment variable
Setup an ENV Var with the Date you want to use. Use this ENV Var then.
This sort of contradicts the use case. I want it to change the file name according to the current time. If I setup an ENV var, I could just as well hardcode the time etc
I think it is because they are not 'real' environment variables but are 'virtual' ones recognised by the shell but not actually existing in the environment variable table.
I think it is because they are not 'real' environment variables but are 'virtual' ones recognised by the shell but not actually existing in the environment variable table.
I modified Ziper to have the %B4XDATETIME% function that displays date and time in the format _yyyyMMdd_HHmmss
yyyy=year, MM=month, dd=day, HH=hour, mm=minute and ss=second
Exemple in use:
'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=%PROJECT_NAME%_%B4XDATETIME%.zip
Copy the Zipper.jar file to the IDE folder (B4A, B4I, B4J).
Exemple: C:\B4X\IDE\B4A