gradle - How do I extend the main distZip so I get a copy of the ZIP file with some extra files in it? -
i'm trying generate multiple zip files project using application plugin can include os specific exe files in zip. have exe files under src/win32/dist , end in win32 zip file fine, that's that's in zip file.
how configure additional distributions each include in main zip plus these exe files, not these exe files?
here's example bit of config:
distributions { //i want win32 include same 'main' dist plus files in src/win32/dist win32 { contents { { libsdir } } } amd64 { contents { { libsdir } } } }
here's directory structure:
src/ win32/ dist/ prunsrv.exe <-- win32 specific exe amd64/ dist/ prunsrv.exe <-- amd64 specific exe
i never used 'distribution' or 'application' plugin; going through documentation of 'distribution' plugin & distribution javadoc, understand :
- the distribution automatically pulls in files under
src/<distname>/dist
, mentioned. next include contents of main distribution; change
distributions
win32 { contents { project.distributions.main.getcontents() } } amd64 { contents { project.distributions.main.getcontents() } }
Comments
Post a Comment