Bug 1098351

Summary: srcDir option on command line does not override the configured srcDir option
Product: [Retired] Zanata Reporter: David Mason <damason>
Component: Component-MavenAssignee: Damian Jansen <djansen>
Status: CLOSED UPSTREAM QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3CC: dchen, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-29 02:49:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Mason 2014-05-15 22:45:12 UTC
Description of problem:
When using the Maven plugin, source directory can be specified on the command line with -Dzanata.srcDir, or in pom.xml as a configuration option. Options on the command line should generally take precedence over options in configuration, but this does not appear to be the case.


Version-Release number of selected component (if applicable):


How reproducible:



Steps to Reproduce:
1. set up a pom.xml with zanata plugin srcDir specified:

<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>null</groupId>
   <artifactId>null</artifactId>
   <version>0</version>
 
   <build>
      <plugins>
         <plugin>
            <groupId>org.zanata</groupId>
            <artifactId>zanata-maven-plugin</artifactId>
            <version>3.3.0</version>
            <configuration>
               <srcDir>.</srcDir>
            </configuration>
         </plugin>
      </plugins>
   </build>
</project>

2. download a config file from Zanata website

3. run push command with a different srcDir specified, e.g.
$ mvn zanata:push -Dzanata.srcDir=different


Actual results:
plugin uses srcDir value from pom.xml

Expected results:
plugin uses srcDir value from command line

Comment 1 Zanata Migrator 2015-07-29 02:49:03 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-211