@@ -47,6 +47,7 @@ class Main {
4747 private static final String OPTION_CLASS_TIMEOUT = "ct" ;
4848 private static final String OPTION_ANALYZE_HASHCODE_EQUALS = "he" ;
4949 private static final String OPTION_ANDROID_PLATFORMS = "p" ;
50+ private static final String OPTION_IGNORE_DEFAULT_SUMMARIES = "is" ;
5051 private static final String OPTION_WRITE_JIMPLE_FILES = "wj" ;
5152
5253 public static void main (final String [] args ) throws FileNotFoundException , XMLStreamException {
@@ -80,6 +81,8 @@ private void initializeCommandLineOptions() {
8081 "Also analyze hashCode() and equals() methods" );
8182 options .addOption (OPTION_ANDROID_PLATFORMS , "platformsdir" , true ,
8283 "Path to the platforms directory from the Android SDK" );
84+ options .addOption (OPTION_IGNORE_DEFAULT_SUMMARIES , "ignoresummaries" , false ,
85+ "Existing summaries from the default summary directory are ignored" );
8386 options .addOption (OPTION_WRITE_JIMPLE_FILES , "writejimplefiles" , false , "Write out the Jimple files" );
8487 }
8588
@@ -203,6 +206,11 @@ protected void configureOptionalSettings(CommandLine cmd, SummaryGenerator gener
203206 String platformsDir = cmd .getOptionValue (OPTION_ANDROID_PLATFORMS );
204207 generator .getConfig ().setAndroidPlatformDir (platformsDir );
205208 }
209+ {
210+ boolean ignoreDefaultSummaries = cmd .hasOption (OPTION_IGNORE_DEFAULT_SUMMARIES );
211+ if (ignoreDefaultSummaries )
212+ generator .getConfig ().setUseDefaultSummaries (false );
213+ }
206214 {
207215 boolean writeJimpleFiles = cmd .hasOption (OPTION_WRITE_JIMPLE_FILES );
208216 if (writeJimpleFiles )
0 commit comments