You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by dvicente <d....@consultant-artware.com> on 2006/06/16 11:02:34 UTC
[M2] assembly filters
For my project, i have a command file to launch my app (.bat for windows and
.sh for unix)
During assembly goal, i want to use my maven project properties ( as version
value) to filter those 2 files.
example : in my command file i have
set LOGANALYZER_HOME=%ProgramFiles%\logAnalyzer-{project.version}
and my zip , i want to have
set LOGANALYZER_HOME=%ProgramFiles%\logAnalyzer-0.1
How to do that ?
--
View this message in context: http://www.nabble.com/-M2--assembly-filters-t1797081.html#a4897216
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M2] assembly filters
Posted by dvicente <d....@consultant-artware.com>.
i find the reason
i must use ${pom.version} instead of ${project.version}
thanks for your help
--
View this message in context: http://www.nabble.com/-M2--assembly-filters-t1797081.html#a4933025
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M2] assembly filters
Posted by dvicente <d....@consultant-artware.com>.
yes i do that
in my assembly file , i have :
<files>
<file>
<source>release/bin/loganalyzer.bat</source>
<outputDirectory>bin</outputDirectory>
<filtered>true</filtered>
</file>
</files>
but in my zipfile, the loganalyzer.bat is not filtered.
I missed something ?
How to obtain the complete list of pom properties which i can use ?
in my command file, i use ${project.version}
--
View this message in context: http://www.nabble.com/-M2--assembly-filters-t1797081.html#a4931441
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M2] assembly filters
Posted by Edwin Punzalan <ep...@exist.com>.
Hi,
use <files><file><filtered>true</filtered>
in your assembly descriptor.
Hope that helps
^_^
dvicente wrote:
> For my project, i have a command file to launch my app (.bat for windows and
> .sh for unix)
>
> During assembly goal, i want to use my maven project properties ( as version
> value) to filter those 2 files.
>
> example : in my command file i have
> set LOGANALYZER_HOME=%ProgramFiles%\logAnalyzer-{project.version}
>
> and my zip , i want to have
>
> set LOGANALYZER_HOME=%ProgramFiles%\logAnalyzer-0.1
>
> How to do that ?
> --
> View this message in context: http://www.nabble.com/-M2--assembly-filters-t1797081.html#a4897216
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org