[
http://jira.codehaus.org/browse/MASSEMBLY-394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167145#action_167145
]
Keith Wedinger commented on MASSEMBLY-394:
------------------------------------------
The following static initializer inside
src/main/java/org/apache/maven/plugin/assembly/interpolation/AssemblyInterpolator.java
is purposefully black listing the outputDirectory element. Consequently,
assembly interpolation done by the AssemblyInterpolator.interpolate() method
skips the outputDirectory element.
static
{
Set blacklist = new HashSet();
blacklist.add( "outputFileNameMapping" );
blacklist.add( "outputDirectoryMapping" );
blacklist.add( "outputDirectory" );
INTERPOLATION_BLACKLIST = blacklist;
Properties environmentVariables;
try
{
environmentVariables = CommandLineUtils.getSystemEnvVars( false );
}
catch ( IOException e )
{
environmentVariables = new Properties();
}
ENVIRONMENT_VARIABLES = environmentVariables;
}
> Property filtering does not work inside the outputDirectory element content
> ---------------------------------------------------------------------------
>
> Key: MASSEMBLY-394
> URL: http://jira.codehaus.org/browse/MASSEMBLY-394
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-3
> Environment: Maven version: 2.0.10
> Java version: 1.5.0_15
> Ubuntu 8.10
> OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"
> Reporter: Keith Wedinger
>
> Inside my POM, I have the following property defined:
> <properties>
> <clump.name>b2b_oba</clump.name>
> </properties>
> Inside my assembly descriptor, I am attempting to use the property above as
> well as project defined properties to filter the outputDirectory element
> content contained within <files><file>. The relevant descriptor snippet is
> below:
> <files>
> <file>
>
> <source>${clump.codejar.output.directory}/${project.name}.jar</source>
>
> <outputDirectory>${project.name}/jars/${clump.name}/${clump.version.dir}</outputDirectory>
> </file>
> </files>
> After running mvn assembly:assembly, the resultant outputDirectory content
> remains as follows. None of the properties are replaced with their
> corresponding values.
> <outputDirectory>${project.name}/jars/${project.name}/${clump.version.dir}</outputDirectory>
> maven-assembly-plugin version 2.1 does not have this issue. When I use
> version 2.1, property filtering on the outputDirectory works correctly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira