[please correct me if this already exists!]
I wish we could use user definied variables in #PackagerProperty, #CustomBuildAction, & #Macro, and date variables specifically in #PackagerProperty?
I realise that we can use Environment Variables, date variables, etc already in #Macro declarations like:
[note that as per @walt61's post #2, the %YYYY%-%MM%-%DD% in the above is in the args of ZipperWm. These are not handled by the IDE #Macro handling itself]
But, so far as I can tell we can not:
1. Use the same variables in #PackagerProperty items
2. Use user defined variables in any of #PackagerProperty, #CustomBuildAction, or #Macro
What I would specifically like to be able to do is something like the following, mainly so that the app version and dates don't need to be updated in multiple areas:
UPDATE: as per @walt61's post #2, I was wrong to think that date variables are handled by the IDE in #Macro. So the wish is actually for date varaibes and user defined variables to be handled by the IDE in all of #PackagerProperty, #CustomBuildAction, & #Macro.
Thanks.
I wish we could use user definied variables in #PackagerProperty, #CustomBuildAction, & #Macro, and date variables specifically in #PackagerProperty?
I realise that we can use Environment Variables, date variables, etc already in #Macro declarations like:
B4X:
#Macro: Title, ExportAsZip, ide://run?File=%ADDITIONAL%\ZipperWm.jar&Args=|target|%PROJECT_NAME%_V2.00_%YYYY%-%MM%-%DD%.zip|targetdir|D:\B4J\AppBackup\
But, so far as I can tell we can not:
1. Use the same variables in #PackagerProperty items
2. Use user defined variables in any of #PackagerProperty, #CustomBuildAction, or #Macro
What I would specifically like to be able to do is something like the following, mainly so that the app version and dates don't need to be updated in multiple areas:
B4X:
Public const FullAppVersion As String = 2.0.0.0
Public const ShortAppVersion As String = 2.00
#PackagerProperty: AssemblyVersion = %FullAppVersion%
#PackagerProperty: AssemblyCopyrightAttribute = Copyright (c) %YYYY%, My Company
#CustomBuildAction: After Packager, D:\SomeOtherApp\OtherApp.exe, %PROJECT_NAME% %FullAppVersion%
#Macro: Title, ExportAsZip, ide://run?File=%ADDITIONAL%\ZipperWm.jar&Args=|target|%PROJECT_NAME%_V%ShortAppVersion%_%YYYY%-%MM%-%DD%.zip|targetdir|D:\B4J\AppBackup\
UPDATE: as per @walt61's post #2, I was wrong to think that date variables are handled by the IDE in #Macro. So the wish is actually for date varaibes and user defined variables to be handled by the IDE in all of #PackagerProperty, #CustomBuildAction, & #Macro.
Thanks.
Last edited: