Config value <configuration>\<buildProperties>\<configs>="win32,win32,x86" has
no effect on goal pde:attach
-----------------------------------------------------------------------------------------------------------
Key: MOJO-731
URL: http://jira.codehaus.org/browse/MOJO-731
Project: Mojo
Issue Type: Bug
Components: pde
Environment: pde-maven-plugin: latest version
Reporter: Thai Ha
I set
${pde.ant.configs}=win32,win32,x86
and the pom.xml contains the below snippet
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>pde-maven-plugin</artifactId>
<configuration>
<eclipseInstall>${pde.eclipseInstall}</eclipseInstall>
<pdeProductFilename>admin.product</pdeProductFilename>
<pdeBuildVersion>${pde.pdeBuildVersion}</pdeBuildVersion>
<buildProperties>
<product>${pde.ant.product}</product>
<archivePrefix>${pde.ant.archivePrefix}</archivePrefix>
<configs>${pde.ant.configs}</configs>
<base>${pde.ant.base}</base>
</buildProperties>
</configuration>
But the command "mvn install" creates error
"\..\..\I.TestBuild\TestBuild-*.*.*.zip does not". After investigating the
code, I find out that Ant properties which are set by <buildProperties> have no
effect at some places. For example
EclipsePDEMojo.java, lines: 215-217
----------------------------------------------------------
String config = convertPdeConfigsToFilenameSuffix(
buildConfigurationProperties.getString( "configs" ) );
return new File( getPDEBuildDirectory(),
buildConfigurationProperties.getString( "buildLabel" ) + "/"
+ buildConfigurationProperties.getProperty( "buildId" ) + "-" +
config + ".zip" );
-----------------------------------------------------------
Clearly that the properties which are loaded from
buildConfiguration\build.properties always are used (and properties which are
set by <buildProperties> have no effect) in this code snippet. I believe that
the properties are set by <buildProperties> must be used if they exist because
they have higher priority, but the current code ignore these properties. As a
result, if I want to set configs=win32,win32,x86, I must update
build.properties because setting it in <buildProperties> has no effect.
EclipsePDECleanMojo.java and EclipsePDEMojo.java have references to
buildConfigurationProperties and they should be fixed to allow properties
inside <buildProperties> have higher priority than build.properties.
--
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
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email