I'm trying to inject some properties from my pom.xml into a shell script using
the assembly plugin. Is that possible? Is there some special syntax that I
should be using? In my pom.xml I have
<profile>
<id>dev</id>
<properties>
<layer>dev</layer>
etc.
For my assembly descriptor I have
<assembly>
<id>deploy-script</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<baseDirectory>/</baseDirectory>
<files>
<file>
<source>src/main/scripts/deploy.sh</source>
<destName>deploy-${pom.layer}.sh</destName>
<filtered>true</filtered>
<lineEnding>unix</lineEnding>
</file>
</files>
</assembly>
And the deploy.sh script has at the top
export REL=${project.version}
export LAYER=${pom.layer}
export SVNURL=${pom.developerConnection}
The created script in the target directory is correctly named deploy-dev.sh,
and in it the ${project.version} is replaced by the project version, but the 2
${pom properties aren't.
Am I not using them or specifying them correctly?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]