org.zanata.client.commands.push
Class AbstractCommonPushStrategy<O extends PushOptions>

java.lang.Object
  extended by org.zanata.client.commands.push.AbstractCommonPushStrategy<O>
Direct Known Subclasses:
AbstractPushStrategy, RawPushStrategy

public abstract class AbstractCommonPushStrategy<O extends PushOptions>
extends Object

Strategy that provides basic directory scanning for source files.

Author:
David Mason, damason@redhat.com

Constructor Summary
AbstractCommonPushStrategy()
           
 
Method Summary
 O getOpts()
           
 String[] getSrcFiles(File srcDir, List<String> includes, List<String> excludes, List<String> fileExtensions, boolean useDefaultExcludes, boolean isCaseSensitive)
          excludes should already contain paths for translation files that are to be excluded.
 void setPushOptions(O opts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCommonPushStrategy

public AbstractCommonPushStrategy()
Method Detail

getOpts

public O getOpts()
Returns:
the Options object associated with this strategy.

setPushOptions

public void setPushOptions(O opts)

getSrcFiles

public String[] getSrcFiles(File srcDir,
                            List<String> includes,
                            List<String> excludes,
                            List<String> fileExtensions,
                            boolean useDefaultExcludes,
                            boolean isCaseSensitive)
excludes should already contain paths for translation files that are to be excluded.



Copyright © 2013 Zanata Project. All Rights Reserved.