Web Media Blocks: Include Script, naming and Build Inclusion
Posted: Sat Feb 27, 2016 7:43 am
I moved some stuff into an include script, mostly Install Service, Install File et. al. and the Web Media Blocks fails to show up in the "Design" view. Is this intentional?
The naming of the files produced does not seem to be connected to the filename entered into the "Dowload URL" box and that's logical because one can have multiple source endpoints. The name seems to be the media block name, but in lower-case. Is this intentional and if so is it ok to assume that this behaviour will not change? I'm asking because i could not find this information in the docs.
Also, i have searched for some hard information on not-rebuilding and/or not copying the blocks. Is the general thought on this that i (the developer) should know what files changed and accordingly (manually) change the build inclusion flag? This is how i interpret what the docs indicate.
I was thinking about letting my build-engine build a Web Deploy and then using a comparison tool to see if the blocks are unchanged, uploading them over the previously built ones if a change is present - but this fails because seems there's some 7zip header info that changes from build to build regardless.
Another idea is if it would be possible to get some kind of checksum at build time and storing it in a compiler variable. Then at subsequent builds setting the flag according to the next comparison, skip build if checksum matches - otherwise build. That would work even if i re-organize some files in the blocks and i won't have to scrutinise the purple commands under each block to see if they all affect the block.
Does IA have such functionality already? I'm thinking pre-build event but it needs to result in a variable. I'm on X3 Studio and perhaps writing this such stuff requires Studio Admin?
Any clarification is appreciated!
TIA,
/Dany
The naming of the files produced does not seem to be connected to the filename entered into the "Dowload URL" box and that's logical because one can have multiple source endpoints. The name seems to be the media block name, but in lower-case. Is this intentional and if so is it ok to assume that this behaviour will not change? I'm asking because i could not find this information in the docs.
Also, i have searched for some hard information on not-rebuilding and/or not copying the blocks. Is the general thought on this that i (the developer) should know what files changed and accordingly (manually) change the build inclusion flag? This is how i interpret what the docs indicate.
I was thinking about letting my build-engine build a Web Deploy and then using a comparison tool to see if the blocks are unchanged, uploading them over the previously built ones if a change is present - but this fails because seems there's some 7zip header info that changes from build to build regardless.
Another idea is if it would be possible to get some kind of checksum at build time and storing it in a compiler variable. Then at subsequent builds setting the flag according to the next comparison, skip build if checksum matches - otherwise build. That would work even if i re-organize some files in the blocks and i won't have to scrutinise the purple commands under each block to see if they all affect the block.
Does IA have such functionality already? I'm thinking pre-build event but it needs to result in a variable. I'm on X3 Studio and perhaps writing this such stuff requires Studio Admin?
Any clarification is appreciated!
TIA,
/Dany