[ 
http://jira.codehaus.org/browse/MOJO-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92849
 ] 

Thai Ha commented on MOJO-731:
------------------------------

I don't want to list my configurations in buildConfiguration\build.properties 
because I use a profiles.xml file (maven file) to keep hard-coded values.  If I 
also keep hard-coded values in a properties file, that's a bit complex to 
maintain (many places to change if I want to change the config). 

> 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

Reply via email to