Bug 1098351 - srcDir option on command line does not override the configured srcDir option
Summary: srcDir option on command line does not override the configured srcDir option
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Zanata
Classification: Retired
Component: Component-Maven
Version: 3.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Damian Jansen
QA Contact: Zanata-QA Mailling List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-15 22:45 UTC by David Mason
Modified: 2015-07-29 02:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-29 02:49:03 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1096494 0 unspecified CLOSED dtd import export support using Zanata Client (Maven) 2021-02-22 00:41:40 UTC

Internal Links: 1096494

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


Note You need to log in before you can comment on or make changes to this bug.