tchart Well-Known Member Licensed User Longtime User Monday at 10:03 PM #1 Could I please request that the parameters supported in ide links be supported for CustomBuildAction arguments too? Referring to this; https://www.b4x.com/android/forum/threads/b4x-comment-links.119897/#content Parameters eg %PROJECT_NAME% work in ide links but they dont appear to work with custom build actions eg B4X: #CustomBuildAction: 2, D:\Temp\test.bat, %PROJECT_NAME% Where test.bat is B4X: echo %1 > D:\Temp\output.txt EXIT /1 ouput.txt contains the string "%PROJECT_NAME%" and not the project name. Minor update the following works, so its likely just an issue with parsing the parameters when they are used in the arguments B4X: #CustomBuildAction: 2, %PROJECT_NAME%\test.bat, Last edited: Tuesday at 12:29 AM
Could I please request that the parameters supported in ide links be supported for CustomBuildAction arguments too? Referring to this; https://www.b4x.com/android/forum/threads/b4x-comment-links.119897/#content Parameters eg %PROJECT_NAME% work in ide links but they dont appear to work with custom build actions eg B4X: #CustomBuildAction: 2, D:\Temp\test.bat, %PROJECT_NAME% Where test.bat is B4X: echo %1 > D:\Temp\output.txt EXIT /1 ouput.txt contains the string "%PROJECT_NAME%" and not the project name. Minor update the following works, so its likely just an issue with parsing the parameters when they are used in the arguments B4X: #CustomBuildAction: 2, %PROJECT_NAME%\test.bat,
Erel B4X founder Staff member Licensed User Longtime User Tuesday at 7:19 AM #2 Implemented for the next version. B4X: #CustomBuildAction: folders ready, %WINDIR%\System32\cmd.exe, /c dir "%B4X%" > 1.txt Note the quotes that should be added to handle spaces.
Implemented for the next version. B4X: #CustomBuildAction: folders ready, %WINDIR%\System32\cmd.exe, /c dir "%B4X%" > 1.txt Note the quotes that should be added to handle spaces.