can we use ${baseDir} placeholder in .Install4j file to replace the files path in entries tag -


<entries>       <fileentry mountpoint="135" file="d:/project/sampleproject/src/main/resources/samplefiles/driver/driver.xls" overwritemode="4" shared="false" filemode="644" uninstallmode="0" overridefilemode="false" overrideoverwritemode="false" overrideuninstallmode="false" />   </entries> 

here path d:/project/sampleproject project's base directory , possible replace path ${basedir} ?

i using install4j-maven-plugin.

you can use compiler variables purpose.

on general settings->compiler variables, define variable "basedir", can use syntax

${compiler:basedir} 

note if select "make paths relative" on general settings->project options, files made relative respect project file , may not need variable if project file sinside basedir directory.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -